BP

berlinbra/polymarket-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

144 stars 23 forks Качество 67 Тренд 16MIT

berlinbra/polymarket-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/berlinbra/polymarket-mcp.

Обзор

berlinbra/polymarket-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/berlinbra/polymarket-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), предоставляющий доступ к данным прогнозирования рынка через API PolyMarket. Этот сервер реализует стандартизированный интерфейс для получения рыночной информации, цен и исторических данных с рынков прогнозирования.

Особенности

  • Рыночные данные прогнозирования в реальном времени с текущими ценами и вероятностями
  • Подробная рыночная информация, включая категории, даты разрешения и описания
  • Исторические данные о ценах и объёмах с настраиваемыми временными рамками (1d, 7d, 30d, все)
  • Встроенная обработка ошибок и управление лимитами скорости
  • Чистое форматирование данных для удобства использования

Установка

Установка через Smithery

Чтобы автоматически установить прогнозы PolyMarket для Claude Desktop через Smithery:

Клод Десктоп

  • На MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • На окнах: %APPDATA%/Claude/claude_desktop_config.json

Конфигурация разработки/неопубликованных серверов

Бег локально

  1. Клонируйте репозиторий и установите зависимости:

Установка библиотек

Бег

После подключения клиента Claude к инструменту MCP через json-файл и установки пакетов, Claude должен увидеть инструменты сервера mcp:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

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

  1. 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
  1. Create a .env file 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
Открыть полный README на GitHub

Установка

npx -y @smithery/cli install polymarket_mcp --client claude
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

"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>" } } }