
Polymarket Wallet Intelligence
io.github.aemery13由 GitHub 帳號 aemery13 發布v1.0.1更新於 Oct 24, 2026
Classify Polymarket wallets as human or bot, score their trading edge, read open positions.
概覽
一個 MCP 伺服器兼 REST API,可將 Polymarket 錢包判定為真人或機器人、給出交易優勢評分,並讀取目前持倉。
- 可以做什麼
- 依錢包地址或使用者名稱評分:回傳 human、bot 或 insufficient_data 分類,附信心分數與原因碼,以及 0–10 的優勢評分
- 讀取某錢包的即時未平倉部位,依規模排序,約每 30 秒更新
- 取得原始 Polymarket 排行榜,或篩選出達到最低優勢分的已評分真人錢包
- 從服務的每日快照資料中讀取評分與持倉的歷史序列
- 適用情境
- 適合在代理程式決定要跟隨哪些 Polymarket 訊號時使用,例如篩選跟單候選而不是直接相信排行榜,或判斷某位交易者是具備真實優勢的真人還是機器人。
- 執行需求
- 可使用託管的遠端端點,或在本地以 Python 執行 PyPI 套件 polymarket-intel-mcp。API 金鑰為選用,透過環境變數 POLYMARKET_INTEL_API_KEY 或請求標頭 X-API-Key 提供;匿名存取可用但受免費額度限制。需要連線至該服務及 Polymarket 資料的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Polymarket Wallet Intelligence,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.aemery13%2Fpolymarket-intel/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"polymarket-wallet-intelligence": {
"type": "http",
"url": "https://polymarket-intel-production.up.railway.app/mcp"
}
}
}README
Polymarket Wallet Intelligence
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.
How this fits with other Polymarket MCP servers
Status
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:
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.
What it answers
- "Is this trader a human or a bot?" —
score_polymarket_wallet(wallet_address)→ returnsclassification ∈ {human, bot, insufficient_data}plus a confidence score and reason codes. - "Do they actually have an edge?" —
edge_scorefrom 0–10, gated on net realised PnL so distributed-but-losing wallets don't get false positives. - "What are they betting on right now?" —
get_open_positions(wallet_address)returns live positions sorted by size, refreshed every 30s. - "How has their edge changed over time?" —
/wallet/{address}/historyreturns the score time series from the daily snapshots.
Why this exists
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.
Distributed as both a REST API and an MCP server
Architecture
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.
Quickstart
CLI
REST API
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.
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.
MCP server (Claude Desktop, Cursor, Continue)
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
Scoring methodology
Bot triggers (any one fires → bot)
Soft signals stack: crypto-market-maker pattern, > 200 trades/day, etc.
Edge score (0–10) for humans
Net PnL is the hard gate so wallets like neutralwave23 — many distributed tiny wins masking $375k of losses — are correctly flagged as poor.
PnL reconstruction
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).
Persistence (Supabase)
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."
Setup
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.
Daily snapshot job
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.
Each run records an audit row in snapshot_runs with start/finish times, wallets scored, and error count.
Schema overview
Two views (latest_wallet_scores, latest_leaderboard) make the common "what's current" queries cheap.
Repository pattern
db/repository.py defines a Repository protocol. Two implementations:
InMemoryRepository— thread-safe, lossy across restarts. Used in tests and as the dev-mode fallback.SupabaseRepository— production. Wraps the supabase-py client.
The API and snapshot job depend only on the protocol. To swap Supabase for Neon or self-hosted Postgres, write one new class implementing the same six method signatures.
Pricing dimensions
The endpoint split was designed so each tier maps cleanly to a billing model. Suggested ranges:
The streaming endpoint is the one serious copy-trading bots will actually pay for, but it requires a continuous-fetch worker on our side — leaving it for v2 once we have signal that the per-call business works.
Deploy
Railway
Push the repo, point at it. railway.toml handles the rest.
Render / Heroku-style
Procfile is in place.
Caching
api/cache.py is a thread-safe in-memory TTL cache with the same interface as a Redis client. For multi-worker production, swap the singleton for redis.Redis() in one file. TTLs:
- wallet score: 1h
- open positions only: 5m
- leaderboard: 30m
- verified leaderboard: 1h
Testing
Synthetic fixtures in tests/fixtures.py mimic the three real wallet patterns from the research phase (phonesculptor MLB human, gabigol HFT bot, neutralwave23 tilt loser) plus a low-data newbie. Tests run against fixtures only — no live API calls — so the suite is deterministic and CI-safe.
Distribution roadmap
- Now — REST API on Railway, Supabase for daily snapshot persistence
- Next — Publish to MCP Hub, Replit Agent Market, awesome-mcp-servers
- Later — x402 micropayments per call (USDC), historical query endpoints (the moat: every day we run, the dataset grows)
Verified wallet examples
These are the personas the test fixtures target. Live numbers will differ as activity changes:
來源:README.md,提交 877cc68
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。