Polyrank

v0.5.1
io.github.polyrank/polyrank-mcp Checked 19 hours ago Published 17 days ago

Polymarket trader analytics for AI agents: rank wallets, read trader metrics, backtest strategies.

MCP server that gives AI agents (Claude, etc.) direct access to Polyrank — the skill-analytics layer for Polymarket. It ranks millions of Polymarket wallets by genuine forecasting skill (calibration / Brier, alpha-vs-mid, risk-adjusted return) — not vanity P&L or win rate. _Follow the skilled, not the lucky._ (Live coverage + the exact skill-metric count: polyrank_get_platform_stats.) The public tools wrap Polyrank's free API — no key.

Summary extracted from the README.

@polyrank/mcp

MCP Badge

MCP server that gives AI agents (Claude, etc.) direct access to Polyrank — the skill-analytics layer for Polymarket. It ranks millions of Polymarket wallets by genuine forecasting skill (calibration / Brier, alpha-vs-mid, risk-adjusted return) — not vanity P&L or win rate. Follow the skilled, not the lucky. (Live coverage + the exact skill-metric count: polyrank_get_platform_stats.)

The public tools wrap Polyrank's free API — no key. With a signed-in Polyrank account (OAuth on the hosted server, or POLYRANK_API_KEY from polyrank.app/api-keys), the other 19 tools call the authenticated API. A free account gets polyrank_resolve_tid and the AI Lab's read tools; the Ranking Builder and per-window metrics need Pro Trader or higher, and the AI Lab's actions need a plan with the AI Lab (every paid plan, from Pro Trader). With those, the tools call the same POST /v1/rankings/custom the Ranking Builder runs — any of the 84 metrics at any window it exists at, every filter, as_of boards — plus per-window trader metrics and backtests / paper trading. Agents that pay per call instead of holding a key use the x402 agent API — see https://polyrank.app/llms.txt.

