Polymarket Gamma MCP Server
Polymarket Gamma MCP Server
Polymarket Gamma Markets API を操作するための MCP サーバー - 予測市場、イベント、分析に関するデータを取得します。
🚀 機能
📊 主な機能:
トレンド市場 - 高取引量の人気市場を取得
市場検索 - 質問と説明のテキスト検索
カテゴリによるフィルタリング - タグによる市場 (Politics、Sports、Crypto)
市場詳細 - 特定の市場に関する完全な情報
イベント - 関連する市場を持つイベントを取得
API 使用状況 - リクエスト使用量の追跡
🔧 技術的特徴:
API キー不要 - Gamma API へのパブリックアクセス
TypeScript - 厳密な型付けとデータ検証
リトライロジック - ネットワークエラー時の自動再試行
フォーマット済み出力 - ロシア語でのデータ表示
制限の追跡 - API 使用量の監視
Related MCP server: Polymarket MCP Server
📦 インストール
# Клонировать и установить зависимости
npm install
# Собрать проект
npm run build
# Запустить тесты
npm test🛠️ 利用可能なツール
1. get_trending_markets
高取引量のトレンド市場を取得します。
パラメータ:
limit(数値、デフォルト: 20) - 市場数
応答例:
{
"summary": "Найдено 5 трендовых рынков",
"apiUsage": "4/1000 запросов использовано, 996 осталось",
"markets": "1. Will Joe Biden get Coronavirus before the election?\n 💰 Объём: $32,257 | 💧 Ликвидность: $0\n 🏷️ Теги: US-current-affairs\n 📊 Цены: Yes: 0.0% | No: 0.0%",
"rawData": [...]
}2. get_markets_by_category
カテゴリ/タグによる市場の取得。
パラメータ:
tags(文字列配列、必須) - フィルタリング用カテゴリlimit(数値、デフォルト: 50) - 市場数
例:
{
"tags": ["Politics", "US Election"],
"limit": 20
}3. search_markets
テキストクエリによる市場検索。
パラメータ:
query(文字列、必須) - 検索クエリlimit(数値、デフォルト: 30) - 結果数
4. get_market_details
特定の市場の詳細情報を取得します。
パラメータ:
marketId(文字列、必須) - 市場 ID
5. get_events
関連する市場を持つイベントを取得します。
パラメータ:
limit(数値、デフォルト: 20) - イベント数active(ブール値、デフォルト: true) - アクティブなイベントのみorderBy(文字列) - ソート: volume、liquidity、endDate、createdAt
6. get_event_details
イベントの詳細情報を取得します。
パラメータ:
eventId(文字列、必須) - イベント ID
7. get_api_usage
API 使用統計の取得。
🔗 API エンドポイント
サーバーは以下の Gamma API エンドポイントを使用します:
GET /markets- 市場リストGET /markets/{id}- 市場詳細GET /events- イベントリストGET /events/{id}- イベント詳細
ベース URL: https://gamma-api.polymarket.com
📊 データ構造
ProcessedMarket
{
id: string;
question: string;
description?: string;
outcomes: string[];
prices: number[];
volume: number;
liquidity: number;
endDate: string;
tags: string[];
active: boolean;
closed: boolean;
resolved: boolean;
negRisk: boolean;
spread?: number;
slug: string;
tokens: Array<{
id: string;
outcome: string;
price: number;
winner?: boolean;
}>;
}ProcessedEvent
{
id: string;
title: string;
description?: string;
slug: string;
tags: string[];
startDate?: string;
endDate?: string;
active: boolean;
closed: boolean;
volume?: number;
liquidity?: number;
marketsCount: number;
topMarkets?: ProcessedMarket[];
}🧪 テスト
# Основные тесты
npm test
# Отладка API структуры
node test/debug-api.js⚠️ 制限事項
パブリック API - キーなし、ただし合理的な制限あり
読み取り専用 - 注文は不可 (そのためには CLOB API が必要)
簡易検索 - 現時点では全文検索なし
遅延データ - リアルタイムの相場ではない
🔄 Windsurf との統合
mcp_config.json に追加:
{
"mcpServers": {
"polymarket-gamma": {
"command": "node",
"args": ["C:/Users/pavelk/Desktop/Projects/my_own/Bet/polymarket/mcp-servers/polymarket-gamma-server/dist/index.js"],
"cwd": "C:/Users/pavelk/Desktop/Projects/my_own/Bet/polymarket/mcp-servers/polymarket-gamma-server"
}
}
}📈 使用例
このサーバーは以下に最適です:
市場分析 - トレンドと取引量の調査
イベント監視 - 新しい市場の追跡
リサーチ - 分析用データの収集
機会のスクリーニング - 興味深い市場の検索
実際の取引には、別の CLOB MCP サーバーを使用してください。
🚀 次のステップ
✅ Gamma API サーバー - 準備完了、テスト済み
🔄 CLOB API サーバー - 取引操作用
🔄 WebSocket サーバー - リアルタイムデータ用
🔄 統合サーバー - すべての機能を統合
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables access to Polymarket's prediction markets for analyzing market probabilities, trading activity, and event outcomes across politics, sports, crypto, and other categories through natural language queries.1510MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query Polymarket prediction markets, accessing real-time odds, market data, price history, order books, and trending markets across categories like politics, crypto, and sports through natural language.155MIT
- AlicenseBqualityDmaintenanceEnables comprehensive read access to Polymarket prediction market data, including live prices, order books, and market statistics. It allows AI assistants to analyze events, search markets, and monitor real-time signals without requiring API keys or authentication.221MIT
- FlicenseNot gradedqualityCmaintenanceEnables interaction with Polymarket prediction markets through read-only access to market data, events, orderbooks, and user positions, plus authenticated trading capabilities for creating and managing orders.1
Related MCP Connectors
Polymarket MCP — prediction-market data via Gamma + CLOB public APIs.
Kalshi MCP — US-regulated prediction-market data (no auth on public reads).
Classify Polymarket wallets as human or bot, score their trading edge, read open positions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Mavline/polymarket-gamma-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server