
guangxiangdebizi/polymarket-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
世界最大の予測市場プラットフォームであるPolymarketと相互作用するための包括的なモデルコンテキストプロトコル(MCP)サーバー.
概要
世界最大の予測市場プラットフォームであるPolymarketと相互作用するための包括的なモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアシスタントが市場データ、ユーザーポジション、取引履歴などを取得できるように、PolymarketのAPIへのシームレスなアクセスを提供します。 - : フィルタリングとペジネーションで予測市場を回復 - : 複数の関連市場を含むアクセスイベントデータ - : リアルタイムおよび技術的な分析による歴史的価格データ - : 市場深度分析によるライブ入札/平均データ - : 統計と包括的な取引データ - : P&L計算で追跡するポートフォリオ - : 取引、分割、マージ、報酬を含むオンチェーンアクティビティ - : 所有権分布と集中分析 - 流動性分析と市場の深さ - 価格の傾向分析とボラティリティ指標 - ポートフォリオのパフォーマンストラッキング - 市場濃度と分布の洞察 - Node.js 18 + - TypeScript 5.
概要(AI 翻訳)
世界最大の予測市場プラットフォームであるPolymarketと相互作用するための包括的なモデルコンテキストプロトコル(MCP)サーバー。 このサーバーは、AIアシスタントが市場データ、ユーザーポジション、取引履歴などを取得できるように、PolymarketのAPIへのシームレスなアクセスを提供します。
OST の特徴
市場データ
- 市場の取得: フィルタリングとペジネーションで予測市場を回収 -イベントの取得:複数の関連市場を含むアクセスイベントデータ
- 市場価格:技術的分析によるリアルタイムおよび歴史的価格データ
- オーダーブック:市場深度分析によるライブ入札/平均データ
##取引と活動
- 取引履歴:統計と包括的な取引データ
- ユーザー位置: P&L計算によるポートフォリオ追跡 -ユーザーアクティビティ:取引、分割、マージ、報酬を含むオンチェーンアクティビティ
- 市場のホールダー: 所有権分布と集中分析
高度な分析
- 流動性分析および市場の深さ
- 価格トレンド分析とボラティリティメトリック
- ポートフォリオのパフォーマンストラッキング
- 市場の集中および配分の洞察
インストール
前提条件
- Node.js 18 +
- TypeScript 5.3 以降
- npmかヤーン
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Polymarket MCP Server
A comprehensive Model Context Protocol (MCP) server for interacting with Polymarket, the world’s largest prediction market platform. This server provides seamless access to Polymarket’s APIs, enabling AI assistants to retrieve market data, user positions, trading history, and more.
🚀 Features
Market Data
- Get Markets: Retrieve prediction markets with filtering and pagination
- Get Events: Access event data containing multiple related markets
- Market Prices: Real-time and historical price data with technical analysis
- Order Book: Live bid/ask data with market depth analysis
Trading & Activity
- Trade History: Comprehensive trading data with statistics
- User Positions: Portfolio tracking with P&L calculations
- User Activity: On-chain activity including trades, splits, merges, and rewards
- Market Holders: Ownership distribution and concentration analysis
Advanced Analytics
- Liquidity analysis and market depth
- Price trend analysis and volatility metrics
- Portfolio performance tracking
- Market concentration and distribution insights
📦 Installation
Prerequisites
- Node.js 18+
- TypeScript 5.3+
- npm or yarn
Setup
-
Clone the repository
git clone cd polymarket-mcp -
Install dependencies
npm install -
Build the project
npm run build -
Start the server
npm start
🔧 Configuration
Claude Desktop Integration
Method 1: Stdio Mode (Recommended for Development)
Add to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"polymarket-mcp": {
"command": "node",
"args": ["path/to/polymarket-mcp/build/index.js"]
}
}
}
Method 2: SSE Mode (Recommended for Production)
-
Install Supergateway
npm install -g supergateway -
Start SSE server
npm run sse -
Configure Claude Desktop
{ "mcpServers": { "polymarket-mcp": { "type": "sse", "url": "http://localhost:3100/sse", "timeout": 600 } } }
🛠️ Available Tools
1. Get Markets
get_markets({
limit?: number, // Max results (default: 20, max: 100)
offset?: number, // Pagination offset
active?: boolean, // Filter by active status
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"polymarket-mcp": {
"command": "node",
"args": ["path/to/polymarket-mcp/build/index.js"]
}
}
}