Every tool carries a title and the MCP annotations readOnlyHint, destructiveHint, idempotentHint and openWorldHint: 29 tools are read-only; the 7 AI Lab writes (polyrank_create_strategy, polyrank_run_backtest, polyrank_start_paper, polyrank_update_strategy, polyrank_lab_ask, polyrank_lab_reply, polyrank_lab_stop) each create or change a record in your own Polyrank account and are marked destructiveHint: false (none deletes anything, none touches funds; the chat tools spend your plan's AI credits). Read-only tools are listed first.

Free tools (read-only, no key) — 17

Tool What it does
polyrank_get_leaderboard Top traders ranked by composite skill
polyrank_get_trader_skill A wallet's P&L / win-rate / volume / percentiles
polyrank_get_trader_calibration A wallet's 10-bin reliability diagram
polyrank_get_market_consensus Skill-weighted holder consensus vs market mid + top holders
polyrank_get_pulse Live activity: big wins, sharp moves, trending, divergence
polyrank_get_platform_stats Live coverage + skill-metric count (wallets/trades/markets)
polyrank_get_top_roi_trades Biggest return-on-cost resolved trades (filter by category)
polyrank_get_movers Traders climbing / falling fastest in skill rank
polyrank_get_smart_money_reports Weekly Skill Report archive
polyrank_get_smart_money_report One weekly Skill Report in full
polyrank_get_trader_by_tid Follow a masked trader by its tid
polyrank_get_trader_calibration_by_tid A masked trader's 10-bin reliability diagram by tid
polyrank_get_custom_ranking A published Builder ranking: masked top-25 + weight/filter def
polyrank_get_traders_batch Masked teasers for up to 10 tids in one call
polyrank_get_metrics_catalog The 84 rankable metrics: id, meaning, direction, windows
polyrank_get_metric_windows Which metric exists at which window; what as_of can answer
polyrank_list_ranking_templates The Builder's goals ("Copy entries", …) as ready requests + presets

Ranking + trader tools (a signed-in account; the Builder and the metrics need Pro Trader or higher) — 3

Tool What it does
polyrank_resolve_tid Resolve a masked tid → wallet
polyrank_rank_wallets The Ranking Builder: weights × windows × filters, as_of, explain, any sort
polyrank_get_trader_metrics One trader's every metric at a window: value + percentile (address or tid)

AI Lab tools (a signed-in account; the reads answer any plan, the actions need a plan with the AI Lab; results are SIMULATED) — 16

Tool What it does
polyrank_list_lab_templates Strategy templates (editable specs) with their as-of evidence
polyrank_create_strategy Save a strategy (spec or template)
polyrank_run_backtest Queue a backtest of a strategy or spec over a date range
polyrank_get_backtest A backtest's status and report
polyrank_start_paper Start paper trading a strategy against real order books (no money)
polyrank_get_paper_run A paper run's stats and its copies
polyrank_list_strategies Your strategies, filtered by state (draft, tested, paper…)
polyrank_get_strategy One strategy with its full spec
polyrank_list_backtests Your recent backtests, all or one strategy's
polyrank_get_lab_limits Your plan's AI Lab limits and what is used, incl. chats at once
polyrank_lab_list_chats Your AI Lab assistant chats
polyrank_lab_get_chat One chat: answers, result cards, queue position
polyrank_update_strategy Rename a strategy or replace its spec
polyrank_lab_ask Ask the AI Lab assistant in a new chat (spends AI credits)
polyrank_lab_reply Reply in a chat (spends AI credits)
polyrank_lab_stop Stop an answer

The AI Lab tools act as your own Polyrank account: a plan with the AI Lab (Pro Trader and up; a strategy that copies no wallet needs Lab Pro and up), each backtest counting against the plan's backtests a day, with queue_position and eta_s on a queued run. Plans and limits: https://docs.polyrank.app/lab.

The AI Lab assistant (polyrank_lab_ask, polyrank_lab_reply): the same assistant as polyrank.app/lab, acting in your account (research only; it never places orders). Each question spends your plan's AI credits (25 needed to start, a typical one about 13; deep: true about twice) and your plan answers a number of chats at once (Pro Trader 2, Lab Pro 3, Quant 4, Quant Max 6, Desk 6, Enterprise 8; one more answers 429 lab_agent_busy). The tool waits up to wait_seconds (default 45, at most 55) for the answer, then returns what is there; poll polyrank_lab_get_chat while next says it is still answering. A backtest the assistant starts that takes longer than a few seconds runs on: awaiting_backtests counts them, and each result is posted to the chat when it finishes. Every answer, and every AI Lab result with simulated figures (polyrank_run_backtest, polyrank_get_backtest, polyrank_get_paper_run, polyrank_list_strategies, polyrank_list_backtests), comes with the CFTC Rule 4.41 statement (simulated_results_notice).

Reproduce a Builder board (e.g. "Copy entries", top 20): call polyrank_list_ranking_templates, then polyrank_rank_wallets with that goal's request.

Prompts — 6

Ready-made requests you pick from your client's prompt menu (Claude's "+" menu, / in Claude Code and VS Code). Every argument is optional: leave it empty and the prompt uses today's example, or paste a link. The answer comes as two plain sentences, a short table of the figures that matter, what the record cannot tell, and two next steps.

Prompt You ask Arguments (all optional) Where
polyrank_start_here New here? Today's top traders and one active market none free, /mcp and /mcp/public
polyrank_vet_trader Is this trader skilled or lucky? trader: a wallet, a Polyrank or Polymarket profile link free, /mcp and /mcp/public
polyrank_market_read Who is on which side of this market? market: a Polymarket or Polyrank market link, or a slug free, /mcp and /mcp/public
polyrank_explain_metric What does this number mean? metric: a figure's name free, /mcp and /mcp/public
polyrank_skilled_in_category Who has the strongest record in Sports, Politics …? category, window /mcp, Pro Trader and higher
polyrank_test_copy_strategy What would copying this trader have returned? traders, stake, period /mcp, any plan with the AI Lab

