About Speccy x402 MCP
An MCP server that gives compatible AI agents access to Speccy's paid endpoints, with per-call payment in USDC on Base handled by the server. Its tools cover prediction markets, Python execution, media processing, web search, and text-to-speech.
Key features
- 01Retrieve Polymarket prediction market data
- 02Run Python in an isolated Docker sandbox
- 03Transform audio and video with FFmpeg
- 04Search and extract web content
- 05Generate multilingual speech audio
Use cases
- 01Check prediction markets from an AI agent
- 02Run Python code without network access
- 03Convert or process audio and video files
- 04Search the web or synthesize speech
MCP support
Exposes Speccy's paid endpoints as tools to MCP-compatible clients. The server makes an x402 USDC payment on Base for each call using the operator's wallet.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README@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 |
|---|---|---|
get_prediction_markets | Top Polymarket prediction markets (volume, liquidity, or startDate sort) | $0.01 USDC |
exec_python | Run Python 3.12 code in an isolated Docker sandbox (no network, read-only FS, 30s timeout, 64KB output) | $0.02 USDC |
transform_media | Run FFmpeg on a video/audio file (3 tiers: copy $0.005, transform $0.05, heavy $0.20) | $0.005–$0.20 USDC |
web_search | 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 |
tts_synthesize | Multilingual text-to-speech via Supertonic 3 (31 languages, 10 voices, 44.1 kHz WAV). tts tier (≤200 chars) and tts-long tier (≤5000 chars, auto-chunked) | $0.005–$0.02 USDC |
Install
npm install -g @speccy-agent/x402-mcp
Configure
Set the operator wallet key (the wallet that pays x402 per call):
export SPECCY_MCP_WALLET_KEY="0x..." # operator wallet private key
Optional 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-mcp
Architecture
[Agent] → MCP tool call (stdio) → [this server] → x402 paid fetch → [Speccy endpoint on VPS]
→ [CDP facilitator] → on-chain USDC transfer
The 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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.