
berlinbra/polymarket-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
berlinbra/polymarket-mcpは、https://github.com/berlinbra/polymarket-mcp.からインポートされたMCPサーバー候補です。
概要
berlinbra/polymarket-mcpは、https://github.com/berlinbra/polymarket-mcp.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
PolyMarket APIを通じて予測市場データへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。このサーバーは、予測市場から市場情報、価格、過去のデータを取得するための標準化されたインターフェースを実装しています。
特徴
- 現在の価格と確率を含むリアルタイム予測市場データ
- カテゴリ、解決日、説明を含む詳細な市場情報
- 過去の価格および出来高データ(1日、7日、30日、すべて)をカスタマイズ可能な時間枠
- 組み込みのエラー処理およびレート制限管理
- 使いやすいデータフォーマット
設置
Smithery経由インストール中
Smithery経由でClaude Desktop用のPolyMarket予測を自動的にインストールするには:
クロードデスクトップ
- MacOSでは:
~/Library/Application\ Support/Claude/claude_desktop_config.json - Windows版:
%APPDATA%/Claude/claude_desktop_config.json
開発/未公開サーバー構成
地元で走る
- リポジトリのクローンと依存関係のインストール:
ライブラリのインストール
走る
ClaudeクライアントをjsonファイルでMCPツールに接続し、パッケージをインストールすると、ClaudeはサーバーのMCPツールを認識するはずです:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
PolyMarket MCP Server
A Model Context Protocol (MCP) server that provides access to prediction market data through the PolyMarket API. This server implements a standardized interface for retrieving market information, prices, and historical data from prediction markets.
Features
- Real-time prediction market data with current prices and probabilities
- Detailed market information including categories, resolution dates, and descriptions
- Historical price and volume data with customizable timeframes (1d, 7d, 30d, all)
- Built-in error handling and rate limit management
- Clean data formatting for easy consumption
Installation
Installing via Smithery
To install PolyMarket Predictions for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install polymarket_mcp --client claude
Claude Desktop
- On MacOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json - On Windows:
%APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"polymarket-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/{INSERT_USER}/YOUR/PATH/TO/polymarket-mcp",
"run",
"polymarket-mcp" //or src/polymarket_mcp/server.py
],
"env": {
"KEY": "",
"FUNDER": ""
}
}
}
Running Locally
- Clone the repository and install dependencies:
Install Libraries
uv pip install -e .
Running
After connecting Claude client with the MCP tool via json file and installing the packages, Claude should see the server’s mcp tools:
You can run the sever yourself via: In polymarket-mcp repo:
uv run src/polymarket_mcp/server.py
*if you want to run the server inspector along with the server:
npx @modelcontextprotocol/inspector uv --directory C:\\Users\\{INSERT_USER}\\YOUR\\PATH\\TO\\polymarket-mcp run src/polymarket_mcp/server.py
- Create a
.envfile with your PolyMarket API key:
Key=your_api_key_here
Funder=poly market wallet address
After connecting Claude client with the MCP tool via json file, run the server:
In alpha-vantage-mcp repo: uv run src/polymarket_mcp/server.py
Available Tools
The server implements four tools:
get-market-info: Get detailed information about a specific prediction market
インストール
npx -y @smithery/cli install polymarket_mcp --client claude設定
"mcpServers": {
"polymarket-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/{INSERT_USER}/YOUR/PATH/TO/polymarket-mcp",
"run",
"polymarket-mcp" //or src/polymarket_mcp/server.py
],
"env": {
"KEY": "<insert poly market api key>",
"FUNDER": "<insert polymarket wallet address>"
}
}
}