Paper
STDIOOfficialPaper交易平台官方MCP服务器
Paper交易平台官方MCP服务器
Official Model Context Protocol (MCP) server for Paper's trading platform. Lets AI coding assistants (Cursor, Claude, etc.) interact with the Paper Trading API to fetch quotes, place paper orders, and inspect portfolios.
# Global install (recommended for CLI usage) npm i -g @paperinvest/mcp-server # Or run with npx npx @paperinvest/mcp-server --help
Node.js 16+ recommended.
Set your Paper API credentials via environment variables (shell or .env).
export PAPER_API_KEY=your_api_key # Optional override export PAPER_API_BASE_URL=https://api.paperinvest.io
File: ~/.cursor/mcp.json
{ "mcpServers": { "paper": { "command": "paper-mcp-server", "env": { "PAPER_API_KEY": "your_api_key" } } } }
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "paper": { "command": "paper-mcp-server", "env": { "PAPER_API_KEY": "your_api_key" } } } }
paper.quote(symbol) — Get real-time NBBO quote for a symbolpaper.quotesBatch(symbols[]) — Get quotes for multiple symbols in one requestpaper.order({ ... }) — Place a simulated order (market/limit/stop, etc.)paper.portfolio(id) — Retrieve portfolio positions and P&LSee more tools and examples in the repository and on the MCP landing: https://paperinvest.io/mcp
Configs and demo scripts are in examples/:
examples/.cursor/mcp.json — Cursor integrationexamples/claude/claude_desktop_config.json — Claude integrationexamples/scripts/get-quote.sh — Example prompt to fetch a quoteexamples/scripts/place-order.sh — Example prompt to place an orderpaper-mcp-server is in your PATH (npm prefix -g may help).PAPER_API_KEY is set in the same environment as your client.https://api.paperinvest.io.For support, visit paperinvest.io or email [email protected]
MIT © Paper Invest, Inc.