New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mattbusel avatar

Polymarket Agent

mattbusel/polymarket-agent

Search, read, and trade Polymarket from an agent: markets, order books, prices, and CLOB v2 orders.

GitHub stars
1
tools
13
auth
Secret needed
transport
STDIO
env vars
4
last updated
Nov 15, 2026
View on GitHub

What it does

  • Reads data with search_markets, get_market, get_orderbook, get_price, and get_positions, with a check through check_geoblock before any trading call
  • Writes orders with place_limit_order, place_market_order, cancel_order, and cancel_all_orders; list_open_orders and list_trades show order history
  • Requires a Polygon private key in POLYMARKET_PRIVATE_KEY for trading only, signs locally over stdio, and attributes orders to a builder code by default
  • Designed for agents that research markets and place or manage orders, with a --dry-run option to inspect signed orders before sending

Tools

13 tools

Public tool metadata for what this MCP can expose to an agent.

search_marketsSearch Polymarket markets by keyword.

Search Polymarket markets by keyword.

No parameter schema in public metadata yet.

get_market

No parameter schema in public metadata yet.

get_orderbook

No parameter schema in public metadata yet.

get_price

No parameter schema in public metadata yet.

check_geoblock

No parameter schema in public metadata yet.

place_limit_order

No parameter schema in public metadata yet.

place_market_order

No parameter schema in public metadata yet.

cancel_order

No parameter schema in public metadata yet.

cancel_all_orders

No parameter schema in public metadata yet.

list_open_orders

No parameter schema in public metadata yet.

list_trades

No parameter schema in public metadata yet.

get_positions

No parameter schema in public metadata yet.

builder_attribution

No parameter schema in public metadata yet.

Configuration

POLYMARKET_PRIVATE_KEYsecret

Hex private key of the Polygon wallet that signs orders. Only the trading tools need it.

POLYMARKET_FUNDER

Proxy or Safe wallet address for polymarket.com accounts. Leave unset for a plain wallet.

POLYMARKET_SIGNATURE_TYPE

eoa (default), proxy or safe.

POLYMARKET_BUILDER_CODE

32-byte hex builder code on every order. Unset uses Tensorust's; all zeros attributes to nobody.

Readme

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.

View the full README on GitHub

Details

Repository
github.com/mattbusel/polymarket-agent
Website
github.com/Mattbusel/polymarket-agent
Categories
Finance & Trading, Web3 & Crypto
Package
https://github.com/Mattbusel/polymarket-agent/releases/download/v0.1.1/polymarket-agent-mcp-0.1.1.mcpb
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Similar to Polymarket Agent

More Finance & Trading