polymarket-agent-mcp
MCP server by demwick Community
Trade, analyze, and automate Polymarket prediction markets from an AI assistant. It offers 48 MCP tools for discovery, copy trading, backtesting, and portfolio risk. Aimed at traders using Claude Code, Cursor, or other MCP clients.
Install polymarket-agent-mcp
Built from the published package, never by AI.
claude mcp add polymarket-agent-mcp -- npx -y polymarket-agent-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"polymarket-agent-mcp": {
"args": [
"-y",
"polymarket-agent-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install polymarket-agent-mcp in Claude Desktop
{
"mcpServers": {
"polymarket-agent-mcp": {
"args": [
"-y",
"polymarket-agent-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"polymarket-agent-mcp": {
"args": [
"-y",
"polymarket-agent-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add polymarket-agent-mcp -- npx -y polymarket-agent-mcp{
"mcpServers": {
"polymarket-agent-mcp": {
"args": [
"-y",
"polymarket-agent-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install polymarket-agent-mcp in Antigravity CLI
gemini mcp add polymarket-agent-mcp npx -y polymarket-agent-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the polymarket-agent-mcp block.
About
polymarket-agent-mcp is an MCP server for Polymarket prediction markets. It gives an AI assistant 48 tools covering market discovery, analysis, direct trading, copy trading, backtesting, risk management, and portfolio optimization. It is published on npm and can also run from a prebuilt Docker image.
The server uses stdio by default and has an optional HTTP mode. Each client runs its own instance with a local SQLite database, watchlist, daily budget, and trade history. Trading starts in preview mode, which simulates orders, and live mode must be enabled explicitly. The author positions it for users who want to trade, analyze, and automate Polymarket through an AI client such as Claude Code or Cursor.
Written from the project's README and checked against it.
Tools it gives your assistant
markets.searchSearch markets by keyword, such as bitcoin, election, or UFC.traders.discoverFind top traders by PnL and volume.markets.analyzeGet an AI-powered BUY, SELL, or HOLD recommendation for a market.traders.scoreRate a trader's conviction from 0 to 100 across 5 dimensions.markets.price_historyShow historical prices with a sparkline, from 1 hour to 1 month.orders.buyBuy shares on any market.orders.batchExecute up to 10 orders at once.watchlist.addAdd or remove traders from the watchlist.monitor.startStart the automatic copy trading loop.traders.backtestSimulate copying a trader's past trades.
What you need
- Node.js for npm install or npx
- Docker, optional, for the prebuilt image
- An MCP-compatible client such as Claude Code or Cursor
- Wallet signing key, only for live trading
- CLOB API credentials, only for live trading
| Setting | Needed | What it is |
|---|---|---|
COPY_Environment variable | Optional | Execution mode: 'preview' simulates trades in a local SQLite DB (default, safe for inspection); 'live' places real orders on Polymarket and requires all POLY_* credentials. Default: preview |
POLY_Environment variable, secret | Optional | Polygon wallet private key used to sign CLOB orders. Required only when COPY_MODE=live. Never logged, persisted, or transmitted outside signed order bodies. |
POLY_Environment variable, secret | Optional | Polymarket CLOB API key. Required only when COPY_MODE=live. |
POLY_Environment variable, secret | Optional | Polymarket CLOB API secret. Required only when COPY_MODE=live. |
POLY_Environment variable, secret | Optional | Polymarket CLOB API passphrase. Required only when COPY_MODE=live. |
POLY_Environment variable | Optional | Polymarket funder wallet address (proxy wallet) used for live trading. |
DAILY_Environment variable | Optional | Maximum USDC the agent may spend per day. Used by BudgetManager to cap copy-trading exposure. Default: 20 |
MIN_Environment variable | Optional | Minimum conviction score (0–100) required before a copy trade is executed. Default: 3 |
CHAIN_Environment variable | Optional | EVM chain ID for Polymarket (137 = Polygon mainnet). Default: 137 |
DB_Environment variable | Optional | Optional override for the SQLite database path. Defaults to a package-local file. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search for bitcoin prediction markets
- Backtest this trader with $10 per trade
- Set stop-loss at 0.30 on my BTC position
Good to know
- Default preview mode simulates orders and uses no real money.
- Designed for single-tenant use. The author advises against public HTTP exposure.
- Live trading needs wallet signing and CLOB API credentials.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to polymarket-agent-mcp
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
polymarket-agent-mcp: common questions
Does polymarket-agent-mcp place real trades by default?
No. The default COPY_MODE is preview, which simulates orders. Live mode uses real orders and must be switched on with config.go_live.
Which AI clients does it work with?
The source says it works with Claude Code, Cursor, or any MCP-compatible client. Stdio is the recommended transport for local use.
Can I run it as a shared public server?
The source says no. It has no per-user isolation, so watchlist, positions, and budget are shared across clients. It advises keeping any HTTP endpoint behind a firewall, VPN, or auth proxy.
How do I install polymarket-agent-mcp?
In Claude Code run claude mcp add polymarket-agent-mcp -- npx -y polymarket-agent-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is polymarket-agent-mcp the official server?
polymarket-agent-mcp is a community project by demwick, not verified by a company domain.
Is polymarket-agent-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is polymarket-agent-mcp safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to polymarket-agent-mcp?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does polymarket-agent-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
