Typed read client
Every public endpoint with canonical queries, retries that honor Retry-After, and decoded bigint state.
TypeScript SDK and MCP server
A typed client for every public endpoint, the live wallet stream, EIP-712 signing and settlement math checked against mainnet. A hosted read-only MCP server lets Claude, ChatGPT, Codex, Gemini and Cursor quote a position exactly before anyone trades.
Unofficial. An independent community project, not affiliated with Papertrade. 1000x leverage can lose your whole margin in seconds. Not financial advice.
Loading live data
| Market | Mid | Max leverage | Open interest (long / short) | Status |
|---|---|---|---|---|
This runs estimateClose and liquidationPriceRaw from the SDK in your browser, using live instrument parameters and the current mid as entry.
Call the live MCP server at /mcp exactly as an AI client would. Every tool is read-only; the two builders return unsigned payloads only.
Loading tools from /mcp
Choose a tool and press Run.
Every public endpoint with canonical queries, retries that honor Retry-After, and decoded bigint state.
Server-sent events with revision-checked patches, backoff reconnects and automatic resync.
Every intent, session keys that can trade but never withdraw, and the exact intent ids the relayer computes.
Bust prices, impact haircuts, win fees, the PAPER mint curve and staking rewards, exact to the wei.
Seven tools at /mcp. Stateless Streamable HTTP, no login, no keys, no signing.
Markdown twins, llms-full.txt, OpenAPI 3.1, a server card and an A2A agent card.
One URL, no API key: https://papertrade-sdk.pages.dev/mcp
claude mcp add --transport http papertrade-sdk https://papertrade-sdk.pages.dev/mcpcodex mcp add papertrade-sdk --url https://papertrade-sdk.pages.dev/mcpgemini mcp add --transport http papertrade-sdk https://papertrade-sdk.pages.dev/mcp{
"mcpServers": {
"papertrade-sdk": { "url": "https://papertrade-sdk.pages.dev/mcp" }
}
}{
"servers": {
"papertrade-sdk": { "type": "http", "url": "https://papertrade-sdk.pages.dev/mcp" }
}
}{
"mcpServers": {
"papertrade-sdk": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://papertrade-sdk.pages.dev/mcp"]
}
}
}Setup for Claude API, ChatGPT, Windsurf, Zed, Cline, Goose, Continue and more
npm install papertrade-sdk viemimport { PapertradeClient, streamWallet } from 'papertrade-sdk';
const client = new PapertradeClient();
const { instruments } = await client.tradingState();
streamWallet({
wallet: '0x...',
onState: (state) => console.log(state.positions.length, 'open positions'),
});PaperStaking.pendingReward to the wei.Non-custodial trading terminal.
TVL, volume, open interest, PAPER economics.
Wallets, positions, intents, leaderboard.
Liquidation map and closest-to-bust feed.
PAPER staking.
Telegram, Discord and webhook alerts.
Copy-trading with guardrails.
Pay-per-call intelligence API.
All of the above as windows in one desktop.