Polymarket
平台与服务by aryankeluskar
按标签、交易量、流动性和活跃度发现并筛选 Polymarket 预测市场,分析概率、市场健康与近期交易信号,跟踪分类趋势和情绪变化。
什么是 Polymarket?
按标签、交易量、流动性和活跃度发现并筛选 Polymarket 预测市场,分析概率、市场健康与近期交易信号,跟踪分类趋势和情绪变化。
核心功能 (7 个工具)
search_marketsSearch Polymarket prediction markets with filters. Find active markets, filter by tags, volume, liquidity, and more. Perfect for market discovery and analysis.
get_marketGet detailed information about a specific market by slug. Returns probabilities, volume, liquidity, outcomes, and full market data.
search_eventsSearch Polymarket events. Events group related markets together (e.g., 'Presidential Election 2024' contains multiple markets). Great for discovering market clusters.
get_eventGet detailed information about a specific event by slug, including all related markets.
list_tagsList all available tags/categories for filtering markets and events. Use tag IDs with search_markets or search_events.
get_tradesGet recent trade activity from Polymarket's Data API. Analyze trading patterns, volume, and market sentiment.
analyze_marketGet comprehensive market analysis including probabilities, trading activity, and AI-friendly insights. Combines market data with recent trades.
README
Polymarket MCP Server
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
Features
- Market Discovery: Search and filter prediction markets by tags, volume, liquidity, and more
- Event Analysis: Access grouped markets and event clusters (e.g., elections, sports, economics)
- Trading Data: View recent trades, analyze trading patterns and market sentiment
- Comprehensive Analysis: Get AI-friendly insights with probabilities, volume, liquidity, and market health
- Public Access: No authentication required - uses Polymarket's public APIs
- Real-time Data: Access to both Gamma Markets API and Data API
Tools Included
1. search_markets
Search Polymarket prediction markets with advanced filtering:
- Filter by tags, volume, liquidity, closed status
- Order by any field (volume, liquidity, etc.)
- Pagination support
Example: "Show me the top 5 most active political markets"
2. get_market
Get detailed information about a specific market by slug:
- Current probabilities for all outcomes
- Volume (24h and total), liquidity
- Market status and end date
- Full market metadata
Example: "Analyze the market for trump-popular-vote-2024"
3. search_events
Search Polymarket events (collections of related markets):
- Filter by tags, featured status, closed status
- See all markets within an event
- Event-level volume and liquidity
Example: "Find all active sports events"
4. get_event
Get detailed information about a specific event:
- All markets within the event
- Event-level statistics
- Market probabilities and slugs
Example: "Show me all markets in the presidential-election-2024 event"
5. list_tags
List all available tags/categories:
- Discover market categories (Politics, Sports, Crypto, etc.)
- Get tag IDs for filtering
- Browse market taxonomy
Example: "What categories of markets are available?"
6. get_trades
Get recent trade activity from Data API:
- Filter by market, event, or trade side (BUY/SELL)
- Analyze trading patterns
- View buy/sell ratio and volume
Example: "Show me the last 20 trades for a specific market"
7. analyze_market
Comprehensive market analysis combining multiple data sources:
- Probability analysis with sentiment indicators
- Market health scoring (liquidity & activity levels)
- Optional trade data integration
- AI-friendly insights for decision-making
Example: "Give me a full analysis of trump-wins-2024"
Prompts Included
Prompts provide guided workflows for common use cases:
1. analyze_market
Get comprehensive analysis of a specific market by slug.
- Args:
market_slug(e.g., "trump-wins-2024") - Use: Provides probabilities, trading activity, market health, and sentiment analysis
2. find_trending
Discover the most active prediction markets.
- Args:
category(optional, e.g., "politics", "sports") - Use: Shows top 10 high-volume markets with analysis
3. compare_event
Analyze and compare all markets within an event.
- Args:
event_slug(e.g., "presidential-election-2024") - Use: Compares related markets and identifies patterns
4. market_discovery
Explore markets in a specific category.
- Args:
category(e.g., "crypto", "economics") - Use: Discovers markets with strong consensus or divided opinion
Resources Exposed
Resources provide direct access to curated market data:
1. polymarket://trending
Currently trending markets with high volume and activity (top 20 by 24h volume)
2. polymarket://categories
All available tags/categories for filtering markets (up to 100 tags)
3. polymarket://featured
Featured events with multiple related markets (top 10 featured events)
Use Cases
Market Analysis Tools
"Analyze the top 10 political markets by volume and identify
which have the strongest consensus vs divided opinion"
Trading Assistant
"Find high-liquidity markets with recent trading activity above
$100k volume and show me the buy/sell ratios"
Event Outcome Analyzer
"Track all markets related to the 2024 election and summarize
the current probabilities for each outcome"
Educational Platform
"Explain how prediction markets work using current Polymarket
data and show examples of different market types"
Trend Detection
"Compare trading activity across sports markets today vs
yesterday and identify any unusual patterns"
API Endpoints Used
-
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 taxonomy
-
Data API:
https://data-api.polymarket.com/trades- Trade history and activity
Prerequisites
- Smithery API key: Get yours at smithery.ai/account/api-keys
- Node.js 18+
- No Polymarket authentication required (public read-only access)
Getting Started
Local Development
-
Install dependencies:
bashnpm install -
Start development server:
bashnpm run dev -
The server will be available in the Smithery playground. Try:
- "Show me the most active prediction markets"
- "Analyze the market for trump-wins-2024"
- "What trading categories are available?"
Building
npm run build
Creates bundled server in .smithery/ directory.
Deployment to Smithery
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:
bashgit 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:
- Connect your GitHub repository
- Smithery will auto-detect the configuration
- Click "Deploy"
-
Use in Claude: Once deployed, the server will be available to use with Claude AI through the Smithery platform.
Project Structure
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)
Development
The server is organized into:
Type Definitions
Market,Event,Tag,Tradeinterfaces matching Polymarket API responses
API Client (PolymarketClient)
searchMarkets()- Query markets with filtersgetMarket()- Fetch single market by slugsearchEvents()- Query events with filtersgetEvent()- Fetch single event by sluglistTags()- List all categoriesgetTrades()- Fetch recent trades
Utility Functions
formatMarketAnalysis()- Format market data for ClaudeformatTradesSummary()- Summarize trading activity
MCP Tools
- 7 tools with comprehensive schemas, error handling, and annotations
- All tools are annotated as read-only, non-destructive, and idempotent
- 4 prompts for common workflows (market analysis, trending, comparison, discovery)
- 3 resources exposing curated data (trending markets, categories, featured events)
Example Conversations
Political Market Analysis
User: "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%..."
Market Discovery
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..."
Trading Pattern Analysis
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..."
Rate Limits
Polymarket's public APIs have generous rate limits:
- ~1,000 requests/hour for Gamma API
- No authentication required
- Consider implementing caching for production use
Error Handling
The server includes comprehensive error handling:
- API errors are caught and returned with descriptive messages
- 404 errors for missing markets/events
- Network errors handled gracefully
- Invalid parameters validated via Zod schemas
Contributing
Contributions are welcome! Some ideas:
- Add caching layer for frequently accessed markets
- Implement WebSocket support for real-time updates
- Add more analytical tools (correlation, trend detection)
- Create market comparison tools
- Add support for historical data analysis
Learn More
License
ISC
Acknowledgments
Built with the Model Context Protocol by Anthropic and deployed via Smithery.
常见问题
Polymarket 是什么?
按标签、交易量、流动性和活跃度发现并筛选 Polymarket 预测市场,分析概率、市场健康与近期交易信号,跟踪分类趋势和情绪变化。
Polymarket 提供哪些工具?
提供 7 个工具,包括 search_markets、get_market、search_events 等。
相关 Skills
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。