Classify Polymarket wallets as human or bot, score their trading edge, read open positions.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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.
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 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.
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.
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.
Net PnL is the hard gate so wallets like neutralwave23 β many distributed tiny wins masking $375k of losses β are correctly flagged as poor.
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."
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.
Each run records an audit row in snapshot_runs with start/finish times, wallets scored, and error count.
| Table | Purpose |
|---|---|
wallets | One row per wallet ever seen |
wallet_scores | Append-only score time series |
open_position_snapshots | What each wallet held at each tick |
leaderboard_snapshots | Full leaderboard, preserved daily |
snapshot_runs | Audit trail for the cron job |
Two views (latest_wallet_scores, latest_leaderboard) make the common "what's current" queries cheap.
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.
The endpoint split was designed so each tier maps cleanly to a billing model. Suggested ranges:
| Tier | Endpoints | Suggested price | Why |
|---|---|---|---|
| Discovery | /wallet/{address}, /leaderboard/* | $0.001β$0.01 / call | Slow cache, mostly DB reads |
| Monitoring | /wallet/{address}/positions | $0.01β$0.05 / call | Fresh data, hits Polymarket each time |
| Streaming (v2) | SSE feed of position changes | $20β$100 / month flat | Continuous fetch on our side |
| History | /wallet/{address}/history etc. | $0.005 / call | Pure DB read, value grows over time |
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.
Push the repo, point at it. railway.toml handles the rest.
Procfile is in place.
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:
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.
These are the personas the test fixtures target. Live numbers will differ as activity changes:
| Wallet | Score | Notes |
|---|---|---|
phonesculptor | ~9/10 | MLB-focused human, distributed wins, real edge |
gabigol | bot | Crypto 5-min Up/Down arb (edge largely dead post-Feb 2026) |
neutralwave23 | ~1/10 | Distributed tiny wins masking large net loss |
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/polymarket-wallet-intelligence)<a href="https://allmcps.com/mcp/polymarket-wallet-intelligence"><img src="https://allmcps.com/api/badge/polymarket-wallet-intelligence?style=directory" alt="Polymarket Wallet Intelligence on AllMCPs" /></a>