Read-only Polymarket prediction market data for AI agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server that exposes read-only Polymarket prediction market data to AI agents. Tools wrap Polymarket's public Gamma (market discovery) and Data (positions, portfolio, leaderboard) APIs. There is no CLOB integration β this server cannot place trades or read order books.
| Tool | Description |
|---|---|
search_markets | Search markets by title or description |
get_market_details | Full details for a single market (by slug or Polymarket URL) |
get_trending_markets | Trending events ranked by volume, liquidity, or competitiveness |
get_market_holders | Top holders per outcome for a market (by condition ID, slug, or URL) |
get_leaderboard | Top traders ranked by P&L or volume |
get_user_positions | Open positions for a wallet address |
get_user_performance | Portfolio value, P&L, volume, and leaderboard rank for one wallet |
All tools return markdown formatted for agent consumption. No API keys or wallet signing are required.
Static reference context (no API calls). Attach in MCP clients or read via Inspector.
| URI | Description |
|---|---|
polymarket://glossary | Event, market, slug, conditionId, and wallet terminology |
polymarket://categories | Leaderboard categories, time periods, and tag slugs |
polymarket://tool-guide | When to use each tool and chaining workflows |
User-triggered workflow templates that orchestrate tools:
| Prompt | Description |
|---|---|
research_market | Market details β holders β research summary (slug or market_link) |
compare_traders | Side-by-side performance and positions for two wallets |
scan_trending | Trending events scan with optional tag_slug and limit |
This server uses streamable HTTP at http://127.0.0.1:8000/mcp. Start the server first, then connect your MCP client to that URL.
On Windows, use the same commands in PowerShell, Command Prompt, or Git Bash. Leave the terminal open while your MCP client is connected.
Works the same on all platforms if Docker Desktop is installed:
FASTMCP_HOST=0.0.0.0 lets the server accept connections from outside the container.
Open MCP Inspector in another terminal:
Connect to http://localhost:8000/mcp using the Streamable HTTP transport.
This server uses the streamable-http transport (not stdio). Start the server first (see Quick start), then add the config below to your MCP client.
Go to Claude β Settings β Developer β Edit Config to open claude_desktop_config.json, then include the following:
If you already have other MCP servers configured, add the "polymarket" entry inside your existing mcpServers object instead of replacing the whole file.
Config file location if you prefer to edit it manually:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
Save the file and fully quit and restart Claude Desktop. The server must be running in a terminal before you start a new chat.
Go to Settings β Tools & MCP β New MCP Server to open ~/.cursor/mcp.json (Windows: %USERPROFILE%\.cursor\mcp.json), then add the same polymarket entry:
Restart Cursor after saving.
Once connected, an agent can call tools naturally:
0xβ¦"0xβ¦?"In MCP Inspector, try the Prompts tab (e.g. research_market) or read Resources for the glossary and tool guide.
Optional environment variables override API endpoints and server settings.
macOS / Linux / Git Bash
Windows (PowerShell)
| Variable | Default | Description |
|---|---|---|
GAMMA_URL | https://gamma-api.polymarket.com | Gamma API base URL |
DATA_URL | https://data-api.polymarket.com | Data API base URL |
DEFAULT_TIMEOUT | 15 | HTTP request timeout (seconds) |
FASTMCP_HOST | 127.0.0.1 | Bind address (0.0.0.0 for Docker) |
FASTMCP_PORT | 8000 | Listen port |
On macOS/Linux, make run, make test, and similar shortcuts in the Makefile wrap the same commands.
See docs/PROJECT_KNOWLEDGE_BASE.md for architecture, conventions, and how to add new tools.
MIT β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/polymarket-mcp)<a href="https://allmcps.com/mcp/polymarket-mcp"><img src="https://allmcps.com/api/badge/polymarket-mcp?style=directory" alt="Polymarket Mcp on AllMCPs" /></a>