Enables interaction with Polymarket prediction markets on the Polygon network, providing tools for market discovery, real-time pricing, order book analysis, and monitoring of public portfolio activity.
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 ServerWhat are the current odds for the 2024 Presidential Election?"
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
π Overview
The Polymarket MCP Server enables AI agents to interact with Polymarket, a prediction market platform on Polygon. This server provides read-only access to market data (Gamma API), real-time pricing and order books (CLOB public API), public user data (Data API), comments/profiles, and bridge quotes/status.
By implementing the Model Context Protocol (MCP), this server allows Large Language Models (LLMs) to discover prediction markets, analyze odds (probabilities), and monitor positions or activity from public data sources.
β¨ Features
Market Discovery: Search and filter prediction markets by keywords, tags, status, and events.
Real-time Pricing: Access live price data, implied probabilities, and order books for any outcome token.
Public Portfolio Data: Monitor positions, trade history, and activity for specific wallet addresses (public Data API).
Comments & Profiles: Retrieve public profiles and market/event comments.
Realtime Subscriptions: Subscribe to price, orderbook, and resolution updates.
Bridge Utilities: Fetch supported assets and bridge quotes/status.
π¦ Installation
π§ Build from Source
β‘ Running with an MCP Client
Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json).
π Minimal Configuration (Read-Only)
π Configuration (Environment Variables)
Variable | Required | Description | Default |
| No | Polymarket CLOB API base URL |
|
| No | Blockchain network chain ID |
|
| No | Polymarket Gamma API base URL |
|
| No | Polymarket Data API base URL |
|
| No | Polymarket Bridge API base URL |
|
π‘ Usage Examples
π Market Discovery
"What are the most active prediction markets on Polymarket right now?"
"Search for markets related to 'Bitcoin' or 'BTC'."
"Find markets in the 'Crypto' category."
"What events are trending on Polymarket today?"
π Analytics & Pricing
"Show me the order book for the 2024 election market."
"What is the current probability implied by the price of the 'Yes' token?"
"Get detailed information about the 'will-trump-win-2024' market."
πΌ Portfolio & Trading (Requires Private Key)
"What's my current USDC balance and allowance?"
"Show me all my open orders across all markets."
"Place a buy order for 100 shares at 0.65 price."
"Cancel all my open orders on this market."
π οΈ MCP Tools
Full tool documentation is maintained in:
TOOLS_REFERENCE.mdβ complete tool list, parameters, dependencies, edge casesUSAGE_EXAMPLES.mdβ workflows and example calls
For agents, call get_tool_guide to get a concise, runtime usage guide.
π Credits
This project is based on and modified from:
π¨βπ» Development
ποΈ Build Project
ποΈ Development Mode (Watch)
β Linting & Formatting
π Project Structure
src/tools/: Individual tool definitionssrc/services/: API client and business logicsrc/index.ts: Server entry point
π Resources
β οΈ Disclaimer
This project is an unofficial tool and is not directly affiliated with Polymarket. It interacts with financial and prediction market data. Users should exercise caution and verify all data independently. Trading in prediction markets involves risk.
π License
This server cannot be installed