Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
作者提供的说明(英文原文)
Classify Polymarket wallets as human or bot, score their trading edge, read open positions.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
POLYMARKET_INTEL_API_KEY, X-API-Key标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"polymarket-intel": {
"command": "uvx",
"args": [
"polymarket-intel-mcp"
],
"env": {
"POLYMARKET_INTEL_API_KEY": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http polymarket-intel https://polymarket-intel-production.up.railway.app/mcp --header 'X-API-Key: your-value'claude mcp add polymarket-intel --env POLYMARKET_INTEL_API_KEY=your-value -- uvx polymarket-intel-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"polymarket-intel": {
"url": "https://polymarket-intel-production.up.railway.app/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"polymarket-intel": {
"command": "uvx",
"args": [
"polymarket-intel-mcp"
],
"env": {
"POLYMARKET_INTEL_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"polymarket-intel": {
"type": "http",
"url": "https://polymarket-intel-production.up.railway.app/mcp",
"headers": {
"X-API-Key": "your-value"
}
}
}
}粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"polymarket-intel": {
"type": "stdio",
"command": "uvx",
"args": [
"polymarket-intel-mcp"
],
"env": {
"POLYMARKET_INTEL_API_KEY": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
X-API-Key 机密 HTTP header这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 aemery13 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
尚未检查;我们会轮流检查各个端点
尚未检查;我们会轮流检查各个端点
尚未检查;我们会在检查端点时读取工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:POLYMARKET_INTEL_API_KEY, X-API-Key
两种方式都可以:安装在你的电脑上,或者连接云端版本。
GitHub 仓库最后更新于–,最新版本(1.0.1)于6个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
同一分类中有:Finance Toolkit, SolidInvoice, Korea Tax Calculator
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server and REST API that classifies Polymarket wallets as human or bot, scores their trading edge from 0–10, and streams their current open positions. Built for AI agents on copy-trading and signal-following stacks.
# Use it from any MCP client (Claude Desktop, Cursor, etc.)
pip install polymarket-intel-mcp polymarket-intel-mcp
curl https://polymarket-intel-production.up.railway.app/wallet/0xf1528f12e645462c344799b62b1b421a6a4c64aa
## How this fits with other Polymarket MCP servers
Latest: v1.2 (May 2026) — classifier improved to distinguish active human grinders from HFT bots. See release notes and v1.3 backlog issue for what's next.
A daily snapshot job runs at 08:00 UTC and re-scores the top 50 leaderboard wallets, building a historical dataset of classification stability over time.
There are several MCP servers covering Polymarket, each at a different layer:
| Server | What it does | When to use it |
|---|---|---|
| polymarket-intel (this) | Wallet intelligence — classify human vs bot, score trading edge, read open positions | Deciding *whose* signals to follow |
| graph-polymarket-mcp | Market data via The Graph subgraphs (20 tools, 8 subgraphs) | Reading raw on-chain market data |
| whitmorelabs/polymarket-mcp | Slippage, liquidity, arbitrage, price feeds | Pricing your own trades |
| joinQuantish/polymarket | Self-hosted trading agent | Running an autonomous bot |
These complement each other. A copy-trading agent would use polymarket-intel to filter wallets worth following, then graph-polymarket-mcp to read the markets those wallets are betting on, then whitmorelabs/polymarket-mcp to size its own entries.
score_polymarket_wallet(wallet_address) → returns classification ∈ {human, bot, insufficient_data} plus a confidence score and reason codes.edge_score from 0–10, gated on net realised PnL so distributed-but-losing wallets don't get false positives.get_open_positions(wallet_address) returns live positions sorted by size, refreshed every 30s./wallet/{address}/history returns the score time series from the daily snapshots.The Polymarket leaderboard is misleading. It includes unrealised PnL marked-to-current-price, so the names at the top are dominated by bots running structural arb plus a few wallets sitting on huge open positions that may never resolve in their favour. Agents that copy-trade naively from the leaderboard get burned.
This service runs every leaderboard wallet through behavioural fingerprinting (focus ratio, holding period, timing regularity, category concentration) plus PnL reconstruction from raw activity, and only surfaces traders that look like genuine humans with a real edge.
The dataset grows more valuable over time — every day the snapshot job runs, historical signals accumulate. Wallets that have been consistently above edge 7 for 90 days are a stronger signal than any single point-in-time score.
| Surface | Use case | Setup |
|---|---|---|
| MCP server | Agent that needs tool-style access | pip install polymarket-intel-mcp |
| REST API | Custom HTTP integration, dashboards | curl https://polymarket-intel-production.up.railway.app/... |
| Hosted MCP | Agent on any MCP-compatible client | Add https://polymarket-intel-production.up.railway.app/mcp to client config |
┌──────────────────────────────────────────────┐
│ core/ │ │ client.py — Polymarket data API client │ │ signals.py — pure signal calculators │ │ scorer.py — classifier + edge score │ │ models.py — Pydantic response schemas │ ├──────────────────────────────────────────────┤ │ db/ │ │ schema.sql — Postgres tables + indexes │ │ repository.py — Repository protocol + │ │ InMemoryRepository │ │ supabase_repo.py — Supabase impl │ │ converters.py — ScoreResult ↔ records │ ├──────────────────────────────────────────────┤ │ api/main.py — FastAPI HTTP server │ │ mcp_server/ — MCP server (stdio) │ │ scripts/ │ │ analyze_wallet.py — CLI │ │ snapshot_job.py — daily cron entry │ │ tests/ │ └──────────────────────────────────────────────┘
Core has no idea persistence exists. The API and snapshot job depend on the Repository protocol — Supabase in production, in-memory in tests and when env vars are unset. This is what makes the suite run without a database and what lets you swap Supabase for Neon, RDS, or anything else later by adding one file.
git clone <repo> && cd polymarket-intel
python -m venv .venv && source .venv/bin/activate pip install -r requirements-dev.txt pytest # 19 tests, all green
python scripts/analyze_wallet.py phonesculptor
python scripts/analyze_wallet.py 0xf1528f12e645462c344799b62b1b421a6a4c64aa --json
uvicorn api.main:app --reload --port 8000
open http://localhost:8000/docs
The API is split into a slow tier (cached aggressively, cheap, ideal for one-off discovery) and a fast tier (short cache, ideal for live copy-trading agents). The split exists because the underlying data has different freshness needs — a wallet's classification doesn't change minute-to-minute, but their open positions do.
| Tier | Method | Path | TTL | Notes |
|---|---|---|---|---|
| slow | GET | /wallet/{address} | 1h | Score blob — classification, edge_score, signals. No positions. Persisted to history (debounced). |
| fast | GET | /wallet/{address}/positions | 30s | Open positions only. No DB write per call. |
| — | GET | /wallet/{address}/history | DB | Score time series |
| — | GET | /wallet/{address}/positions/history | DB | Position changes over time |
| — | GET | /wallet/by-username/{username} | 1h | Convenience lookup |
| — | GET | /leaderboard?limit=50 | 30m | Raw Polymarket top traders |
| — | GET | /leaderboard/verified?min_edge=5 | 1h | Filtered to scored humans |
| — | GET | /leaderboard/historical?date=… | DB | Leaderboard at any past date |
| — | GET | /snapshots/latest | DB | When did the cron last run? |
Why 30s on positions and not faster? Polygon block time is ~2s and Polymarket's activity index lags a few seconds. Polling below 10s gets you no fresher data, just rate-limit errors. 30s is the sweet spot for cost/freshness/upstream-friendliness.
Why debounced DB writes? A trading agent may hit /wallet/{address} thousands of times an hour. Writing a row per call would bloat history with near-duplicate snapshots. The score endpoint persists at most once per wallet per hour. The daily snapshot job guarantees coverage of the top 50 regardless of API traffic.
python mcp_server/server.py
Then drop mcp_server/claude_desktop_config.example.json into your Claude Desktop config and edit the absolute path.
The server exposes four tools:
score_polymarket_wallet(wallet_address) — full scorescore_polymarket_user(username) — lookup by display nameget_polymarket_leaderboard(limit) — raw leaderboardget_open_positions(wallet_address) — fast snapshot of live bets| Signal | Threshold | Source |
|---|---|---|
| Focus ratio | > 12 | Hubble Research, validated empirically |
| Median hold time | < 60s | HFT / MEV pattern |
| Timing CV | < 0.3 (n≥100) | Scheduled trading |
Soft signals stack: crypto-market-maker pattern, > 200 trades/day, etc.
Hard gate: net realised PnL ≤ 0 → capped at 2.0
Hard gate: < 10 winning markets → capped at 3.0
35% PnL magnitude (log-scaled) 25% win rate (capped at 70%) 15% PnL distribution (penalises top-1 concentration) 15% sample size (winning markets, capped at 50) 10% win/loss ratio (capped at 3x)
Net PnL is the hard gate so wallets like neutralwave23 — many distributed tiny wins masking $375k of losses — are correctly flagged as poor.
money_in = sum(BUY usdcSize per conditionId)
money_out = sum(SELL usdcSize) + sum(REDEEM usdcSize) pnl = money_out - money_in
status: REDEEM exists → won SELL exists, no REDEEM → exited no SELL, no REDEEM, last trade > 7 days old → lost no SELL, no REDEEM, last trade within 7 days → open
Why activity rather than the positions endpoint: positions vanish from the API after redeem, so any naive analysis using /positions undercounts wins. Always reconstruct from /activity?type=TRADE + /activity?type=REDEEM (separate calls — comma-joined types return 400).
The historical dataset is the moat. Every day the snapshot job pulls the leaderboard, scores the top N wallets, and persists three things: the score itself (wallet_scores), the wallet's open positions at that moment (open_position_snapshots), and the leaderboard as it stood (leaderboard_snapshots). After 90 days you can answer questions no one else can: "who has been consistently above edge 7 for the last quarter?", "which wallets just entered the top 50?", "show me everyone who held YES on this market three days before resolution."
# 1. Create a Supabase project, get the URL and service_role key
cp .env.example .env # fill in SUPABASE_URL and SUPABASE_KEY
python scripts/snapshot_job.py --top 10
If SUPABASE_URL and SUPABASE_KEY are unset, both the API and the snapshot job fall back to an in-memory repository — the suite still passes, the API still serves live scoring, but history endpoints will be empty until you wire up Supabase.
Schedule python scripts/snapshot_job.py --top 50 daily (Railway cron, GitHub Actions, or Supabase pg_cron triggering an edge function — your call). The job is idempotent: running twice creates two snapshots, which is fine — history queries pick the closest one.
python scripts/snapshot_job.py --top 50 # production
python scripts/snapshot_job.py --top 5 --dry-run # local testing, no writes
Each run records an audit row in snapshot_runs with start/finish times, wallets scored, and error count.
只显示了开头部分;其余内容请在仓库中阅读