polymarket-mcp
Enables querying Polymarket prediction market data, including top active markets and order books, without an API key or database.
README
polymarket-mcp
Clean, NegRisk-resolved Polymarket market & order-book data as an MCP server. No API key, no database — stateless wrappers over the public Gamma and CLOB APIs, with the messy parts (keyset pagination, NegRisk flags, token→outcome resolution, book parsing) already handled for you.
Point any MCP client (Claude Desktop, Cowork, Cursor, …) at it and your agent can query prediction-market data directly.
Tools
| Tool | What it does |
|---|---|
polymarket_get_markets |
Top active markets by liquidity or 24h volume. Returns question, conditionId, outcome→tokenId mapping, negRisk flag, event, liquidity, volume, best bid/ask, spread. Filters: limit, order_by, min_liquidity, contains, neg_risk_only. |
polymarket_get_orderbook |
Live CLOB order book(s) for one or more outcome token ids. Sorted bids/asks + best bid/ask, spread, midpoint. |
polymarket_resolve_token |
Resolve a token_id, condition_id, or slug to its market and outcome mapping (which outcome the token is, its siblings). |
Install & run
npm install
npm run build
Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"polymarket": { "command": "node", "args": ["/absolute/path/to/polymarket-mcp/dist/server.js"] }
}
}
Then ask your agent things like "what are the most active Polymarket markets right now?" or "get the order book for this token id".
Try it without a client
npm run build && npm run smoke # drives the server over stdio against live APIs
Config (all optional)
| Env | Default |
|---|---|
GAMMA_BASE_URL |
https://gamma-api.polymarket.com |
CLOB_BASE_URL |
https://clob.polymarket.com |
FETCH_TIMEOUT_MS |
15000 |
Notes
- Read-only. No trading, no orders, no keys. It reads public data.
- Every fetch has a hard timeout + backstop so a stalled upstream can't hang the server.
- This is a data-access tool, not trading advice. Prices and books are live public data; verify before acting on them.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.