Papertrade AI
io.github.nirholas由 GitHub 帳號 nirholas 發布v0.1.0更新於 Oct 24, 2026
Trade Papertrade BTC and ETH perps from Claude, ChatGPT, Codex, Cursor and any MCP client.
概覽
供 Papertrade BTC 與 ETH 永續合約使用的 MCP 伺服器:提供即時行情、錢包分析、清算地圖,並透過工作階段金鑰執行受額度限制保護的交易。
- 可以做什麼
- 讀取 BTC/ETH 永續市場行情、OHLCV K 線與協議統計
- 檢視清算地圖、交易者排行榜、最高獲利與最新成交
- 查詢錢包帳戶、持倉、成交歷史與權益曲線
- 計算假設部位的爆倉價與清算距離等數學結果
- 預覽、開倉、平倉、取消交易並查詢委託狀態
- 取得入金說明與目前交易權限和限額
- 適用情境
- 適合讓助理研究 Papertrade 永續市場、分析錢包與清算價位,或在伺服器端限額約束下開立與管理小額槓桿 BTC/ETH 部位。僅做唯讀查詢時不需連接錢包。
- 執行需求
- 可使用遠端 streamable HTTP 端點(OAuth 2.1),或透過 npx 在本機執行 npm 套件 papertrade-ai(需 Node.js)。帳戶與交易工具需要錢包;選用環境變數 PAPERTRADE_PRIVATE_KEY 用於無介面交易,PAPERTRADE_WALLET 可在未登入時唯讀存取。本機憑證存放於使用者設定目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Papertrade AI,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.nirholas%2Fpapertrade-ai/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"papertrade-ai": {
"type": "http",
"url": "https://papertrade-ai.ninabrekkerese.workers.dev/mcp"
}
}
}README
[Papertrade AI: trade perps from any AI. Claude, ChatGPT, Codex, Cursor, Gemini, VS Code.]
Papertrade AI
Trade Papertrade BTC and ETH perps from Claude, ChatGPT, Codex, Cursor, Gemini CLI, VS Code and any MCP client.
Open-source Model Context Protocol server with live markets, wallet analytics, liquidation maps, and guarded trading through non-custodial session keys.
[npm] [MCP Registry] [License: MIT] [Docs]
One URL, OAuth 2.1, no API keys. Your wallet signs once to register a session key that can trade but cannot withdraw, and the server enforces the limits you choose: margin per trade, leverage, daily size, open positions and markets. Every trade is previewed and needs your confirmation.
What you can ask
- "What are BTC and ETH doing on Papertrade right now?"
- "Show me the Papertrade liquidation map for ETH."
- "Who are the top 10 Papertrade traders this week? What are they holding?"
- "Analyze wallet 0x...: win rate, biggest trade, equity curve."
- "If I long BTC with $20 at 500x, where is my liquidation price?"
- "Preview a $15 ETH short at 800x, then open it if I confirm."
- "Close all my BTC positions."
On clients with MCP Apps support (Claude, ChatGPT, VS Code, Goose) results render as an interactive trading card with a live chart.
Install
Local (stdio)
Run npx -y papertrade-ai login once to connect a wallet in your browser. Credentials stay in ~/.config/papertrade-ai (mode 0600). CLI guide
Tools
Full inputs and annotations: Tool reference. Public tools also work over plain HTTPS:
OpenAPI 3.1 at /openapi.json, ready for GPT Actions and agent frameworks. Unauthenticated MCP for read-only agents: https://papertrade-ai.ninabrekkerese.workers.dev/public/mcp.
Security
- Non-custodial. Your wallet signs one EIP-712
RegisterSessionKeymessage, the same one the official Papertrade app signs for one-click trading. The session key is scoped by the exchange contract to open, close and cancel. It cannot withdraw or transfer. - Guardrails in code, not in the prompt. Margin per trade, leverage, rolling 24h position size, open positions and markets are checked on the server before any intent is signed.
- Preview, then confirm.
open_positionneeds a signed quote frompreview_tradefor the identical trade, valid for 3 minutes. - Encrypted per app. Each app's session key is encrypted with a key derived from that app's own access token.
- Revoke in one click at /account.
Read the full security model. Report vulnerabilities privately: SECURITY.md.
Develop and self-host
Deploy your own copy to Cloudflare Workers with one KV namespace and one secret: Self-hosting. The package also exports the tool registry, policy engine and intent signing for use in your own agent: import { TOOLS, runTool } from 'papertrade-ai'.
Risk
Papertrade positions use real USDC. At 1000x leverage a 0.1% move against you liquidates the position and the full margin is lost. Papertrade AI is independent open-source software, not affiliated with Papertrade, and not financial advice.
License
Support the project
If papertrade-ai saves you time, star it on GitHub. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.
Know someone who would use it? Post on X · Share on Bluesky · Share on LinkedIn · Submit to Hacker News · Share on Reddit
Built for AI agents too
Coding agents and LLM tooling can read this repo directly: AGENTS.md, llms.txt, llms-full.txt. Point an agent at https://github.com/nirholas/papertrade-ai and it has the context it needs.
More from the same author
- All repositories by nirholas: the full catalog, grouped by topic
- three.ws: the platform for 3D AI agents with Solana wallets, a skill marketplace and x402 payments
- Questions or ideas: open an issue or start a discussion
Contributors
Star history
來源:README.md,提交 d4554bb
工具
0版本歷史
1- v0.1.0最新Oct 10, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分