
Polymarket MCP Tool
A Model Context Protocol server that enables interaction with Polymarket prediction markets through Claude Desktop.
Tools
prediction_markets_trending_topics
Use when analysing a user’s portfolio and you need external sentiment from prediction markets. Retrieves today’s trending Polymarket topics (ordered by 24-hour volume). Pass any slug from this list to `prediction_markets_markets_by_topic` to pull the individual markets for that theme. Returns ------- str A JSON array (string) of topic slugs ordered by 24-hour volume, e.g. '["Trump-Presidency", "Oil-Prices", "Iran"]'.
prediction_markets_markets_by_topic
Call after you have a Polymarket topic slug (from the user or `prediction_markets_trending_topics`) and need the top markets under it. Parameters ---------- topic_slug : str Identifier such as "trump-presidency". limit : int, default 10 Number of markets to return, ranked by 24-hour volume (desc). Returns ------- str JSON array of objects with the schema: [ { "title": "Trump to win 2024?", "volume": 123456.78, "outcomes": [ {"option": "Yes", "probability": 0.42}, {"option": "No", "probability": 0.58} ] }, … ] Parse with `json.loads`.
search_prediction_markets
Search prediction markets by any term. Parameters ---------- search_term : str Identifier such as "argentina". Returns ------- str JSON array of objects with the schema: [ { "title": "Trump to win 2024?", "volume": 123456.78, "outcomes": [ {"option": "Yes", "probability": 0.42}, {"option": "No", "probability": 0.58} ] }, … ] Parse with `json.loads`.
README
Polymarket MCP Tool
A Model Context Protocol (MCP) tool for interacting with Polymarket through Claude Desktop.
Prerequisites
- Claude Desktop App for Mac
- Python 3.8+
Installation
- Clone this repository:
git clone https://github.com/fernandezpablo85/polymarket-mcp.git
cd polymarket-mcp
- Install
uv
if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
- Install dependencies:
uv sync
Configure Claude Desktop
- Open Claude Desktop configuration directory:
open ~/Library/Application\ Support/Claude
- Create or edit
claude_desktop_config.json
:
touch ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Add the following configuration:
{
"mcpServers": {
"polymarket": {
"command": "/Users/YOUR_USERNAME/.local/bin/uv",
"args": [
"--directory",
"/Users/YOUR_USERNAME/projects/polymarket-mcp",
"run",
"main.py"
]
}
}
}
Replace YOUR_USERNAME
with your actual macOS username.
Usage
Invoke the tool via Claude Desktop.
Troubleshooting
-
If tools don't appear in Claude Desktop:
- Verify your
claude_desktop_config.json
is correct - Restart Claude Desktop
- Check your Python path and dependencies
- Verify your
-
If authentication fails:
- Verify your
.env
file has correct credentials - Check Polymarket API status
- Verify your
License
MIT
Contributing
Feel free to open issues or submit pull requests.
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.