Skip to main content
Glama
Speccy-Agent

x402-mcp

by Speccy-Agent

@speccy-agent/x402-mcp

MCP server wrapping Speccy's paid x402 endpoints. Give any MCP-compatible AI agent two superpower tools — prediction-market data and a sandboxed Python executor — 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

Related MCP server: Polymarket MCP Server

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 (default https://api.speccy.cloud) — Polymarket endpoint

  • SPECCY_MCP_EXEC_BASE (default https://exec.speccy.cloud) — sandbox exec 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_NETWORK env 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 tools
exec_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYesPython source code to execute

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full behavioral disclosure burden and does so thoroughly: it covers execution isolation, cost per run, no network access, read-only filesystem, timeout, and output cap. This is exemplary transparency for a code execution tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One compact, front-loaded sentence conveys all critical constraints with no filler. Every clause adds meaningful information an agent needs before invoking the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with no output schema, this is nearly complete: it specifies environment, limits, cost, and constraints. The only minor gap is that it does not explicitly describe the return format (e.g., stdout/stderr), though the output cap strongly implies a returned payload.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already fully documents the sole parameter ('code'). The description adds execution-relevant constraints—timeout, output cap, network restrictions, filesystem restrictions—that inform how the agent should write code. This goes beyond the schema's basic type and description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Run Python code') and the execution environment ('isolated Docker sandbox'). It is immediately distinguishable from the sibling tool get_prediction_markets, which is about retrieving market data rather than executing code.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly explain when to use this tool versus alternatives, nor does it state when not to use it. It implies use for arbitrary Python execution, but there is no routing guidance relative to get_prediction_markets or any other tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_prediction_marketsB

Get top Polymarket prediction markets. Costs $0.01 USDC per call (x402 settled in background).

ParametersJSON Schema
NameRequiredDescriptionDefault
sortNoSort fieldvolume
limitNoNumber of markets (1-50)

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral disclosure burden. It usefully reveals a $0.01 USDC cost per call and that x402 settlement happens in the background. However, it says nothing about side effects, rate limits, or response behavior, though the verb 'get' implies a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence that front-loads the core purpose and then adds the most important operational detail, cost. Every word earns its place, and there is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with two optional parameters, the description plus schema is mostly sufficient, and the cost disclosure is valuable. But there is no output schema and no mention of what the returned markets look like, how pagination behaves, or how 'top' is determined for non-volume sort options.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters and their defaults/enums. The description adds minimal parameter meaning beyond the tool's overall purpose; the word 'top' hints at sorting but does not explain how the sort parameter affects results.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool gets top Polymarket prediction markets, which is a specific verb and resource. It does not explicitly distinguish itself from the sibling exec_python, but the domain and purpose are clear enough that no confusion is likely.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus its sibling exec_python, or any context about appropriate use cases. It only mentions a cost, which implies it should not be called unnecessarily, but it does not state that explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.7/5.0
Disambiguation5/5

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.

Naming Consistency5/5

Both tool names follow the same lowercase snake_case verb_noun pattern: get_prediction_markets and exec_python. The naming is predictable and consistent.

Tool Count3/5

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.

Completeness2/5

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

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to discover and analyze prediction markets, execute trades, and manage positions on Polymarket via the Model Context Protocol.
    7
    43
    19
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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
  • F
    license
    Not graded
    quality
    B
    maintenance
    A monetizable remote MCP server that provides prediction-market intelligence tools for AI agents, enabling discovery, evaluation, and mispricing detection across venues like Polymarket and Kalshi with per-call payment.
    1
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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

Latest Blog Posts

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/Speccy-Agent/x402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server