x402-mcp
This server gives an MCP-compatible AI agent four paid, stateless tools (settled automatically in USDC via x402) for prediction-market data, Python execution, media transformation, and web search/extraction.
get_prediction_markets – Fetch top Polymarket prediction markets, sortable by volume, liquidity, or startDate, with configurable limit (1–50). Costs $0.01 USDC per call.
exec_python – Run Python 3.12 code in an isolated Docker sandbox (no network, read-only filesystem, 30s timeout, 64KB output cap). Costs $0.02 USDC per execution.
transform_media – Run FFmpeg on video/audio files with three pricing tiers: copy ($0.005), transform ($0.05), heavy ($0.20).
web_search – Real-time web search and extraction via Tavily, with three modes: search ($0.005), extract ($0.02), smart search+extract ($0.05).
All calls are paid from the operator's wallet on Base mainnet; no wallet setup is needed on the agent side.
Allows running Python 3.12 code in an isolated Docker sandbox with no network access, a read-only filesystem, a 30-second timeout, and a 64KB output limit.
Click on "Deploy 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., "@x402-mcp What are the top prediction markets right now?"
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.
@speccy-agent/x402-mcp
MCP server wrapping Speccy's paid x402 endpoints. Give any MCP-compatible AI agent five superpower tools — prediction-market data, a sandboxed Python executor, FFmpeg media transforms, real-time web search, and multilingual text-to-speech — and the server pays per call in USDC on Base on your behalf.
No x402 knowledge required by the agent. No wallet setup on the agent side. Just install the server, point your agent at it, done.
Tools
Tool | Description | Cost per call |
| Top Polymarket prediction markets (volume, liquidity, or startDate sort) | $0.01 USDC |
| Run Python 3.12 code in an isolated Docker sandbox (no network, read-only FS, 30s timeout, 64KB output) | $0.02 USDC |
| Run FFmpeg on a video/audio file (3 tiers: copy $0.005, transform $0.05, heavy $0.20) | $0.005–$0.20 USDC |
| Real-time web search + extract via Tavily (3 modes: search $0.005, extract $0.02, smart search+extract $0.05) | $0.005–$0.05 USDC |
| Multilingual text-to-speech via Supertonic 3 (31 languages, 10 voices, 44.1 kHz WAV). | $0.005–$0.02 USDC |
Related MCP server: Polymarket MCP Server
Install
npm install -g @speccy-agent/x402-mcpConfigure
Set the operator wallet key (the wallet that pays x402 per call):
export SPECCY_MCP_WALLET_KEY="0x..." # operator wallet private keyOptional overrides:
SPECCY_MCP_API_BASE(defaulthttps://api.speccy.cloud) — Polymarket endpointSPECCY_MCP_EXEC_BASE(defaulthttps://exec.speccy.cloud) — sandbox exec endpointSPECCY_MCP_AUDIO_BASE(defaulthttps://audio.speccy.cloud) — Supertonic TTS endpoint
Wire into an MCP-compatible agent
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"speccy-x402": {
"command": "speccy-x402-mcp",
"env": { "SPECCY_MCP_WALLET_KEY": "0x..." }
}
}
}Any MCP client (stdio):
SPECCY_MCP_WALLET_KEY=0x... speccy-x402-mcpArchitecture
[Agent] → MCP tool call (stdio) → [this server] → x402 paid fetch → [Speccy endpoint on VPS]
→ [CDP facilitator] → on-chain USDC transferThe server holds one operator wallet. Each call triggers an x402 payment from that wallet. Settlement alerts go to the operator's Telegram via the Notifier bot (same backend as the HTTP endpoints).
Notes
The wallet key never leaves the operator's machine (env var, not a config file).
Fund the wallet with USDC on Base mainnet (
eip155:8453) and a tiny amount of ETH for margin (only used if the wallet ever does non-x402 transfers).Currently settles on Base mainnet only. Testnet / other chains would need an
X402_NETWORKenv and a matching facilitator.Each call is independent and stateless — no sessions, no state on the server.
Source / issues
Source: github.com/speccy-ai/x402-mcp (placeholder)
Issues / feature requests: open an issue on the repo, or message @SpeccyNotifierbot on Telegram
License
MIT — by Philip (Esla) for Speccy.
Available Tools
2 toolsexec_pythonA
Run Python code in an isolated Docker sandbox. Costs $0.02 USDC per execution. No network, read-only filesystem, 30s timeout, 64KB output cap.
Inputs: code (required).
get_prediction_marketsB
Get top Polymarket prediction markets. Costs $0.01 USDC per call (x402 settled in background).
Inputs: sort, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are completely distinct in purpose: one fetches Polymarket prediction markets, the other executes Python code. There is no realistic risk of an agent confusing them.
Both tool names follow the same lowercase snake_case verb_noun pattern: get_prediction_markets and exec_python. The naming is predictable and consistent.
Two tools is on the thin side, and the tools are unrelated, making the server feel like a loose collection rather than a focused toolkit. The count is not unreasonable for a paid utility server, but it is borderline.
The tools have no shared domain and each is a single isolated operation. get_prediction_markets only returns top markets with no drill-down or follow-up actions, and exec_python is a one-off sandbox execution primitive. The broader x402 workflow is unclear, leaving significant gaps.
Maintenance
Related MCP Connectors
Market data and web intelligence for AI agents, paid per call in USDC on Base via x402.
Market and on-chain crypto data for AI agents. Pay per call in USDC on Base (x402).
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Pay-per-call crypto market intelligence for AI agents. USDC on Base via x402.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to discover and analyze prediction markets, execute trades, and manage positions on Polymarket via the Model Context Protocol.786 npm22MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query Polymarket data such as top wallets, live trades, market details, and smart money flows using natural language through MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access crypto prices, DeFi yields, Polymarket data, Base chain info, and security scans with pay-per-call via USDC on Base mainnet.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to autonomously trade, analyze, and manage positions on Polymarket prediction markets with 45 tools, real-time WebSocket monitoring, and enterprise-grade safety features.MIT