Polymarket MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Polymarket MCP Servershow me the top prediction markets by volume"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Polymarket MCP Server
An MCP (Model Context Protocol) server that gives LLM agents full access to Polymarket — the world's largest prediction market. Discover markets, analyze trends, monitor positions, and execute trades.
34 tools · 4 APIs · Read + Write · Safety Guards Built-in
Features
Category | Tools | Auth Required |
🔍 Market Discovery |
| ❌ |
📊 Real-Time Pricing |
| ❌ |
📈 Analytics |
| ❌ |
🏦 Account |
| Wallet address |
💰 Trading |
| Private key |
⚙️ Market Metadata |
| ❌ |
Related MCP server: polymarket-mcp
Quick Start
Prerequisites
Python 3.12+
uv (recommended) or pip
Installation
git clone https://github.com/Arjein/polymarket-mcp.git
cd polymarket-mcp
uv syncConfiguration
cp .env.example .envFor read-only tools (market data, analytics): no configuration needed.
For trading tools: add your credentials to .env:
POLYMARKET_PRIVATE_KEY=0xYourPrivateKey
POLYMARKET_WALLET_ADDRESS=0xYourWalletAddress
POLYMARKET_DRY_RUN=true # Start with dry-run!
POLYMARKET_MAX_ORDER_SIZE=100 # Safety limit in USDConnect to Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"polymarket": {
"command": "uv",
"args": ["--directory", "/path/to/polymarket-mcp", "run", "server.py"]
}
}
}Run Standalone
uv run server.pyArchitecture
polymarket-mcp/
├── server.py # MCP server entrypoint
├── clients/
│ ├── clob.py # CLOB API (public reads + price history)
│ ├── gamma.py # Gamma API (market/event discovery)
│ ├── data.py # Data API (positions, trades, open interest)
│ └── auth_clob.py # Authenticated CLOB (orders, balances)
├── tools/
│ ├── clob_tools.py # 18 read-only CLOB tools
│ ├── gamma_tools.py # 4 market discovery tools
│ ├── data_tools.py # 5 analytics & account tools
│ └── trading_tools.py # 7 authenticated trading tools
├── .env.example # Configuration template
└── pyproject.toml # Dependencies & metadataAPI Coverage
API | Base URL | Purpose |
CLOB |
| Order books, prices, spreads, market data |
Gamma |
| Market/event discovery, metadata, search |
Data |
| Positions, trades, activity, open interest |
CLOB Auth |
| Order placement/cancellation, balances |
Development
npx -y @modelcontextprotocol/inspector uv run polymarket-mcpSafety Guards
The trading tools include built-in safety mechanisms:
Dry-run mode (
POLYMARKET_DRY_RUN=true): Orders are simulated and returned as JSON without executing. Enabled by default.Max order size (
POLYMARKET_MAX_ORDER_SIZE): Orders exceeding this USD value are rejected. Default: $100.Lazy authentication: The server starts without credentials — read-only tools work immediately. Auth is only initialized when a trading tool is first called.
Tool Reference
Tool | Description |
| Search events by query, tag, active/closed status |
| Get event details including all child markets |
| Search markets with filters (volume, tag, status) |
| Get full market metadata by ID or slug |
Tool | Description |
| Best bid/ask price for a token |
| Mid-market price (single / batch) |
| Bid-ask spread (single / batch) |
| Full order book depth (single / batch) |
| Last executed price (single / batch) |
Tool | Description |
| Historical time-series with configurable interval and fidelity |
| Total shares outstanding for a market |
Tool | Description |
| Current holdings with P&L breakdown |
| Historical executed trades |
| Full audit trail (trades, splits, merges, rewards) |
Tool | Description |
| Place a limit order (BUY/SELL, GTC/FOK/GTD/FAK) |
| Cancel a specific order |
| Cancel multiple orders |
| Emergency kill switch — cancel everything |
| List all pending orders |
| Get order status and details |
| Check USDC balance and approvals |
Tool | Description |
| API health check |
| Server timestamp |
| Browse CLOB market listings |
| Market trading parameters |
| Live trade feed for a market |
Example Usage
Once connected to Claude Desktop, you can ask:
"What are the hottest markets on Polymarket right now?"
"Show me the Bitcoin price history over the last week"
"What's the order book depth for the Fed rate decision market?"
"Place a dry-run buy order for 100 YES shares at $0.35 on the Super Bowl market"
⚠️ Disclaimer
This software is provided for educational and informational purposes only. It is not financial advice.
Trading prediction markets involves risk. You may lose some or all of your funds.
The authors are not responsible for any financial losses incurred through the use of this software.
You are solely responsible for your own trading decisions and for complying with all applicable laws and regulations in your jurisdiction.
By using this software, you acknowledge and accept these risks.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBquality-maintenanceEnables AI agents to interact with the Polymarket prediction market platform to discover markets, analyze real-time pricing, and monitor public portfolio data. It provides comprehensive access to market analytics, implied probabilities, and order books through the Model Context Protocol.Last updated5926
- AlicenseAqualityDmaintenanceEnables AI agents to discover and analyze prediction markets, execute trades, and manage positions on Polymarket via the Model Context Protocol.Last updated79419MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Polymarket prediction markets, including retrieving market data, user positions, and trading history.Last updated83110Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI assistants to discover prediction markets, view real-time data, execute trades (market/limit orders), and manage portfolios on Polymarket.Last updated6263MIT
Related MCP Connectors
Calibrated world model for AI agents. 40 tools: world state, markets, trading. Kalshi + Polymarket.
Polymarket + Hyperliquid + macro for AI agents. 38 tools, signal backtest, SSE streaming. Free tier.
Classify Polymarket wallets as human or bot, score their trading edge, read open positions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arjein/polymarket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server