hermes-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hermes-mcpGet a quote to swap 1 SOL for USDC"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hermes-mcp
MCP server for the Hermes paid swap API. Gives any MCP host (Claude Desktop, Claude Code, ChatGPT with MCP connectors, Cursor and others) Solana swap tools: ranked quotes, transaction building, broadcasting and status tracking.
Payment is per request in USDC via the x402 protocol: no accounts, no API keys. The server pays from a local keypair and the model never sees the key, only tool results. API payments are gasless for the payer wallet (USDC only, no SOL needed).
Tools
Tool | Cost | Purpose |
hermes_info | free | Endpoints and current base prices |
swap_quote | paid | Ranked multi-provider quotes -> quoteId |
swap_build_tx | paid | Unsigned transaction for a quote -> transactionId |
swap_sign_and_submit | paid | Sign, broadcast and track (requires confirm) |
swap_status | free | Broadcast status by hash |
Quotes and built transactions stay cached inside the server and are referred to by opaque ids, so bulky provider payloads never enter the model context.
Related MCP server: x402 Payment Gateway MCP Server
Setup
Create a dedicated Solana wallet for payments and fund it with a few dollars of USDC. No SOL is needed for API payments. (To also broadcast swaps owned by this wallet, add a little SOL for the swap network fee.)
Save its keypair JSON somewhere private, e.g.
~/.keys/hermes-payer.json.
Claude Desktop
Add to claude_desktop_config.json (Settings -> Developer -> Edit Config):
{
"mcpServers": {
"hermes-swap": {
"command": "npx",
"args": ["-y", "github:swap-dot-io/hermes-mcp"],
"env": {
"PAYER_KEYPAIR": "/absolute/path/to/hermes-payer.json"
}
}
}
}Claude Code
claude mcp add hermes-swap --env PAYER_KEYPAIR=/absolute/path/to/hermes-payer.json -- npx -y github:swap-dot-io/hermes-mcp(Claude Code users may prefer the hermes-swap plugin instead.)
ChatGPT desktop (and Codex CLI)
ChatGPT desktop shares MCP configuration with Codex CLI on the same machine.
Add to ~/.codex/config.toml:
[mcp_servers.hermes-swap]
command = "npx"
args = ["-y", "github:swap-dot-io/hermes-mcp"]
[mcp_servers.hermes-swap.env]
PAYER_KEYPAIR = "/absolute/path/to/hermes-payer.json"Or let Codex write the entry: codex mcp add hermes-swap -- npx -y github:swap-dot-io/hermes-mcp
(then add the env block).
ChatGPT web supports only remote MCP connectors (developer mode). We do not offer a hosted connector: it would require custody of your payment key, which defeats the design. Use ChatGPT desktop or any local MCP host instead.
Environment
Variable | Default | Purpose |
PAYER_KEYPAIR | (required for paid tools) | Path to payer keypair JSON |
HERMES_URL | API base URL | |
SOLANA_RPC_URL | RPC for payment transactions | |
X402_NETWORK | solana | x402 network id |
Safety model
The keypair path is configuration; the key itself never reaches the model.
swap_sign_and_submitrefuses to run withoutconfirm: trueand is meant to be called only after the user explicitly confirmed the swap.A paid call is trusted only when it carries an on-chain settlement receipt (X-PAYMENT-RESPONSE). Failed requests are never charged by Hermes.
Links
Agent guide: https://hermes.swap.io/llms.txt
Live payment terms: https://hermes.swap.io/v1/info
x402 protocol: https://www.x402.org
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseBqualityCmaintenanceNon-custodial Solana swap & limit order engine for AI agents. 21 tools - swap, limit, trailing, TWAP, DCA, combo orders - across Raydium, PumpSwap, Orca, Meteora. Jito MEV-protected execution. Ed25519-verified server messages. Private key never leaves the process.Last updated211493MIT- Alicense-qualityFmaintenanceEnables AI agents to make micropayments using USDC on Solana via the x402 protocol, supporting payment requests, on-chain verification, and revenue tracking.Last updatedMIT
- Alicense-qualityCmaintenanceNon-custodial Solana swap routing with best-price execution, flat 0.25% fee, and built-in on-chain scam checking for token safety.Last updatedMIT
- Alicense-qualityBmaintenanceGet the best swap quotes across Uniswap, SushiSwap, Aerodrome with pay-per-call via x402 (USDC on Base).Last updatedMIT
Related MCP Connectors
Solana-native MCP gateway for SAP, DeFi tools, SNS identity, and x402 payments.
Batch send SOL or any SPL token to 1000+ wallets via x402. AI agent payments on Solana.
Solana MCP for wallets, trades, markets, PnL, transfers, onchain data, signable swaps and API tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/swap-dot-io/hermes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server