Paper MCP Server

Connect AI coding assistants to Paper's Trading API via the Model Context Protocol (MCP). Query quotes, place paper orders, inspect portfolios, and more—directly from your IDE or chat.

Install

Packagenpm i -g @paperinvest/mcp-server
NodeNode.js 16+ recommended

Quickstart

StepCommandExpected result
1export PAPER_API_KEY=your_api_keyAPI key available to the MCP server
2paper-mcp-serverMCP server starts and registers with your client
3In Cursor/Claude: paper.quote("AAPL")Returns NBBO quote for AAPL
4In Cursor/Claude: paper.order({ symbol: "AAPL", side: "buy", quantity: 10, type: "market" })Places a simulated market order

Configure

Provide your Paper API credentials via environment variables (or a .env file) so the MCP server can authenticate to the Paper API.

Environment
# Required
PAPER_API_KEY=your_api_key
# Optional overrides
PAPER_API_BASE_URL=https://api.paperinvest.io
Run (CLI)
paper-mcp-server

IDE Integrations

ClientConfig
Cursor (mcpServers)
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "paper": {
      "command": "paper-mcp-server",
      "env": {
        "PAPER_API_KEY": "your_api_key"
      }
    }
  }
}
Claude Desktop
# ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "paper": {
      "command": "paper-mcp-server",
      "env": {
        "PAPER_API_KEY": "your_api_key"
      }
    }
  }
}

Tools Reference

ToolDescription
paper.quote(symbol)Get real-time NBBO quote for a symbol.
paper.quotesBatch(symbols[])Get quotes for multiple symbols in one request.
paper.order({ ... })Place a simulated order (market/limit/stop, etc.).
paper.portfolio(id)Retrieve portfolio positions and P&L.

See the full list on GitHub: mcp-server#tools

Ready to use Paper with MCP?

Install the package, add your API key, and start issuing trading commands from your AI assistant.