预测市场数据工具

Polymarket-MCP是一个提供实时市场数据、价格及搜索功能的预测市场服务器和命令行工具,支持Claude桌面集成和多种输出格式。

  • by ozgureyilmaz
  • Rust
  • 本地部署
  • 48 星标
  • 更新于
在 GitHub 查看 0x79de/polymarket-mcp

使用说明

多市场mcp

🎲 预测市场触手可及

mcp服务器和用于polymarket的cli。通过claude桌面或终端获取实时市场数据、价格和搜索。

特征

实时数据:活跃市场、按交易量趋势、当前价格。

搜索:在问题和描述中按关键字查找市场。

多界面:claude桌面集成+独立cli。

输出格式:json、漂亮打印或干净表格。

缓存:内置智能缓存,具有自动重试逻辑。

需求

锈1.70+(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh)

用于mcp集成的claude桌面(下载)

安装

cargo install --git https://github.com/ozgureyilmaz/polymarket-mcp

二进制安装到 ~/.cargo/bin/polymarket-mcp.

设置

配置claude桌面:

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macos):

{
  "mcpServers": {
    "polymarket": {
      "command": "polymarket-mcp"
    }
  }
}

重新启动claude桌面。

用法

命令行界面

# trending markets
polymarket-mcp --output table trending --limit 5

# active markets
polymarket-mcp --output table markets --limit 10

# search
polymarket-mcp --output table search "fed" --limit 5

# market details
polymarket-mcp market 601700

# prices
polymarket-mcp prices 601700

与克劳德

设置后,问克劳德:

  • “向我展示趋势预测市场”
  • “寻找有关特朗普的市场”
  • “美联储决策市场的当前价格是多少?”

发展

cargo test
cargo build --release

链接