The MCP protocol lets LLMs like Claude interact with Suwappu as a tool provider. Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients can discover and call Suwappu's tools automatically.
Copy POST https://api.suwappu.bot/mcp Include your Bearer token in the Authorization header:
Copy Authorization: Bearer suwappu_sk_YOUR_KEY Obtain a token by registering at POST /v1/agent/register.
All requests and responses follow JSON-RPC 2.0, using MCP protocol version 2024-11-05.
Handshake: Initialize
Before calling any tools, initialize the MCP session:
Request:
Copy {
" jsonrpc " : " 2.0 " ,
" id " : 1 ,
" method " : " initialize " ,
" params " : {}
} Response:
List all available tools and their input schemas:
Request:
Response:
Returns an array of tool definitions. See the tool reference below for all six tools.
Get a swap quote for a token pair.
Parameter
Type
Required
Description
Source token symbol (e.g., "ETH")
Destination token symbol (e.g., "USDC")
Amount of source token to swap
Chain name for same-chain swaps (e.g., "base")
Source chain for cross-chain swaps
Destination chain for cross-chain swaps
Wallet address for the quote
Slippage tolerance (e.g., "0.5" for 0.5%)
Example call:
2. execute_swap
Execute a previously obtained quote.
Parameter
Type
Required
Description
Quote ID from a get_quote response
Wallet address to execute the swap from
Example call:
3. get_portfolio
Check token balances for a wallet.
Parameter
Type
Required
Description
Example call:
Get current prices for one or more tokens.
Parameter
Type
Required
Description
Comma-separated token symbols (e.g., "ETH,BTC,SOL")
Example call:
List all supported blockchain networks. No parameters required.
Example call:
Search and list available tokens.
Parameter
Type
Required
Description
Search by token name or symbol
Example call:
All tools/call responses return content as an array of parts:
The text field contains a JSON string. Parse it to access the structured data.
Claude Desktop Configuration
Add Suwappu as an MCP server in your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
After saving the config and restarting Claude Desktop, you can ask Claude to interact with Suwappu directly:
"Get me a quote for swapping 1 ETH to USDC on Base"
"What's the price of ETH and BTC?"
"Show my portfolio on 0xabc..."
"What chains does Suwappu support?"
Claude will automatically discover the available tools and call them on your behalf.
Full Example: Quote Flow with curl
Last updated 17 minutes ago