Polymarket Agent MCP logo

Polymarket Agent MCP

by demwick

Trade, analyze, monitor, and simulate Polymarket prediction markets through 48 MCP tools.

Install Polymarket Agent MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "demwick-polymarket-agent-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polymarket-agent-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio demwick-polymarket-agent-mcp -- npx -y polymarket-agent-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y polymarket-agent-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

demwick/polymarket-agent-mcp MCP server connects AI clients to Polymarket prediction-market data and trading workflows through the MCP protocol. It provides 48 tools for market discovery, analysis, order execution, copy trading, portfolio management, risk controls, backtesting, and price monitoring. The default stdio transport suits local clients such as Claude Code and Cursor, while an HTTP mode supports self-hosted deployments. Use preview mode for simulation and switch to live mode only when real orders are intended.

Use cases

  • Search Polymarket markets by topic or category
  • Analyze market prices, liquidity, holders, and trader performance
  • Backtest and monitor copy-trading strategies
  • Set portfolio risk controls and exit rules
  • Scan markets for arbitrage opportunities

Key features

  • 48 tools for Polymarket discovery, analysis, and trading
  • Preview mode for simulated orders
  • Copy trading with monitoring and backtesting
  • Portfolio optimization and risk management
  • Live WebSocket price subscriptions
  • stdio and HTTP transport modes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 118d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · polymarket-agent-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars20Stargazers on the source repository.
npm downloads532Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Polymarket Agent MCP works

What demwick/polymarket-agent-mcp does

demwick/polymarket-agent-mcp MCP server exposes Polymarket market data, analysis, trading, and portfolio operations to MCP-compatible AI clients. Its 48 tools cover discovery, market and trader analysis, order management, copy-trading workflows, backtesting, portfolio optimization, risk checks, watchlists, and alerts.

The server can search markets by topic, find trending or featured markets, inspect related events, and identify smart-money activity. Analysis tools report prices, spreads, historical movement, market quality, holders, trader performance, and comparisons across markets. Trading tools support purchases, sales, batches, discounted limit bids, order status, cancellation, and safety settings.

How it works

The client communicates with the server through MCP over stdio by default. The server validates tool inputs with Zod and connects its services to Polymarket data sources, including the Gamma API and CLOB API. Internal services handle activities such as scoring, backtesting, smart-money flow detection, trade execution, and copy-trader monitoring.

Each local instance maintains its own SQLite database, including the watchlist, budget, trade history, and monitor state. The project is designed for one tenant per instance rather than shared multi-user operation. Price-watch functionality can use live WebSocket subscriptions, while other tools retrieve market and account information through the server's Polymarket services.

Setup and configuration

Install the package globally with npm:

Terminal
npm install -g polymarket-agent-mcp

The default launch command is:

Terminal
npx polymarket-agent-mcp

A Claude Code configuration can register the server with npx and the polymarket-agent-mcp package name. Docker deployment is also supported through docker compose up.

The server supports HTTP mode with the --http flag or a PORT environment variable. The documented default port is 3000 when PORT is used without a value. HTTP deployments should use the server's bearer-token setting and remain behind a firewall, VPN, or authentication proxy. The README warns against exposing an HTTP instance publicly, especially when live trading is enabled, because connected callers share state and could access the configured wallet.

Tools and capabilities

The demwick/polymarket-agent-mcp MCP server groups its tools into these areas:

  • Discovery: market and trader search, trending and featured markets, events, related markets, WTA markets, and smart-money flow.
  • Analysis: market recommendations, trader profiles and conviction scores, price history, market quality, holders, live prices, and comparisons.
  • Trading: buy, sell, batch orders, limit bids, order listing, cancellation, status checks, and preview-to-live configuration.
  • Copy trading: trader watchlists, automatic monitoring, rebalancing, and historical backtests.
  • Portfolio and risk: balances, positions, P&L, risk scoring, portfolio optimization, stop-loss and take-profit rules, alerts, and arbitrage scans.
  • Utilities: configuration, dashboards, trade history, watched wallets, and agent-cycle logging.

Preview mode is available for simulated activity. Live mode is intended for real orders and can be enabled through the configuration tools.

Limitations and notes

The project is intended for single-tenant use. An HTTP instance does not isolate users, positions, budgets, watchlists, or background monitoring loops. A shared public deployment therefore does not provide separate workspaces for each client.

Live trading carries wallet-access risk. Keep remote deployments private, configure bearer-token protection, and apply the available order-size, exposure, and spread safety limits. The README identifies Node.js 18 or newer as the runtime requirement and lists the project license as MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Polymarket Agent MCP

demwick/polymarket-agent-mcp is an MCP server that connects AI clients to Polymarket prediction-market data and trading workflows. Its main tools search and analyze markets, place and manage orders, track traders, run copy-trading backtests, monitor portfolios, apply risk controls, and stream price updates.

Install it with npm using `npm install -g polymarket-agent-mcp`, then run `npx polymarket-agent-mcp` or register that command in an MCP client. Docker deployment is also available through `docker compose up`.

Yes, demwick/polymarket-agent-mcp works with Cursor through its default stdio transport. The README also identifies Claude Code as a supported client, and the server is intended for MCP-compatible clients generally.

Start it with `node dist/index.js --http` or set `PORT`, such as `PORT=8080 node dist/index.js`. HTTP deployments should use bearer-token protection and remain behind a firewall, VPN, or authentication proxy because the server does not isolate multiple users.

Yes, preview mode supports simulated activity before live trading. The `config.go_live` tool switches the server to live mode for real orders, so remote deployments and wallet access should be protected carefully.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPolymarket Agent MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/demwick-polymarket-agent-mcp?style=directory)](https://allmcps.com/mcp/demwick-polymarket-agent-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/demwick-polymarket-agent-mcp"><img src="https://allmcps.com/api/badge/demwick-polymarket-agent-mcp?style=directory" alt="Polymarket Agent MCP on AllMCPs" /></a>