Wraps Polymarket's public Gamma Markets and Data APIs to let Claude search prediction markets by tags, volume, and liquidity, plus analyze individual markets with probabilities and health metrics. You get seven tools covering market discovery, event clusters, recent trades, and comprehensive analysis that combines multiple endpoints. It includes prompts for common workflows like finding trending markets or comparing all outcomes in an event, plus resources that expose curated views of trending markets and categories. Reaches for this when you want to query prediction market data without authentication, analyze trading patterns, or build market research tools that need structured access to Polymarket's ecosystem.
A comprehensive Model Context Protocol (MCP) server for accessing Polymarket's prediction markets through Claude AI. Build market analysis tools, trading assistants, event outcome analyzers, and educational platforms that make prediction markets more accessible.
Built with Smithery SDK | Powered by Polymarket API
search_marketsSearch Polymarket prediction markets with advanced filtering:
Example: "Show me the top 5 most active political markets"
get_marketGet detailed information about a specific market by slug:
Example: "Analyze the market for trump-popular-vote-2024"
search_eventsSearch Polymarket events (collections of related markets):
Example: "Find all active sports events"
get_eventGet detailed information about a specific event:
Example: "Show me all markets in the presidential-election-2024 event"
list_tagsList all available tags/categories:
Example: "What categories of markets are available?"
get_tradesGet recent trade activity from Data API:
Example: "Show me the last 20 trades for a specific market"
analyze_marketComprehensive market analysis combining multiple data sources:
Example: "Give me a full analysis of trump-wins-2024"
Prompts provide guided workflows for common use cases:
analyze_marketGet comprehensive analysis of a specific market by slug.
market_slug (e.g., "trump-wins-2024")find_trendingDiscover the most active prediction markets.
category (optional, e.g., "politics", "sports")compare_eventAnalyze and compare all markets within an event.
event_slug (e.g., "presidential-election-2024")market_discoveryExplore markets in a specific category.
category (e.g., "crypto", "economics")Resources provide direct access to curated market data:
polymarket://trendingCurrently trending markets with high volume and activity (top 20 by 24h volume)
polymarket://categoriesAll available tags/categories for filtering markets (up to 100 tags)
polymarket://featuredFeatured events with multiple related markets (top 10 featured events)
"Analyze the top 10 political markets by volume and identify
which have the strongest consensus vs divided opinion"
"Find high-liquidity markets with recent trading activity above
$100k volume and show me the buy/sell ratios"
"Track all markets related to the 2024 election and summarize
the current probabilities for each outcome"
"Explain how prediction markets work using current Polymarket
data and show examples of different market types"
"Compare trading activity across sports markets today vs
yesterday and identify any unusual patterns"
Gamma Markets API: https://gamma-api.polymarket.com
/markets - Market search and discovery/markets/slug/{slug} - Individual market data/events - Event search/events/slug/{slug} - Individual event data/tags - Category taxonomyData API: https://data-api.polymarket.com
/trades - Trade history and activityInstall dependencies:
npm install
Start development server:
npm run dev
The server will be available in the Smithery playground. Try:
npm run build
Creates bundled server in .smithery/ directory.
Deploy your Polymarket MCP server to Smithery for global access:
Create a new GitHub repository at github.com/new
Initialize git and push to GitHub:
git init
git add .
git commit -m "Add Polymarket MCP server"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git
git push -u origin main
Deploy to Smithery at smithery.ai/new:
Use in Claude: Once deployed, the server will be available to use with Claude AI through the Smithery platform.
polymarket-mcp/
├── src/
│ └── index.ts # Main server implementation
├── package.json # Dependencies and scripts
├── smithery.yaml # Runtime specification
├── README.md # This file
└── .smithery/ # Build output (generated)
The server is organized into:
Market, Event, Tag, Trade interfaces matching Polymarket API responsesPolymarketClient)searchMarkets() - Query markets with filtersgetMarket() - Fetch single market by slugsearchEvents() - Query events with filtersgetEvent() - Fetch single event by sluglistTags() - List all categoriesgetTrades() - Fetch recent tradesformatMarketAnalysis() - Format market data for ClaudeformatTradesSummary() - Summarize trading activityUser: "What's the current probability for Trump winning the 2024 election?"
Claude: [Uses get_market or search_markets to find relevant market]
"Based on Polymarket data, the current probability is 52.3%..."
User: "Find prediction markets related to cryptocurrency"
Claude: [Uses list_tags to find crypto tag ID, then search_markets]
"Found 23 active cryptocurrency markets. Here are the top 5..."
User: "Analyze recent trading activity for election markets"
Claude: [Uses search_markets + get_trades to combine data]
"Recent trading shows 67% buy orders vs 33% sell orders..."
Polymarket's public APIs have generous rate limits:
The server includes comprehensive error handling:
Contributions are welcome! Some ideas:
ISC
Built with the Model Context Protocol by Anthropic and deployed via Smithery.