Paper MCP Server (@paperinvest/mcp-server)
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
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.
Install
Node.js 16+ recommended.
Configure
Set your Paper API credentials via environment variables (shell or .env).
IDE Integrations
Cursor
File: ~/.cursor/mcp.json
Claude Desktop
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Tools Reference
- 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 more tools and examples in the repository and on the MCP landing: https://paperinvest.io/mcp
Examples
Configs and demo scripts are in examples/:
- examples/.cursor/mcp.json — Cursor integration
- examples/claude/claude_desktop_config.json — Claude integration
- examples/scripts/get-quote.sh — Example prompt to fetch a quote
- examples/scripts/place-order.sh — Example prompt to place an order
Getting Started
1. Sign up at app.paperinvest.io
2. Generate an API key from your account settings
3. Add the configuration above with your API key
4. Restart Claude Desktop or Cursor
Troubleshooting
- Ensure paper-mcp-server is in your PATH (npm prefix -g may help).
- Verify PAPER_API_KEY is set in the same environment as your client.
- Restart Cursor/Claude after changing config.
- Check connectivity to https://api.paperinvest.io.
Links
- NPM: https://www.npmjs.com/package/@paperinvest/mcp-server
- GitHub: https://github.com/paperinvest/mcp-server
- MCP Landing: https://paperinvest.io/mcp
- API Docs: https://docs.paperinvest.io
Support
For support, visit paperinvest.io or email support@paperinvest.io