Skip to content
Polymarket Agent logo
MCP server
Registry

Polymarket Agent MCP Server

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

Polymarket Agent scores 64 (Good), licensed MIT and written in Rust. It installs as a local process. It does not declare tools yet. Filed under Uncategorized. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by mattbuselMITRust1 stars
Trust score
64Good
Trust score 64 of 100, Good

Good trust

64 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 64 comes from

22 + 20 + 1 + 10 + 4 + 7 = 64. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "mattbusel-polymarket-agent": {      "command": "npx",      "args": [        "-y",        "https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb"      ],      "env": {        "POLYMARKET_PRIVATE_KEY": "YOUR_POLYMARKET_PRIVATE_KEY",        "POLYMARKET_FUNDER": "",        "POLYMARKET_SIGNATURE_TYPE": "",        "POLYMARKET_BUILDER_CODE": ""      }    }  }}

Environment variables

NameRequiredNotes
POLYMARKET_PRIVATE_KEYSecretOptionalHex private key of the Polygon wallet that signs orders. Only the trading tools need it.
POLYMARKET_FUNDEROptionalProxy or Safe wallet address for polymarket.com accounts. Leave unset for a plain wallet.
POLYMARKET_SIGNATURE_TYPEOptionaleoa (default), proxy or safe.
POLYMARKET_BUILDER_CODEOptional32-byte hex builder code on every order. Unset uses Tensorust's; all zeros attributes to nobody.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

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):

{
  "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

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.

Frequently asked questions

What is Polymarket Agent MCP Server?

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

How do I install Polymarket Agent MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Polymarket Agent MCP Server runs locally from the MCP bundle https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb with the command npx -y https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb.

Is Polymarket Agent MCP Server free and open source?

Yes. Polymarket Agent MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Polymarket Agent MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Polymarket Agent MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Polymarket Agent MCP Server's trust score calculated?

Polymarket Agent MCP Server scores 64 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server