
kukapay/polymarket-predictions-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
An MCP server that delivers real-time market odds from Polymarket.
概要
An MCP server that delivers real-time market odds from Polymarket, enabling AI agents and analysts to access, compare, and act on decentralized prediction data. - : Fetch Polymarket events with details (title, description, endDate, volume) and associated markets in a tabulated format. - : Retrieve markets with key fields (question, zipped outcomes and outcomePrices, endDate, volume, closed) in a table. - : Search for events using Polymarket's /public-search endpoint with comprehensive query parameters. - : Includes a prompt template for analyzing specific markets. - : Uses tabulate for clean, readable table outputs and handles JSON parsing for outcomes and prices. - Python 3.10 or higher - uv (recommended) or pip for dependency management Install the server as a Claude Desktop application: Replace /path/to/polymarket-predictions-mcp with your actual installation path. The server exposes three tools and one prompt: 1.
README
以下は原文 README の抜粋です。原文を見る。
Polymarket Predictions MCP
An MCP server that delivers real-time market odds from Polymarket, enabling AI agents and analysts to access, compare, and act on decentralized prediction data.
Features
- Event Retrieval: Fetch Polymarket events with details (
title,description,endDate,volume) and associated markets in a tabulated format. - Market Retrieval: Retrieve markets with key fields (
question, zippedoutcomesandoutcomePrices,endDate,volume,closed) in a table. - Event Search: Search for events using Polymarket’s
/public-searchendpoint with comprehensive query parameters. - Prompt Support: Includes a prompt template for analyzing specific markets.
- Formatted Outputs: Uses
tabulatefor clean, readable table outputs and handles JSON parsing for outcomes and prices.
Installation
Prerequisites
- Python 3.10 or higher
- uv (recommended) or
pipfor dependency management
Setup
-
Clone the Repository:
git clone https://github.com/kukapay/polymarket-predictions-mcp.git cd polymarket-predictions-mcp -
Install Dependencies: Using
uv:uv syncOr using
pip:pip install mcp[cli] httpx tabulate -
Install to Claude Desktop:
Install the server as a Claude Desktop application:
uv run mcp install main.py --name "Polymarket Predictions"Configuration file as a reference:
{ "mcpServers": { "Polymarket Predictions": { "command": "uv", "args": [ "--directory", "/path/to/polymarket-predictions-mcp", "run", "main.py" ] } } }Replace
/path/to/polymarket-predictions-mcpwith your actual installation path.
Usage
The server exposes three tools and one prompt:
Tools
-
get_events: Fetches a list of Polymarket events with details and their associated markets.- Parameters:
limit: Number of events (default: 10)offset: Pagination offset (default: 0)order: Fields to order by (e.g.,volume,markets.volume)ascending: Sort order (default:False)id: List of event IDsslug: List of event slugstag_id: Tag ID filterclosed: Filter for closed events (default:False)
- Output: Formatted string with event details (
title,description,endDate,volume) and a table of markets (question,closed,volume,outcomes,outcomePrices).
Example:
-
Prompt
Show me the top 2 Polymarket events by volume, including only open events, with their market details.
-
Sample Output:
- Parameters:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"Polymarket Predictions": {
"command": "uv",
"args": [ "--directory", "/path/to/polymarket-predictions-mcp", "run", "main.py" ]
}
}
}