Unofficial, not affiliated with Papertrade. High leverage can lose your whole margin.
Papertrade Explorer docs App GitHub

#Reference

The explorer has no CLI and no SDK of its own. Its public surface is a set of HTTP endpoints on https://papertrade-explorer.pages.dev.

#Endpoints

Method and pathPurpose
POST /mcpMCP server (Streamable HTTP, stateless). See MCP server.
GET /mcpJSON description of the server with doc links.
POST /api/tools/{name}REST mirror of every MCP tool. Body is the tool arguments as a JSON object.
GET /openapi.jsonOpenAPI 3.1 description of the above.
GET /llms.txt, /llms-full.txtPlain-text site summary and the full docs in one file.
GET /.well-known/mcp/server-card.jsonMCP server card.
GET /.well-known/agent-card.jsonA2A agent card.
GET /.well-known/api-catalogRFC 9727 API catalog.
GET /w/{address}Wallet link with a rich preview, redirects to the wallet page.

#REST tool mirror

POST /api/tools/{name} runs one tool and returns its structured result. It is the same code path as MCP tools/call.

curl -s https://papertrade-explorer.pages.dev/api/tools/get_leaderboard \
  -H 'content-type: application/json' \
  -d '{"window":"24h","page":0}'
StatusMeaning
200The tool ran. The body is the structured result.
400Body is not valid JSON.
404Unknown tool name.
405Method other than POST or OPTIONS.
413Body larger than 64 KiB.
422The tool reported an error (bad arguments, not found upstream). The body has the message.
429Rate limit hit. Retry-After says when to retry.

#Tools

The nine tools, with their schemas, are listed in MCP server. Every tool is read-only.

#Upstream sources

SourceUsed for
https://exchange.papertrade.xyzWallet state, leaderboard, trade history, protocol summary, price history, recent trades
https://rpc.hyperliquid.xyz/evm, fallback https://rpc.hypurrscan.ioTransactions, receipts and BatchExecutor logs

Set PAPERTRADE_API_URL to point the explorer at another API host.

#npm scripts

ScriptWhat it does
npm run dev:siteBuild and serve the site and functions locally with Wrangler on port 8792.
npm run build:siteBundle the app, generate discovery files and render the docs.
npm run typecheckType-check the app and the functions.
npm testRun the unit tests against recorded real fixtures.

View as markdown Docs for v0.2.0