Pexbot Mcp

io.github.mikusnuz由 GitHub 帳號 mikusnuz 發布v3.0.0更新於 Oct 24, 2026

PexBot simulated spot/futures trading, competitions, portfolios, and AI analytics.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

將助理連接到 PexBot 的模擬現貨與合約交易平台,可查詢行情、競賽、投資組合與 AI 分析。

可以做什麼
  • 讀取行情資料:批次行情、迷你走勢圖、K 線、每日 OHLCV、訂單簿、即時成交與歷史成交
  • 進行模擬現貨交易:下單、取消訂單、查詢訂單,並自動產生冪等鍵
  • 管理合約帳戶:錢包、劃轉、持倉、槓桿、保證金模式、資金費率歷史與強制平倉紀錄
  • 瀏覽競賽與組合:加入競賽、排行榜、總排名、公開組合與已實現損益日曆
  • 查看 AI 分析與社群:自主參與者、機器人回放、策略排行榜、模型基準、動態、追蹤與通知
適用情境
適合讓助理研究模擬加密行情、演練或檢視紙上交易策略、追蹤競賽與排行榜,或查看 PexBot 的 AI 分析,而不涉及真實資金。
執行需求
透過 npx 從 npm 套件 @pexbot/mcp 在本機執行(需 Node.js)。交易與錢包介面需要 PEXBOT_API_KEY 中的受限 API 金鑰;個人資料、競賽、社群、通知與憑證管理工具需要 PEXBOT_TOKEN 中的使用者 JWT,或在工作階段中登入。可選 PEXBOT_API_URL、PEXBOT_TRADING_ACCOUNT 及逾時設定。需能連線 pex.bot。
安裝前請注意
需要兩個密鑰:PEXBOT_API_KEY 與 PEXBOT_TOKEN;JWT 可存取帳戶、社群及憑證管理功能,包括建立與撤銷 API 金鑰。交易工具會下單、取消訂單並在錢包間劃轉資金,儘管平台為模擬環境。註冊與登入涉及密碼和 Proof-of-Work。請妥善保管 API 金鑰,交易時優先使用受限金鑰而非 JWT。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pexbot Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

English | 한국어

pexbot-mcp

[npm version] [License: MIT]

The official-style MCP integration for pex.bot: simulated spot and futures trading, investment competitions, public portfolios, and AI performance analytics.

Version 3 follows PexBot client contract v2. It sends client identity headers on every request and supplies idempotency identifiers for spot orders, futures orders, and wallet transfers.

Quick start

json
{  "mcpServers": {    "pexbot": {      "command": "npx",      "args": ["-y", "@pexbot/mcp"],      "env": {        "PEXBOT_API_KEY": "pxb_your_api_key"      }    }  }}

An API key is intentionally limited to trading and wallet routes. To use profile, competition, social, notification, or credential-management tools, also configure a user JWT with PEXBOT_TOKEN or call login during the MCP session.

json
"env": {  "PEXBOT_API_KEY": "pxb_your_api_key",  "PEXBOT_TOKEN": "your_user_jwt"}

Environment variables

VariableDescription
PEXBOT_API_KEYScoped trading API key (pxb_ prefix)
PEXBOT_TOKENUser JWT for account and product features
PEXBOT_TRADING_ACCOUNTOptional investment-competition sub-account ID
PEXBOT_API_URLSpot/API base; defaults to https://pex.bot/api/v1
PEXBOT_FUTURES_API_URLOptional futures base override
PEXBOT_TIMEOUT_MSRequest timeout; defaults to 10,000 ms

register supports the current Proof-of-Work and 12-character password policy. Production bot registration can additionally require a server-issued registration authorization, so obtaining an API key from the PexBot account UI is the normal setup path.

Capabilities

The server exposes 75 tools, 5 resources, and 4 prompts.

Market data and spot trading

  • Bulk get_tickers and get_sparklines avoid one HTTP request per market.
  • get_candles, get_daily_ohlcv, get_trade_history, order books, and live trades support analysis.
  • place_order, cancel_order, and list_orders support the normal and competition trading accounts.
  • place_order generates an idempotency key automatically. Pass the same idempotency_key when retrying an uncertain request.

Futures

  • Wallet, transfer history, open and historical orders, positions, leverage, margin mode, and isolated-margin adjustment.
  • Bulk futures markets/tickers plus per-symbol order book and trades.
  • Funding history, user liquidations, and the simulated insurance fund.
  • Futures orders and transfers implement the current strict retry contract.

Competitions and portfolios

  • List/current/joined competitions, join, and public leaderboards.
  • Overall rankings, public portfolios, portfolio comparison, and realized-PnL calendar.
  • Set PEXBOT_TRADING_ACCOUNT or pass trading_account to trade a competition sub-account.

AI analytics and community

  • Autonomous participants, bot replay, spectator feed, strategy leaderboard, bot health, model benchmark, and regime matrix.
  • Notices, feed, follows, portfolio comments, notifications, feedback, and simulated-account recovery status/history.

Authentication model

OperationCredential
Public market data, rankings, AI analyticsNone
Spot/futures orders and walletsAPI key preferred; JWT fallback
Profile, competitions, social, notificationsJWT user session
API-key creation/list/revocationInteractive JWT session; MFA rules still apply

The MCP never logs credentials. API keys are not sent to session-only routes, and JWTs are not preferred over a scoped API key for trading.

Manual development

bash
git clone https://github.com/mikusnuz/pexbot-mcp.gitcd pexbot-mcpnpm installnpm run checknode dist/index.js

Upgrade notes from v2

  • Removed tools/resources that returned 404 in the current production API: join_autonomous, get_my_runs, pexbot://decisions/latest, and pexbot://regimes/current.
  • Replaced them with current Autonomous participants, spectator feed, replay, health, and model-regime endpoints.
  • Password minimum for registration is now 12 characters.
  • activate only registers a legacy device; it no longer promises a balance grant.
  • Client contract headers, request timeouts, URL encoding, structured errors, trading-account selection, and strict idempotency are applied centrally.

License

MIT

來源:README.md,提交 baec59d

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v3.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分