polymarket-mcp
by pab1it0·★ 6·Score 40
MCP server providing access to Polymarket's prediction markets data through standardized interfaces.
Overview
The polymarket-mcp server serves as a bridge between AI assistants and Polymarket's Gamma Markets API, allowing AI systems to query prediction market data, access market details, retrieve order book information, and analyze market trends. It provides both Docker and UV installation methods, making it accessible for various deployment scenarios.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server if you need AI assistants to access Polymarket's prediction market data through standardized interfaces without implementing custom API integrations.
When NOT to choose this
Don't choose this if you need access to other prediction markets beyond Polymarket or require more advanced trading functionality than market data access.
Tools this server exposes
8 tools extracted from the READMEget_marketsGet a list of all available markets with comprehensive filtering options
get_market_by_idGet detailed information about a specific market
get_order_book[EXPERIMENTAL] Get the current order book for a market
get_recent_trades[EXPERIMENTAL] Get latest trades for a market
get_market_history[EXPERIMENTAL] Get historical market data
search_marketsSearch for markets by keyword using slug filtering
get_eventsGet a list of all available events with comprehensive filtering options
get_event_by_idGet detailed information about a specific event
Comparable tools
Installation
Docker Installation
- Build the Docker image:
docker build -t polymarket-mcp-server .- Add to Claude Desktop configuration:
{
"mcpServers": {
"polymarket": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e", "GAMMA_API_URL",
"-e", "GAMMA_REQUIRES_AUTH",
"polymarket-mcp-server"
],
"env": {
"GAMMA_API_URL": "https://gamma-api.polymarket.com",
"GAMMA_REQUIRES_AUTH": "false"
}
}
}
}UV Installation (Alternative)
- Set up environment:
cp .env.template .env
# Edit .env with your configuration- Add to Claude Desktop configuration:
{
"mcpServers": {
"polymarket": {
"command": "/usr/local/bin/uv",
"args": [
"run",
"-m", "polymarket_mcp_server.main"
],
"cwd": "<full path to polymarket-mcp directory>",
"env": {
"GAMMA_API_URL": "https://gamma-api.polymarket.com",
"GAMMA_REQUIRES_AUTH": "false"
}
}
}
}FAQ
- What is the Gamma Markets API?
- Gamma Markets API is Polymarket's official API for accessing prediction market data, including markets, events, order books, and historical data.
- How do I authenticate with the API?
- Set GAMMA_REQUIRES_AUTH=true in your environment and provide appropriate authentication credentials in your requests.
Compare polymarket-mcp with
Last updated · Auto-generated from public README + GitHub signals.