IX

ino-xious/stockbit-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

56 stars 21 forks 质量 78 趋势 33MIT

Stockbit(印尼/IDX市场)模型上下文协议(MCP)服务器——经纪商摘要/bandarmology、报价、顶级交易、订单簿、基本面、情绪、您的投资组合以及真实......

概览

带状分类、报价、订单簿、基本面、你的观察列表和投资组合——只有在你开启时才会确认门禁的订单录入——通过你自己的Stockbit账户,无论是Claude Desktop、Claude Code、Cursor还是任何MCP客户端。 本项目与Stockbit、PT Stockbit Sekuritas Digital或印度尼西亚证券交易所无关联、不支持或支持。其产出内容均非投资建议,作者非持牌顾问。 Stockbit账户需要你自己登录,输入用户名和密码——Stockbit自家网站上的Google和Facebook登录功能都被破解。Node.js 22或更高。一次性登录使用Chromium系列浏览器(Chrome、Edge、Brave、Vivaldi)。broker_distribution还需要有10,000,000印尼盾的余额,这是Stockbit的门槛,不是这个项目的。 它运行在你的机器上,只与 Stockbit 自有的 API 主机通信,并用你的会话访问,刷新令牌会保存在 macOS 密钥链中(另一个加密文件)。

概述(AI 翻译)

股票位市场数据、分析、图表绘制、只读经纪投资组合和模拟交易 适用于Claude、ChatGPT及其他MCP客户端。非官方且与Stockbit或IDX无关。

**本构建无法执行真钱交易。**真实买卖、修改、取消和电子IPO订阅 工具及其HTTP路由已被移除。不支持存款和取款。旧版 live 设置关闭失败;没有开关可以恢复实时执行。这是技术问题 界限,而非OJK批准或法律合规认证的主张。

印尼语 ·工具参考 · 客户端设置 ·安全性 ·验证

构建并登录

使用此检查或已验证的1.4.1及更高版本的发布伪影。1.3.1 npm包可以 不包含这些更改;之前的 v1.4.0 GitHub 标签也指向 1.3.1 的包清单。

登录和交互式图表绘制需要Node.js 22+和Chromium系列浏览器。登录 在Stockbit自家页面上;密码和一次性密码从不通过助理请求。凭据 保存在操作系统密钥链本地,或加密文件备份。浏览器会话与 API

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Stockbit MCP

Stockbit market data, analysis, chart drawing, read-only brokerage portfolios, and simulated trading for Claude, ChatGPT and other MCP clients. Unofficial and unaffiliated with Stockbit or IDX.

This build cannot execute real-money trades. Real buy, sell, amend, cancel and e-IPO subscription tools and their HTTP routes have been removed. Deposits and withdrawals are not supported. Old live settings fail closed; there is no switch to restore live execution. This is a technical boundary, not a claim of OJK approval or a legal compliance certification.

Bahasa Indonesia · Tool reference · Client setup · Security · Verification

Build and sign in

Use this checkout or verified 1.4.1 or later release artifacts. The 1.3.1 npm package does not contain these changes; the earlier v1.4.0 GitHub tag also points to a 1.3.1 package manifest.

npm ci
npm run build
node dist/bin/stockbit-auth.js login
node dist/bin/stockbit-auth.js status

Requires Node.js 22+ and a Chromium-family browser for login and interactive chart drawing. Sign in on Stockbit’s own page; passwords and OTPs are never requested through an assistant. Credentials are saved locally in the OS Keychain, or an encrypted file fallback. A browser session and the API session are separate; status explains which one needs attention.

Connect a client

Claude Desktop’s claude_desktop_config.json can launch the built server:

{
  "mcpServers": {
    "stockbit": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/stockbit-mcp/dist/bin/stockbit-mcp.js"],
      "env": {
        "STOCKBIT_MCP_TRANSPORT": "stdio",
        "STOCKBIT_TOOLS": "core,chartbit,virtual"
      }
    }
  }
}

Use command -v node (PowerShell: (Get-Command node).Source) to find Node’s path, and replace both example paths. Restart the client after changing its config. STOCKBIT_TOOLS=all exposes the complete supported tool set; core is the smaller default. Profiles select capabilities, not permission to move real money.

You can also build a local Claude Desktop extension with npm run build:mcpb. See client setup for installation and profile selection.

For ChatGPT, use its supported Secure MCP Tunnel or a properly secured remote MCP deployment. The stdio server does not become accessible to ChatGPT by pasting a local file path into a connector. Client setup explains current requirements, the optional local HTTP transport, and what remains a deployment step.

Capabilities

Task Tools / family
Quotes, orderbook, movers, market hours, trade tape market
Broker accumulation, distribution, flow bandarmology
Indicators, patterns, strategy comparison, backtests, scans analysis
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "stockbit": { "command": "/absolute/path/to/node", "args": ["/absolute/path/to/stockbit-mcp/dist/bin/stockbit-mcp.js"], "env": { "STOCKBIT_MCP_TRANSPORT": "stdio", "STOCKBIT_TOOLS": "core,chartbit,virtual" } } } }