This page covers the dedicated Swig wallet MCP server built from
@swig-wallet/mcp-server. If you want to expose the Swig docs
themselves as an MCP server, see Swig Docs MCP Support.Prerequisites
Before you begin, make sure you have:- Access to the
swig-tsmonorepo buninstalled- An MCP-compatible client such as Claude Code
- SOL on your chosen network to fund wallet creation
Step 1: Build the server
Build the MCP server from theswig-ts monorepo:
packages/mcp-server/dist/index.js.
Step 2: Configure the MCP client
Add the server to your AI agent:stdio option when running the built server on the same machine as your MCP client. Use the HTTP transport when you are hosting the server remotely.
Step 3: Configure RPC
After the MCP server is connected, callconfigure_rpc with the Solana cluster you want the agent to use:
- Mainnet:
https://api.mainnet-beta.solana.com - Devnet:
https://api.devnet.solana.com
configure_rpc again later if you need to switch networks.
Step 4: Set up the agent keypair
Callgenerate_agent_keypair to create a new keypair, or configure_agent_keypair to load an existing one.
Fund this address with SOL. The agent keypair pays the rent required to create the Swig wallet on-chain.
Step 5: Create a Swig wallet
Callcreate_swig_wallet to create the wallet.
This creates two related addresses:
- A Swig account: the on-chain config account that stores roles and authorities
- A wallet address: the PDA that holds funds and executes instructions
Step 6: Use the wallet
Once the wallet exists, these are the primary tools you will use:| Tool | Purpose |
|---|---|
fetch_swig_wallet | View wallet details and configured authorities |
get_balance | Check the SOL balance of the wallet or agent |
transact_sol_transfer | Send SOL from the wallet |
transact_custom | Execute arbitrary instructions through the wallet |
add_authority | Add a new authority with specific permissions |
remove_authority | Remove an authority from the wallet |
update_authority | Update an authority’s permissions or configuration |
Recommended setup flow
For a first-time setup, the usual sequence is:- Build and connect the MCP server
- Call
configure_rpc - Call
generate_agent_keypairorconfigure_agent_keypair - Fund the agent keypair with SOL
- Call
create_swig_wallet - Use
fetch_swig_walletandget_balanceto verify the wallet before sending transactions
Next Steps
Once you have the server running, use Swig MCP Server for:- Transport and endpoint details
- CLI flags and environment variables
- Full tool list
- Gas sponsorship options
- Permissions and deployment guidance

