Papertrade AI

Papertrade AI

papertrade-ai•bynirholas

Open-source Model Context Protocol server for Papertrade BTC and ETH perpetual markets, offering live market data, wallet analytics, liquidation maps and guarded trading through non-custodial session keys.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides public tools for live BTC and ETH perpetual market data, including Hyperliquid mark/bid/ask prices, 24h change, volume, open interest and max leverage.
  • •Offers market analytics tools such as a liquidation map showing notional and position counts of longs and shorts by price bucket, plus leaderboards and top trades.
  • •Exposes account and wallet analytics including open positions with estimated PnL, bust price and distance to liquidation, trade history and portfolio equity curves.
  • •Supports guarded trading: a two-step preview-then-confirm flow for opening positions, plus closing positions and cancelling queued intents, signed by a delegated session key that cannot withdraw.

BEST FOR

  • •Analyzing Papertrade BTC and ETH perp markets, including liquidation clusters, leaderboards and protocol stats, from an AI client.
  • •Reviewing a wallet's Papertrade performance, such as win rate, biggest trade and equity curve.
  • •Previewing leveraged position parameters like liquidation price, then confirming an actual trade with server-enforced guardrails.

ABOUT PAPERTRADE-AI

Papertrade AI is cataloged as an MCP server attributed to nirholas. Open-source Model Context Protocol server for Papertrade BTC and ETH perpetual markets, offering live market data, wallet analytics, liquidation maps and guarded trading through non-custodial session keys. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Papertrade AI are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can the session key withdraw funds?

No. The wallet signs an EIP-712 RegisterSessionKey message, and the session key is scoped by the exchange contract to open, close and cancel; it cannot withdraw or transfer.

Are trading limits enforced by the server?

Yes. Margin per trade, leverage, rolling 24h position size, open positions and markets are checked on the server before any intent is signed.

Do trades require confirmation before opening?

Yes. Opening a position needs a signed quote from preview_trade for the identical trade, valid for 3 minutes.

Upstream README

View this exact version on GitHub

README.md · 642b4dda7359 · Fetched 2026-11-13 14:10:46 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Papertrade AI: trade perps from any AI. Claude, ChatGPT, Codex, Cursor, Gemini, VS Code.

Papertrade AI

Trade Papertrade BTC and ETH perps from Claude, ChatGPT, Codex, Cursor, Gemini CLI, VS Code and any MCP client.

Open-source Model Context Protocol server with live markets, wallet analytics, liquidation maps, and guarded trading through non-custodial session keys.

npm MCP Registry License: MIT Docs

Add to Cursor Install in VS Code

Website · Docs · Tools · Security · REST API

https://papertrade-ai.ninabrekkerese.workers.dev/mcp

One URL, OAuth 2.1, no API keys. Your wallet signs once to register a session key that can trade but cannot withdraw, and the server enforces the limits you choose: margin per trade, leverage, daily size, open positions and markets. Every trade is previewed and needs your confirmation.

What you can ask

  • "What are BTC and ETH doing on Papertrade right now?"
  • "Show me the Papertrade liquidation map for ETH."
  • "Who are the top 10 Papertrade traders this week? What are they holding?"
  • "Analyze wallet 0x...: win rate, biggest trade, equity curve."
  • "If I long BTC with $20 at 500x, where is my liquidation price?"
  • "Preview a $15 ETH short at 800x, then open it if I confirm."
  • "Close all my BTC positions."

On clients with MCP Apps support (Claude, ChatGPT, VS Code, Goose) results render as an interactive trading card with a live chart.

Install

ClientInstall
Claude (web, desktop, mobile)Settings, Connectors, Add custom connector, paste https://papertrade-ai.ninabrekkerese.workers.dev/mcp. Guide
Claude Code/plugin marketplace add nirholas/papertrade-ai then /plugin install papertrade-ai@papertrade-ai, or claude mcp add --transport http papertrade https://papertrade-ai.ninabrekkerese.workers.dev/mcp Guide
ChatGPTSettings, Apps, Advanced settings, Developer mode, Create app, paste the URL, OAuth. Guide
OpenAI Codexcodex mcp add papertrade --url https://papertrade-ai.ninabrekkerese.workers.dev/mcp then codex mcp login papertrade Guide
CursorOne-click install Guide
VS Code (Copilot)One-click install or code --add-mcp '{"name":"papertrade","type":"http","url":"https://papertrade-ai.ninabrekkerese.workers.dev/mcp"}' Guide
Gemini CLIgemini extensions install https://github.com/nirholas/papertrade-ai Guide
Claude Desktop (local)Download papertrade-ai.mcpb from Releases and open it.
Windsurf, Zed, Cline, Goose, LibreChat, othersStreamable HTTP URL above, or stdio npx -y papertrade-ai. Guide

Local (stdio)

{
  "mcpServers": {
    "papertrade": { "command": "npx", "args": ["-y", "papertrade-ai"] }
  }
}

Run npx -y papertrade-ai login once to connect a wallet in your browser. Credentials stay in ~/.config/papertrade-ai (mode 0600). CLI guide

Tools

