Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Polymarket Agent

@tensorustMCP server · External

Search Polymarket, read order books and prices, and place or cancel CLOB v2 orders from your agent

Tradingv0.1.1MITRust
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

MCP Bundlehttps://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpbv0.1.1

Distributed as an MCP bundle (`https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb`) — download it and import the bundle in your MCP client.

README5 min read

polymarket-agent: an agent that can trade must show you the exact order it signs, and who gets paid

Giving an AI agent a wallet is the easy part. The hard part is that most agent trading tools are a black box between the model and the money: you do not see the order before it is signed, you do not know what fee rides on the fill, and the region check is left to you. polymarket-agent takes the other side:

  • The exact signed order, before anything is sent. --dry-run signs the EIP-712 order locally and prints it, builder field included, and sends nothing.
  • Who is paid, in the README and in the tool. Every order carries a Polymarket builder code. The default is Tensorust's (0.25 percent taker, 0 maker, public on the profile), it is how this tool is paid for, builder-code prints the one in effect, and one environment variable sets yours or none.
  • Polymarket's own geoblock answer before every trade. Trading commands refuse to send if Polymarket says the machine is in a blocked region. Nothing here works around it.
  • Your key never leaves the machine. Orders are signed locally; Polymarket L2 credentials are derived on first use.

Why it exists. An agent should reach a prediction market through one tool it can call and a human can audit, not through a Node or Python SDK wired up by hand in every project.

Why this instead of the SDKs. It is built on the official polymarket_client_sdk_v2 crate and adds what an agent needs on top: one binary that is both a CLI (every command prints JSON) and a stdio MCP server with 13 tools, dry runs, the geoblock gate and the attribution in the open.

Why today. cargo install polymarket-agent, or the one-click MCP Bundle for Claude Desktop, or the official MCP Registry entry com.tensorust/polymarket-agent. Read-only commands need no key.

Who it is for: people running Claude, Codex, Cursor or their own agent loop who want it to read Polymarket and, when they say so, trade there.

Trade-offs, on purpose: CLOB v2 orders, Gamma search and positions only (no websockets, perps or the gasless relayer yet); stdio MCP only; it refuses rather than retries when Polymarket says no.

cargo install polymarket-agent

Use it from any agent

Shell (Claude Code, Codex, Cursor agents, cron jobs, your own loop):

polymarket-agent search "fed rate cut" --limit 3
polymarket-agent price 20882952001141190985444129909954556515852282417019672850316979275117126535717
polymarket-agent book  20882952001141190985444129909954556515852282417019672850316979275117126535717 --depth 5
polymarket-agent limit 2088...5717 buy 0.05 100            # GTC limit: token, side, price, shares
polymarket-agent limit 2088...5717 buy 0.05 100 --dry-run  # sign only, print the order, send nothing
polymarket-agent market-order 2088...5717 buy 25           # FOK market buy for 25 USDC
polymarket-agent orders | cancel <id> | cancel-all | trades | positions

Every command prints JSON.

MCP (Claude Desktop, Claude Code, Cursor, Windsurf, anything that speaks MCP over stdio):

json
{
  "mcpServers": {
    "polymarket": {
      "command": "polymarket-agent",
      "args": ["mcp"],
      "env": { "POLYMARKET_PRIVATE_KEY": "0x..." }
    }
  }
}

Claude Code one-liner: claude mcp add polymarket -e POLYMARKET_PRIVATE_KEY=0x... -- polymarket-agent mcp

Tools exposed: search_markets, get_market, get_orderbook, get_price, check_geoblock, place_limit_order, place_market_order, cancel_order, cancel_all_orders, list_open_orders, list_trades, get_positions, builder_attribution.

Keys and wallets

  • Read-only commands need nothing.
  • Trading needs POLYMARKET_PRIVATE_KEY: the hex private key of the Polygon EOA that signs orders. The key never leaves your machine; it signs EIP-712 orders locally and derives Polymarket L2 API credentials on first use.
  • Polymarket proxy or Safe wallets (accounts created on polymarket.com with email or a browser wallet): set POLYMARKET_FUNDER to the proxy wallet address shown on your profile and POLYMARKET_SIGNATURE_TYPE to proxy or safe. Plain EOA users leave both unset.
  • Funds: the trading wallet needs pUSD (or USDC) on Polygon with the exchange allowances set. Set them once on polymarket.com or with the official SDKs.

Builder attribution (read this)

Every order this tool signs carries a Polymarket builder code in the order's builder field. The default is Tensorust's code:

0xa1101e5f6b3f69288122de5e489cd6574d9b4fc4b7bc7482de0c66b7e9193c96

That attributes the volume to the Tensorust builder profile under the Polymarket Builder Program, and Polymarket adds a builder fee to taker fills (Tensorust's rate is 0.25 percent taker, 0 maker; it is public on the profile). It is how this tool is paid for.

You can change it in one env var:

  • POLYMARKET_BUILDER_CODE=0x<your code> attributes volume to your own builder profile (create one at polymarket.com, Settings, Builders).
  • POLYMARKET_BUILDER_CODE=0x0000000000000000000000000000000000000000000000000000000000000000 attributes to nobody and pays no builder fee.

polymarket-agent builder-code prints the code in effect. polymarket-agent limit ... --dry-run shows the exact signed order so you can see the field yourself.

Geoblocking

Polymarket rejects orders from blocked regions and asks builders to check location before sending. Trading commands call Polymarket's own geoblock endpoint first and refuse to send if it says blocked; polymarket-agent geoblock shows the answer for your machine. This tool does nothing to work around that.

Library

rust
use polymarket_agent::Agent;

let agent = Agent::new()?;                 // reads POLYMARKET_PRIVATE_KEY if present
let hits = agent.search("fed rate cut", 3).await?;
let book = agent.book("2088...5717", 10).await?;
let fill = agent.limit("2088...5717", "buy", "0.05", "100", false, false).await?;

Built on the official polymarket_client_sdk_v2 and rmcp crates.

Status

v0.1: CLOB v2, Gamma search, Data API positions, stdio MCP. Not yet: websockets, perps, combos, the gasless relayer. Issues and PRs welcome.

Made by Tensorust.

Similar modules

Browse Trading