polymarket-mcp
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-mcpsearch for markets about AI regulation"
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 (read-only)
A read-only MCP server exposing Polymarket's public prediction-market data. Search markets, read live odds and order books, pull historical probability time-series, and inspect public wallet positions — all over public, unauthenticated endpoints.
Read-only by design. No order placement, cancellation, signing, wallets, or private keys. No API keys, no environment variables, zero secrets.
Tools
Tool | What it does |
| Natural-language search across events / markets / tags. |
| Browse & filter markets (volume, liquidity, dates, tags). |
| Full detail for one market by id, slug, or condition_id. |
| Browse & filter events (groups of markets). |
| Event detail with all child markets. |
| What's hot right now (top markets by 24h volume). |
| Freshest CLOB midpoint / bid / ask / spread for an outcome token. |
| Live order book (top N levels) for an outcome token. |
| Historical probability time-series for an outcome token. |
| Public current holdings for a wallet. |
| Recent on-chain activity for a wallet. |
| Top holders per outcome token for a market. |
| Total portfolio value (USDC) for a wallet. |
| Recommended: live odds for one market in a single call. |
Every tool is annotated readOnlyHint=True, openWorldHint=True.
Key concepts
Prices are probabilities. Outcome prices are floats in
[0, 1](e.g.0.41= 41%). Tools also surface a human-readableprobability_pct.token_idvsconditionId. CLOB pricing/book/history tools key on a CLOB token id (one per outcome, from a market'sclobTokenIds) — not a slug or conditionId. The Data API'scondition_ididentifies the market itself.Freshness. Gamma discovery data can lag the live CLOB book by a few seconds. For the freshest odds use
polymarket_get_live_price/polymarket_market_snapshot(CLOB midpoint).
Related MCP server: polymarket-research
Install
Requires uv (Python 3.11+).
Published to PyPI as mcp-polymarket:
# Run on demand (no install):
uvx mcp-polymarket
# Or install as a persistent tool:
uv tool install mcp-polymarketRegistration
No environment variables or API keys are required.
Claude Code (CLI)
claude mcp add polymarket -- uvx mcp-polymarketClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"polymarket": {
"command": "uvx",
"args": ["mcp-polymarket"]
}
}
}Development
From a checkout of this repo:
uv sync # install deps
uv run mcp-polymarket # run the server (stdio)
uv run python tests/smoke_test.py # live smoke test (hits the public API)Inspect the tool schemas and annotations:
npx @modelcontextprotocol/inspector uvx mcp-polymarketPublishing
Releases are published to PyPI automatically via
Trusted Publishing — no API tokens are
stored. The workflow in .github/workflows/publish.yml runs uv build and uploads
the artifacts whenever a GitHub Release is published. To cut a release:
# bump `version` in pyproject.toml, commit, then:
gh release create v0.1.0 --generate-notesSelf-hosting over HTTP (optional)
In addition to the default stdio transport, the server can run over streamable-HTTP:
uv run polymarket-mcp --http --host 0.0.0.0 --port 8000
# served at http://<host>:<port>/mcpEvaluation
evaluation.xml contains stable, verifiable, read-only questions exercising multi-tool
workflows (search → market → price history → live price, etc.).
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/fzlzjerry/polymarket-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server