canli-paper-trading-mcp 0.3.1 / Free and open source
canli-paper-trading-mcp: an agent trades on paper, and cannot skip the checks
canli-paper-trading-mcp lets an AI agent trade your Alpaca paper account without being able to skip the checks. Every order is previewed against your own limits, the market clock and a kill switch, and only orders that pass get a confirmation token. It is paper only: live keys are refused. It is free and open source.
Price: $0 to run. Updated 2026-11-02. 5 tools. MIT licence. Registry name io.github.arhancanli/canli-paper-trading-mcp.
Add it to your AI assistant
claude mcp add canli-paper-trading -- npx -y canli-paper-trading-mcp{"mcpServers":{"canli-paper-trading":{"command":"npx","args":["-y","canli-paper-trading-mcp"]}}}Or take every Canli Capital server at once with npx -y canli-mcp: canli-mcp puts them behind 5 tools and 2,524 tokens of context. Steps for each client.
What to ask it
Common questions
Can it trade real money?
No. The package contains no live trading host, and live keys are refused.
What do I need?
Paper keys from your own Alpaca account, set in your environment. They stay there, and nothing goes anywhere except Alpaca's paper API.
How does it stop an agent going around the checks?
Each order is previewed against your limits, the market clock and a kill switch. Only orders that pass get a five-minute confirmation token, and only a token can send them.
Which AI assistants can use it?
Claude, Claude Code, Cursor, VS Code, Codex, Gemini CLI, Windsurf, Cline, Zed and any other MCP client.
Is it investment advice?
No. It places practice orders you or your agent decide on, with made-up money.
Every tool in canli-paper-trading-mcp
| Tool | What it does |
|---|---|
paper_account | Read your Alpaca paper account: equity, cash, buying power, positions, open orders, the market clock, the kill switch and the local order log's verified head. |
preview_paper_orders | Check orders against your paper account, live quotes, the market clock, your limits file and the kill switch; when every order passes, return a five-minute confirmation token for exactly these orders. |
rebalance_to_weights | Turn target portfolio weights into the whole-share orders that move your paper account there (sells first), check them, and return a confirmation token when all pass. |
verify_attestation | Check an attestation a pre-trade check or send returned: that it was signed by the trader's keys (Ed25519 and, where present, post-quantum ML-DSA-65; both must hold) and not altered, and, given openings from the trader's commitments file, that committed account figures are what they claim. Offline; reads nothing from Alpaca. |
send_paper_orders | Send previewed orders to your Alpaca paper account with their confirmation token (the kill switch is read again first), or cancel open paper orders by id. Every send is logged, hash-chained. |
All Canli Capital MCP servers · How they work and are tested · How they compare with other finance MCP servers
