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 5 markets by liquidity"
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
Opinionated Model Context Protocol (MCP) server for large-scale agentic integrations with the PolyMarket API. This server provides smart tools for LLM agents to search, navigate, and filter interesting events. This MCP server is NOT designed and will NOT be able to perform actual bets. The sole purpose is to provide relevant data for exploration. Actual participation (account management) is a separate responsibility that should not be mixed with this project. The server is designed for remote use and easy connection to most of MCP clients.
Motivation
This project is the third iteration of tools that were developed to automate Polymarket betting using LLMs with human feedback. The first few iterations very quickly faced environment limitations because they were designed for specific use cases. This third iteration overcomes all previously faced problems and is designed to be simultaneously integrated in a universal way into different environments: Claude, OpenCode, ChatGPT, PydanticAI, n8n, etc. It provides tools with limited responsibility but a very high level of abstraction.
Related MCP server: Polymarket MCP Server
Features
In-memory cache: All Polymarket events loaded at startup for instant queries
Background daemon: Automatic updates (incremental fetch, refresh stale, cleanup expired)
Events first: Events are the primary entity (stop overbetting on the same event)
Global analytics: Total liquidity, market counts, distribution metrics
Combined filtering: Search by liquidity, expiry, tags, profit potential
Remote MCP: Run on server and connect to existing online clients
Universal sanitizer: Handles extra metadata fields (tool, id, toolCallId) that some MCP clients inject into tool arguments
Data redundancy: Duplication of important data formats to reduce hallucinations and missinterpretations (Qwen, Mistral, Kimi K2, MiniMax)
Installation and Usage
This system was designed to run remotely, making Docker the ideal standard for packaging the project without worrying about dependencies. Docker also enables easy horizontal scaling by running multiple container instances.
Quick Start (Remote Build)
Build directly from GitHub on your remote server:
docker build -t polymarket-mcp https://github.com/undiabler/polymarket-mcp.gitLocal Build
Alternatively, clone the repository and build locally:
git clone https://github.com/undiabler/polymarket-mcp.git
cd polymarket-mcp
docker build -t polymarket-mcp .Running the Server
Once the Docker image is built, run the container:
docker run -d -p 8000:8000 --name polymarket-mcp-app \
-e MCP_BEARER_TOKEN=<your generated key to secure> \
--volume polycache:/app/data \
polymarket-mcpThat's it! Your MCP server is now running and accessible at http://your-server-ip:8000 as an endpoint for MCP clients.
You can also skip --volume flag, but your application will start slow since it will load all events on statrup. Mounted volume preserve cache between restarts.
Environment Variables
No additional Polymarket API keys are required to make public data requests.
MCP_BEARER_TOKEN- Bearer token for securing your MCP and API endpoints (required, can be any string)
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
- Alicense-qualityFmaintenanceEnables access to Polymarket's prediction markets for analyzing market probabilities, trading activity, and event outcomes across politics, sports, crypto, and other categories through natural language queries.Last updated416MIT
- 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 updated5941
- AlicenseAqualityBmaintenanceEnables AI agents to discover and analyze prediction markets, execute trades, and manage positions on Polymarket via the Model Context Protocol.Last updated72618MIT
- Alicense-qualityDmaintenanceEnables LLM agents to interact with Polymarket prediction markets, including market discovery, real-time pricing, analytics, account management, and trading with built-in safety guards.Last updatedMIT
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.
Polymarket MCP — prediction-market data via Gamma + CLOB public APIs.
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/undiabler/polymarket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server