Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 73
  • 20 stars
  • 73 a week
  • MIT
  • Updated

Install polymarket-agent-mcp

Built from the published package, never by AI.

claude mcp add polymarket-agent-mcp -- npx -y polymarket-agent-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install polymarket-agent-mcp in Claude Code

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
SettingNeededWhat it is
COPY_MODEEnvironment variableOptionalExecution 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_PRIVATE_KEYEnvironment variable, secretOptionalPolygon wallet private key used to sign CLOB orders. Required only when COPY_MODE=live. Never logged, persisted, or transmitted outside signed order bodies.
POLY_API_KEYEnvironment variable, secretOptionalPolymarket CLOB API key. Required only when COPY_MODE=live.
POLY_API_SECRETEnvironment variable, secretOptionalPolymarket CLOB API secret. Required only when COPY_MODE=live.
POLY_API_PASSPHRASEEnvironment variable, secretOptionalPolymarket CLOB API passphrase. Required only when COPY_MODE=live.
POLY_FUNDER_ADDRESSEnvironment variableOptionalPolymarket funder wallet address (proxy wallet) used for live trading.
DAILY_BUDGETEnvironment variableOptionalMaximum USDC the agent may spend per day. Used by BudgetManager to cap copy-trading exposure. Default: 20
MIN_CONVICTIONEnvironment variableOptionalMinimum conviction score (0–100) required before a copy trade is executed. Default: 3
CHAIN_IDEnvironment variableOptionalEVM chain ID for Polymarket (137 = Polygon mainnet). Default: 137
DB_PATHEnvironment variableOptionalOptional 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

A

No 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 →
mcp stripe
96

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.

AAA Remote 2.1k
TradingMCPatilaahmettaner
94

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.

AAA Remote 5.4k
CCXTccxt
94

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.

AAA Local 45k
Finance ToolkitJerBouma
94

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.

AAA Local and remote 5.6k
Vapi Network MCP vAPI-Network
94

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.

AAA Local 6.2k
Finance DatabaseJerBouma
94

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.

AAA Local and remote 9.7k

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.

polymarket-agent-mcp Install

Add to stack

Loading.