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 分