# Papertrade AI [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/nirholas/papertrade-ai  
**GitHub Stars:** 4  
**npm Downloads (last month):** 378  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/papertrade-ai

## Description
Trade Papertrade BTC and ETH perps from Claude, ChatGPT, Codex, Cursor and any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **get_markets** — Live 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. Call this before trading.
- **get_price_chart** — OHLCV candles for BTC or ETH from Hyperliquid (the price source Papertrade settles against), with range stats and a TradingView link.
- **get_protocol_stats** — Papertrade protocol analytics: TVL, margin, LP, lifetime volume, open positions, fees, PAPER supply and staking, plus daily history (volume, trader PnL, liquidations, users).
- **get_liquidation_map** — Where 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_leaderboard** — Papertrade trader leaderboard for a time window, sortable by PnL, volume, balance and more. Search by name or address with q.
- **get_top_trades** — The most profitable individual Papertrade positions in a window: who, market, side, leverage, entry, exit and PnL.
- **get_recent_trades** — The latest opens, closes and liquidations across all of Papertrade, optionally filtered by market or wallet.
- **get_account** — A 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. Any wallet can be inspected.
- **get_trade_history** — Closed and liquidated positions for a wallet, newest first, with entry, exit, settled PnL, fees and PAPER minted.
- **get_portfolio_history** — Equity curve for a wallet over 1h, 1d, 1w or all time.
- **calculate_position** — Pure 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). Does not need a wallet.
- **get_deposit_info** — How 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. Read-only; it never moves funds.
- **get_trading_permissions** — What 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.
- **get_intent_status** — Whether a submitted intent is still queued, has produced an open position, or is no longer pending.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What Papertrade AI does

Papertrade AI exposes Papertrade BTC and ETH perpetual-market data and trading workflows through the Model Context Protocol. Its read-oriented tools cover current markets, Hyperliquid-backed price charts, protocol statistics, liquidation concentrations, trader rankings, notable trades, recent activity, wallet accounts, trade history, and portfolio performance.

The server also supports guarded trading. An agent can preview a proposed position, request confirmation, open a position, close positions at market, cancel a queued intent, and check whether an intent is still pending or has produced an open position. Position calculations can be performed without connecting a wallet, including liquidation distance and estimated settled profit or loss at a target exit.

## How it works

The hosted MCP endpoint is available at `https://papertrade-ai.ninabrekkerese.workers.dev/mcp` and uses OAuth 2.1 rather than API keys. A wallet signs once to register a delegated session key. That key can trade but cannot withdraw funds. Owner-selected guardrails cover margin per trade, leverage, daily trading size, the number of open positions, and permitted markets. Trading requests follow a preview-and-confirm flow.

Market pricing and candles come from Hyperliquid, which Papertrade uses as its settlement price source. Account inspection can target any wallet, while trading actions operate through the connected wallet and its active session. Public tools are also exposed through HTTPS endpoints, with an OpenAPI 3.1 description available for compatible agent frameworks and GPT Actions.

## Setup and configuration

Use the hosted MCP URL in a compatible client. Claude, ChatGPT, Codex, Cursor, VS Code, Gemini CLI, Claude Code, Windsurf, Zed, Cline, and other MCP clients are supported through client-specific setup methods. Cursor and VS Code provide installation links; Codex can add the server with its MCP command; Gemini CLI installs the repository extension.

For a local stdio setup, configure the client to run:

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

Run `npx -y papertrade-ai login` once to connect a wallet in a browser. Local credentials are stored under `~/.config/papertrade-ai` with restrictive file permissions. Claude Desktop can also use the downloadable `papertrade-ai.mcpb` package.

## Tools and capabilities

- Inspect BTC and ETH market status, spreads, volume, open interest, leverage limits, trade minimums, and market availability.
- Retrieve OHLCV charts, range statistics, and a TradingView link for either supported asset.
- Review protocol TVL, margin, liquidity-provider data, volume, positions, fees, PAPER supply, staking, and daily history.
- Analyze liquidation price buckets, trader leaderboards, profitable trades, and recent opens, closes, and liquidations.
- Inspect balances, margin, equity, positions, estimated PnL, bust prices, session keys, lifetime statistics, and wallet history.
- Preview and execute trades, close positions, cancel queued intents, and query intent status under configured limits.

## Limitations and notes

Trading is limited to Papertrade BTC and ETH perpetuals. The deposit-information tool explains a wallet’s personal USDC deposit proxy, funding minimums, activation fee, and current HyperEVM USDC and HYPE balances; it does not move funds. A trading session must be active for delegated trading, and the configured guardrails can restrict what an agent is allowed to submit. Read-only analysis and hypothetical position calculations do not require a wallet.

_Full upstream README: https://allmcps.com/mcp/papertrade-ai/readme_