The two /mcp prompts fall back to the free equivalent when you are not signed in or your plan lacks the tool (the all-category skill board; the trader's free record) and say what the plan adds. The AI Lab prompt asks one question before it creates a strategy and runs a backtest, and its results are simulated.

Resources — 3

Read-only context your client can attach. All free, on both endpoints.

Resource What it is
polyrank://metrics/catalog The 84-metric catalog (JSON): id, name, what each measures, direction, windows, minimum sample
polyrank://metrics/{metric_id} One metric's catalog entry (template), e.g. polyrank://metrics/brier
polyrank://method/overview How Polyrank tells skill from luck (Markdown, the metrics guide from docs.polyrank.app)

Plans: https://polyrank.app/pricing.

Install

Claude Code

claude mcp add polyrank -- npx -y @polyrank/mcp

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "polyrank": { "command": "npx", "args": ["-y", "@polyrank/mcp"] }
  }
}

Cursor — add to .cursor/mcp.json (same block as above), or use the one-click deep link:

Add to Cursor

VS Code

code --add-mcp '{"name":"polyrank","command":"npx","args":["-y","@polyrank/mcp"]}'

Config: POLYRANK_API_BASE (default https://api.polyrank.app), POLYRANK_AGENT_BASE (default https://api-agent.polyrank.app; only its free manifests are read), and optional POLYRANK_API_KEY, your account's key: with it the 19 tools that need an account work, within what your plan includes (each tool's description says which plan). With a key:

claude mcp add polyrank -e POLYRANK_API_KEY=pk_live_… -- npx -y @polyrank/mcp

Hosted (Streamable HTTP)

Polyrank hosts this server at https://mcp.polyrank.app (Streamable HTTP), so nothing needs installing:

Endpoint Tools
POST https://mcp.polyrank.app/mcp all 36: the 17 free tools without sign-in; the other 19 after sign-in (OAuth 2.1: your MCP client opens Polyrank's sign-in and consent) or with Authorization: Bearer pk_live_… (your own key); each tool's description says which plan it needs
POST https://mcp.polyrank.app/mcp/public the 17 free read-only tools only; any Authorization header is ignored
GET https://mcp.polyrank.app/healthz status and version

In Claude (Settings → Connectors → Add custom connector), ChatGPT or Cursor, add https://mcp.polyrank.app/mcp. In Claude's dialog choose Sign in now to connect your account up front (otherwise the free tools work and the app asks you to sign in at the first tool that needs your account): you sign in to Polyrank and approve what the app may do (read data; your AI Lab, optional). Disconnect it any time in Polyrank → Account → Connected apps. With a key instead:

claude mcp add --transport http polyrank https://mcp.polyrank.app/mcp --header "Authorization: Bearer pk_live_…"
claude mcp add --transport http polyrank-free https://mcp.polyrank.app/mcp/public

It is for MCP clients and agent backends, not for pages in a browser: a request that carries a browser Origin header is refused (403). Limits: 100 requests a minute per address without sign-in or a key, 600 a minute with one, and your plan's API limits behind them. The AI Lab's actions (strategies, backtests, paper runs, the assistant) need a plan with the AI Lab, its read tools answer any signed-in account, and its results are simulated.

The package also runs this server itself (MCP_HTTP_ENABLED=1); with no flag it is the stdio server above.

Run it yourself: MCP_HTTP_ENABLED=1 MCP_HTTP_PORT=3005 npx -y @polyrank/mcp, then curl -s localhost:3005/healthz. Options (env): MCP_HTTP_HOST (default 127.0.0.1), MCP_HTTP_PORT (3005), MCP_HTTP_ALLOWED_HOSTS (Host header allow-list, default mcp.polyrank.app,localhost,127.0.0.1,[::1]), MCP_HTTP_ALLOWED_ORIGINS (browser Origin allow-list, default none), MCP_HTTP_ANON_PER_MIN (100), MCP_HTTP_KEY_PER_MIN (600), MCP_HTTP_VERIFY_KEYS (1), MCP_HTTP_MAX_BODY_BYTES (1048576), MCP_FORWARD_CLIENT_IP (0). In HTTP mode POLYRANK_API_KEY is ignored: every caller sends their own key. Details: src/http.ts.

Not affiliated with Polymarket · not investment advice · not custodial.