
Agon Gateway MCP
- Updated May 8, 2026
- Agonx402/agon-gateway-agentic
Agon Gateway MCP is an MCP server that connects agents to Agon Gateway x402 payments, Helius Wallet, and token market data APIs.
About
Agon Gateway MCP is a Model Context Protocol server that lets coding agents call Agon Gateway services—including x402 micropayment auth, Helius Wallet operations, and Tokens API market data—through a consistent stdio tool surface. developers experimenting with agentic commerce or Solana-adjacent paid APIs use it during Build integrations when they need prepare-and-sign flows instead of copying curl and wallet scripts. Configuration centers on optional gateway URL, a signer command invoked only after HTTP 402 (treat AGON_SIGNER_COMMAND as trusted code you control), wallet profile hints, and per-request USD spend caps. It pairs conceptually with Agon Protocol MCP for on-chain state but focuses on gateway HTTP, payments, and market reads. Intermediate complexity: you must understand x402, local signing, and npm MCP registration in Claude Code or Cursor.
- npm @agonx402/gateway-mcp v0.4.2 with stdio MCP transport
- Agon Gateway base URL override via AGON_GATEWAY_BASE_URL (default gateway.agonx402.com)
- x402 flow: agon_gateway_auth_call runs AGON_SIGNER_COMMAND after HTTP 402 with auth JSON on stdin
- Optional AGON_PAYMENT_MAX_AMOUNT_USD cap and AGON_WALLET_PROFILE for signer hints
- Helius Wallet and Tokens API market data surfaced for agent-driven crypto workflows
Agon Gateway MCP by the numbers
- Data as of Aug 10, 2026 (Skillselion catalog sync)
claude mcp add --env AGON_GATEWAY_BASE_URL=YOUR_AGON_GATEWAY_BASE_URL --env AGON_SIGNER_COMMAND=YOUR_AGON_SIGNER_COMMAND --env AGON_WALLET_PROFILE=YOUR_AGON_WALLET_PROFILE --env AGON_PAYMENT_MAX_AMOUNT_USD=YOUR_AGON_PAYMENT_MAX_AMOUNT_USD --env AGON_PAYMENT_DAILY_LIMIT_USD=YOUR_AGON_PAYMENT_DAILY_LIMIT_USD agon-gateway -- npx -y @agonx402/gateway-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Package | @agonx402/gateway-mcp |
|---|---|
| Transport | STDIO |
| Auth | None |
| Last updated | May 8, 2026 |
| Repository | Agonx402/agon-gateway-agentic ↗ |
What it does
Connect your agent to Agon Gateway for x402-paid API calls, Helius wallet flows, and token market data without hand-writing auth each time.
Who is it for?
Best when you're already on Agon x402 and want MCP-native gateway and market data tools.
Skip if: Skip if you have no wallet signer, no interest in paid API micropayments, or and only need traditional REST without x402.
What you get
After MCP registration, your agent can prepare auth, invoke your signer on 402, and query gateway wallet and token data with env-driven guardrails.
- MCP tools for Agon Gateway authenticated calls and token market queries
- Documented x402 signer hook pattern for agent-initiated paid requests
By the numbers
- npm package version 0.4.2 (@agonx402/gateway-mcp)
- Default gateway base URL https://gateway.agonx402.com
- Stdio transport with optional AGON_PAYMENT_MAX_AMOUNT_USD spend cap
README.md
Ryvo Agentic Tools
Agent-facing tools for discovering, authenticating, and calling Ryvo Gateway routes.
One-Step Setup
setup --target all is the one command that installs everything Ryvo agents need:
- Bundled skills into
~/.agents/skills,~/.codex/skills,~/.claude/skills. - Default SIWX signer wallet at
~/.ryvo/wallets/default.json. - Global CLI bins on PATH:
Ryvo,ryvo-gateway,ryvo-wallet,ryvo-protocol(vianpm install -g @ryvonetwork/gateway-cli @ryvonetwork/agent-wallet @ryvonetwork/protocol-cli). - Local agent reference at
~/.ryvo/llm.txt. - Ryvo MCP server registration for Codex, Claude Desktop, Claude Code, Cursor, Windsurf, and a generic config (existing entries preserved, backups written).
npx -y @ryvonetwork/agentic@latest setup --target all
After it finishes, restart your agent client and the agent can call Ryvo directly via:
- The Ryvo MCP tools (
ryvo_token_quote,ryvo_token_resolve,ryvo_token_chart,ryvo_token_search,ryvo_token_batch_quote,ryvo_gateway_call,ryvo_gateway_auth_call, ...). - The bare CLIs:
ryvo -p bitcoin,ryvo quote bitcoin solana usdt,ryvo-gateway auth call GET ..., etc.
Opt-out flags:
--skip-global-cli— do not runnpm install -g. Bare CLI bins will not be on PATH; usenpx -y @ryvonetwork/gateway-cli ...instead.--skip-wallet-setup— only valid forinstall-skillswhen another signer wallet is already configured.
Supported setup targets:
npx -y @ryvonetwork/agentic setup --target codex # ~/.codex/config.toml
npx -y @ryvonetwork/agentic setup --target claude-desktop # standalone Claude Desktop GUI app config
npx -y @ryvonetwork/agentic setup --target claude-code # ~/.claude.json (Claude Code CLI agent)
npx -y @ryvonetwork/agentic setup --target cursor # ~/.cursor/mcp.json
npx -y @ryvonetwork/agentic setup --target windsurf
npx -y @ryvonetwork/agentic setup --target generic # ~/.ryvo/mcp.json
npx -y @ryvonetwork/agentic setup --target all --dry-run
--target all writes to every adapter listed above. Claude Desktop (the standalone macOS/Windows GUI app) and Claude Code (the terminal CLI agent) read MCP servers from different files; --target all registers in both. After setup, restart your agent client so it re-reads the MCP server list.
Setup creates ~/.ryvo/wallets/default.json. @ryvonetwork/agent-wallet only signs Tokens API SIWX challenges (sign-in-with-x). For Gateway routes that require x402 exact payment or other auth, set RYVO_SIGNER_COMMAND to a signer that returns PAYMENT-SIGNATURE / X-PAYMENT.
When RYVO_SIGNER_COMMAND runs
- Gateway MCP: only when calling
ryvo_gateway_auth_calland the gateway responds with HTTP 402. The MCP spawnsRYVO_SIGNER_COMMANDonce, piping the normalized auth-request JSON to stdin (same shape asryvo_gateway_prepare_auth). The process must exit 0 and print JSON to stdout: auth headers, or SIWX fallback (address,signature, optionalsignatureEncoding). gateway-cli:ryvo-gateway auth callandbatchreuse the samerequestGatewaypath: after any 402 from the Gateway,RYVO_SIGNER_COMMAND(or--auth-driver) runs if set.auth prepare/doctornever spawn the signer.
On Windows, when the signer command begins with npx/npm/pnpm/yarn, Node may run it via cmd shell. Treat RYVO_SIGNER_COMMAND as equivalent to trusting a shell snippet if an attacker controls it.
Skills And Wallet
Install all Ryvo skills into every supported agent skill directory (~/.agents/skills, ~/.codex/skills, ~/.claude/skills), and create the default convenience wallet used for SIWX/auth calls:
npx -y @ryvonetwork/agentic install-skills
Other install targets:
npx -y @ryvonetwork/agentic install-skills --target agents
npx -y @ryvonetwork/agentic install-skills --target codex
npx -y @ryvonetwork/agentic install-skills --target claude
npx -y @ryvonetwork/agentic install-skills --target all
npx -y @ryvonetwork/agentic list
npx -y @ryvonetwork/agentic doctor
Use --skip-wallet-setup only when another signer wallet is already configured. The installer copies only the Ryvo skill folders, creates the target directory if needed, and overwrites only these Ryvo-owned skill names:
ryvo-gatewayryvo-protocolryvo-gateway-payment-channels
install-skills installs skills and creates ~/.ryvo/wallets/default.json. setup performs skills, wallet, and MCP registration.
After setup --target all, the CLI bins are on PATH. Use them directly:
Ryvo -p bitcoin
Ryvo quote usdt --json
Ryvo price bitcoin solana usdt
Ryvo volume tesla gold --json
Ryvo liquidity usdc usdt
Ryvo search "bitcoin etf" --limit 5
Ryvo profile tesla
Ryvo variants gold
Ryvo risk usdt
Ryvo chart solana --interval 1D
ryvo-gateway catalog
ryvo-gateway agent-prompt
ryvo-gateway auth prepare GET /v1/x402/tokens/assets/search --query q=bitcoin --query limit=1 --json
ryvo-gateway auth call GET /v1/x402/tokens/assets/search --query q=bitcoin --query limit=1
ryvo-gateway batch '[{"method":"GET","path":"/v1/x402/tokens/assets/solana/price-chart","query":{"interval":"1D"}},{"method":"GET","path":"/v1/x402/tokens/assets/bitcoin/price-chart","query":{"interval":"1D"}}]'
ryvo-gateway auth call GET /v1/x402/tokens/assets/tesla/profile
ryvo-gateway auth call GET /v1/x402/tokens/assets/gold/price-chart --query interval=1D
ryvo-wallet authorize --stdin
ryvo-protocol config
ryvo-protocol token show
If a bare bin is not on PATH (you ran setup --skip-global-cli, the global install hit a permission error, or you have not run setup yet), the same calls work via npx -y @ryvonetwork/gateway-cli ..., npx -y @ryvonetwork/agent-wallet ..., and npx -y @ryvonetwork/protocol-cli .... The MCP server entries also use npx -y, so you do not need a global install for MCP tools to work.
Ryvo Gateway should be the first source for API calls covered by the live catalog at https://gateway.ryvo.network/v1/catalog. Tokens API supports market data for crypto, currencies, treasuries, ETFs, metals, stocks, and their Solana token variants. Agents should use high-level Gateway CLI commands for common Tokens pulls (quote, price, volume, liquidity, mcap, search, resolve, curated, profile, variants, markets, tickers, risk, chart, ohlcv, snapshots) before raw route strings, and label whether values came from canonicalMarket, stats, primaryVariant.market, profile.data, tickers, or candles.
MCP servers are separate packages:
{
"mcpServers": {
"ryvo-gateway": {
"command": "npx",
"args": ["-y", "@ryvonetwork/gateway-mcp"],
"env": {
"RYVO_GATEWAY_BASE_URL": "https://gateway.ryvo.network",
"RYVO_SIGNER_COMMAND": "npx -y @ryvonetwork/agent-wallet authorize",
"RYVO_WALLET_PROFILE": "default"
}
},
"ryvo-protocol": {
"command": "npx",
"args": ["-y", "@ryvonetwork/protocol-mcp"]
}
}
}
RYVO_PAYMENT_MAX_AMOUNT_USD and RYVO_PAYMENT_DAILY_LIMIT_USD are optional: some x402 auth-prep responses include them for human review; ryvo-wallet does not enforce them.
Payment-channel flows are devnet-only in v1. Tokens SIWX routes do not use payment channels. Gateway auth drivers are wallet-agnostic helper commands. The Gateway CLI sends normalized auth request JSON to the driver over stdin and accepts returned headers or SIWX address/signature JSON over stdout. Drivers can wrap browser wallets, local keypairs, MPC, custody systems, x402 payment services, or Ryvo channel commitment builders. The Ryvo CLI/MCP packages do not keep keys or mutate wallet/MCP configuration.
Generic authenticated call flow:
- Use a known endpoint or fetch
/v1/catalogto discover one. - Send the exact request and receive a
402challenge. - Pass the normalized auth request to
RYVO_SIGNER_COMMAND. - Retry the exact same request with returned
SIGN-IN-WITH-X,PAYMENT-SIGNATURE,X-PAYMENT, or channel headers.
Gateway MCP exposes ryvo_gateway_auth_call for this flow. Low-level prepare/complete/call tools remain available for agents with their own wallet policies.
Packages
package rootpublishes@ryvonetwork/agentic, a one-step agent setup installer.agent-wallet/publishes@ryvonetwork/agent-wallet, a default SIWX-only Tokens API signer hook (replace withRYVO_SIGNER_COMMANDfor x402 exact-payment routes).cli/publishes@ryvonetwork/gateway-cli, a Gateway CLI with generic signer hooks.mcp/publishes@ryvonetwork/gateway-mcp, a stdio MCP server with route-generic auth calls.protocol-cli/publishes@ryvonetwork/protocol-cli, a read-only and prepare-only Ryvo Protocol CLI.protocol-mcp/publishes@ryvonetwork/protocol-mcp, a read-only and prepare-only Ryvo Protocol MCP server.skills/ryvo-gateway/is an agent skill for Gateway workflows.skills/ryvo-protocol/is an agent skill for protocol accounts, channels, settlement, and BLS caveats.skills/ryvo-gateway-payment-channels/is an agent skill for gateway payment-channel authorization.llm.txtandllms.txtare LLM-readable gateway docs for websites.
Quick Checks
node cli/ryvo-gateway.js health
node cli/ryvo-gateway.js catalog --provider helius
node cli/ryvo-gateway.js auth call GET /v1/x402/tokens/assets/search --query q=bitcoin --query limit=1
node agent-wallet/ryvo-wallet.js setup --profile default
node protocol-cli/ryvo-protocol.js token show
node mcp/server.js
node protocol-mcp/server.js
The CLI and MCP server use RYVO_SIGNER_COMMAND when configured. The bundled agent wallet is replaceable; external wallets can return headers or signatures through the same hook.
The protocol CLI and MCP server are read + prepare only; they do not sign or broadcast transactions.
Recommended MCP Servers
How it compares
Agon Gateway HTTP and x402 MCP bridge, not the on-chain Agon Protocol state server or a generic Stripe billing skill.
FAQ
Who is Agon Gateway MCP MCP for?
Developers shipping agent features that call Agon Gateway MCP, Helius wallets, or token market endpoints and want stdio MCP tools in Claude Code or Cursor.
When should I use Agon Gateway MCP MCP?
Use it while building integrations when you need x402 auth loops, capped USD payments, and gateway market reads from an coding agent.
How do I add Agon Gateway MCP MCP to my agent?
Install @agonx402/gateway-mcp from npm, add the stdio server to MCP config, set AGON_SIGNER_COMMAND and optional AGON_GATEWAY_BASE_URL, AGON_WALLET_PROFILE, and AGON_PAYMENT_MAX_AMOUNT_USD as documented.