ToolAccessWhat it does
get_marketspublicLive Papertrade perp markets (BTC, ETH): Hyperliquid mark/bid/ask, 24h change, Papertrade 24h volume, open interest vs caps, max leverage, minimum trade size and whether each market is open.
get_price_chartpublicOHLCV candles for BTC or ETH from Hyperliquid (the price source Papertrade settles against), with range stats and a TradingView link.
get_protocol_statspublicPapertrade protocol analytics: TVL, margin, LP, lifetime volume, open positions, fees, PAPER supply and staking, plus daily history (volume, trader PnL, liquidations, users).
get_liquidation_mappublicWhere open Papertrade positions get liquidated: notional and position count of longs and shorts by price bucket around the current price, with the largest clusters.
get_leaderboardpublicPapertrade trader leaderboard for a time window, sortable by PnL, volume, balance and more.
get_top_tradespublicThe most profitable individual Papertrade positions in a window: who, market, side, leverage, entry, exit and PnL.
get_recent_tradespublicThe latest opens, closes and liquidations across all of Papertrade, optionally filtered by market or wallet.
get_accountpublicA Papertrade account: free balance, locked margin, equity, every open position with live estimated PnL, bust price and distance to liquidation, pending intents, session keys and lifetime stats.
get_trade_historypublicClosed and liquidated positions for a wallet, newest first, with entry, exit, settled PnL, fees and PAPER minted.
get_portfolio_historypublicEquity curve for a wallet over 1h, 1d, 1w or all time.
calculate_positionpublicPure math for a hypothetical position: bust price, liquidation distance and settled PnL at a target exit, using the exchange formula (win curve, deadband, 2% win fee).
get_deposit_infopublicHow to fund a Papertrade account: the wallet's personal deposit proxy address (USDC on HyperCore spot), minimums, the activation fee, and the wallet's current HyperEVM USDC/HYPE balances.
get_trading_permissionspublicWhat this connection may do: connected wallet, whether a trading session is active and when it expires, the guardrails the owner set, and how much of the daily limit is used.
preview_tradetradingStep 1 of 2 for opening a position.
open_positiontradingStep 2 of 2: opens a real Papertrade position with the user's funds, signed by the delegated session key.
close_positionstradingCloses open positions at the market, signed by the session key.
cancel_intenttradingCancels a submitted intent that is still queued (not yet executed).
get_intent_statuspublicWhether a submitted intent is still queued, has produced an open position, or is no longer pending.

Full inputs and annotations: Tool reference. Public tools also work over plain HTTPS:

curl https://papertrade-ai.ninabrekkerese.workers.dev/api/v1/tools/get_markets
curl "https://papertrade-ai.ninabrekkerese.workers.dev/api/v1/tools/get_liquidation_map?market=ETH"

OpenAPI 3.1 at /openapi.json, ready for GPT Actions and agent frameworks. Unauthenticated MCP for read-only agents: https://papertrade-ai.ninabrekkerese.workers.dev/public/mcp.

Security

  • Non-custodial. Your wallet signs one EIP-712 RegisterSessionKey message, the same one the official Papertrade app signs for one-click trading. The session key is scoped by the exchange contract to open, close and cancel. It cannot withdraw or transfer.
  • Guardrails in code, not in the prompt. Margin per trade, leverage, rolling 24h position size, open positions and markets are checked on the server before any intent is signed.
  • Preview, then confirm. open_position needs a signed quote from preview_trade for the identical trade, valid for 3 minutes.
  • Encrypted per app. Each app's session key is encrypted with a key derived from that app's own access token.
  • Revoke in one click at /account.

Read the full security model. Report vulnerabilities privately: SECURITY.md.

Develop and self-host

git clone https://github.com/nirholas/papertrade-ai && cd papertrade-ai
npm install
npm test           # unit tests
npm run dev        # local Worker on http://127.0.0.1:8787

Deploy your own copy to Cloudflare Workers with one KV namespace and one secret: Self-hosting. The package also exports the tool registry, policy engine and intent signing for use in your own agent: import { TOOLS, runTool } from 'papertrade-ai'.

PathWhat
src/tools/registry.tsEvery tool: schema, annotations, implementation
src/core/Papertrade API client, EIP-712 intents, bust price math
src/worker/Cloudflare Worker: OAuth provider, MCP, REST, pages
src/cli.tsstdio server and login CLI
src/web/MCP Apps widget, connect and account pages
docs/Documentation (rendered to the website)
scripts/build-site.mjsWebsite, llms.txt, sitemap, discovery files, manifests

Risk

Papertrade positions use real USDC. At 1000x leverage a 0.1% move against you liquidates the position and the full margin is lost. Papertrade AI is independent open-source software, not affiliated with Papertrade, and not financial advice.

License

MIT

Support the project

If papertrade-ai saves you time, star it on GitHub. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.

Know someone who would use it? Post on X · Share on Bluesky · Share on LinkedIn · Submit to Hacker News · Share on Reddit

Built for AI agents too

Coding agents and LLM tooling can read this repo directly: AGENTS.md, llms.txt, llms-full.txt. Point an agent at https://github.com/nirholas/papertrade-ai and it has the context it needs.

More from the same author

Contributors

Contributors

Star history

Star History Chart


Built by nirholas · @nichxbt · github.com/nirholas

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Papertrade AI from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/papertrade-ai)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics