stockbit-mcp
The stockbit-mcp server provides read-only access to Indonesian Stock Exchange (IDX) market data via the Stockbit platform. You can:
broker_summary: View net broker buy/sell activity (bandarmology) with investor type filters.
quote: Get real-time quotes including last price, change, and best bid/offer.
top_movers: List top gainers, losers, or most active stocks.
trending: See currently trending stocks based on community activity.
sectors: List all IDX sectors.
intraday_prices: Access minutely intraday close-price series.
price_performance: View multi-timeframe price performance (1D, 1W, etc.).
orderbook: Retrieve full depth order book.
keystats: Fetch key company statistics like valuation and performance.
ratios: Get financial ratios.
financials: Access financial statements (income, balance sheet, cash flow).
sentiment_stream: Monitor recent community posts about a symbol as a sentiment proxy.
Provides Stockbit IDX market data tools including broker summary/bandarmology, quotes, top movers, orderbook, fundamentals, and sentiment that complement what TradingView offers.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stockbit-mcpWhat is the broker summary for BBCA?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
stockbit-mcp
Read-only Model Context Protocol server for Stockbit (Indonesian / IDX market data) — broker summary / bandarmology, quotes, top movers, orderbook, fundamentals, and sentiment. It talks to the same JSON backend the Stockbit apps use, with your own session. It never places or modifies orders.
⚠️ Unofficial. Not affiliated with, endorsed by, or associated with Stockbit or TradingView. Automated access may conflict with Stockbit's Terms of Use — you use this at your own risk on your own account. Data is delayed/unofficial and is not financial advice.
Why an HTTP client (not desktop automation)
Stockbit Desktop is a Tauri (WKWebView) app — the Chrome-DevTools approach used by TradingView
MCPs doesn't apply, and isn't needed: the desktop app is a thin client over
https://exodus.stockbit.com. This server is just another client of that API. See
STOCKBIT-API.md for the full reverse-engineered surface.
Related MCP server: Haruspex
Auth model
One credential: a bearer access token (24h), minted from a refresh token via
POST {exodus}/login/refresh(refresh token in theAuthorizationheader; no reCAPTCHA on refresh).Initial login is OAuth + reCAPTCHA gated, so a human logs in once.
stockbit-auth logindrives your own browser over the DevTools Protocol (no extra browser download — Node 24's built-in WebSocket) and captures the refresh token from the login response automatically.The refresh token is stored in the macOS Keychain (AES-encrypted file fallback elsewhere). Access tokens are never written to disk. All logs/errors are secret-redacted.
Setup
npm install
npm run build
# One-time login. Opens your existing Chrome/Edge/Brave; log into Stockbit normally and the
# session is captured automatically — no DevTools, no copy-paste.
node dist/bin/stockbit-auth.js login
node dist/bin/stockbit-auth.js status # check backend + expiry
node dist/bin/stockbit-auth.js doctor # diagnose browsers + the capture pathdoctor checks every stage the login depends on and reports each separately, including a
self-test that runs the real capture against a local fixture serving its token from a
self-closing popup — no account, credentials, or open market required. See
docs/TESTING-LOGIN.md.
⚠️ Google / Facebook login does not work on Stockbit's website — in any browser, with or without this tool. Their login page still loads
gapi.auth2, the Google Sign-In platform Google retired, and never migrated to Google Identity Services; the button opens a popup that renders nothing. Use username + password. This is upstream of anything this project can reach.
On macOS, the first login may ask once for permission to update the stockbit-mcp Keychain item.
The server does not grant unrestricted Keychain access, and subsequent token rotations should not
reset the item's access permissions.
After this single login, the server auto-refreshes indefinitely — you won't log in again until the refresh token itself expires. The one interactive login is unavoidable (Stockbit's OAuth + reCAPTCHA require a human once); only the token handling is automated away.
Fallback — any browser. login drives a Chromium-family browser over CDP. Firefox removed CDP
in v141 and Safari exposes no reachable debugging protocol to third parties, so for those, log in
however you like and import the network log instead:
node dist/bin/stockbit-auth.js import-har login.har --shredTurn on Preserve log in DevTools before logging in, and export with the download button —
Chrome's "Copy all as HAR" omits response bodies. A login HAR contains your password, cookies and
the token in plain text, so --shred deletes it after import; the command warns you if you don't.
Or paste a refresh token manually — input is hidden:
node dist/bin/stockbit-auth.js bootstrapQuick test without a refresh token
If you can only grab the 24h access token (the Bearer eyJ… on any /marketdetectors request),
run in access-token-only mode — no refresh, stops working at expiry, good for a smoke test:
STOCKBIT_ACCESS_TOKEN='eyJ...' node dist/bin/stockbit-mcp.jsFor hands-off operation, bootstrap a refresh token instead (above). The refresh token is in the
response body of a fresh login (log out → log in with DevTools Network open, filter login),
not in a request header.
MCP client registration
Register with your MCP client (e.g. Claude Desktop mcpServers):
{
"mcpServers": {
"stockbit": { "command": "node", "args": ["/absolute/path/to/dist/bin/stockbit-mcp.js"] }
}
}Tools
Tool | What it returns |
| Net buyers/sellers per broker (lots + IDR + foreign/local). The unique bandarmology signal. Optional |
| Broker-to-broker flow, always rendered as an SVG diagram (dark or light) and written to |
| Last price + best bid/offer for a symbol |
| Top gainers / losers / most-active (empty when market closed) |
| Trending tickers |
| Minutely close-price series |
| 1D/1W/1M/… performance |
| Full depth ladder |
| Fundamentals |
| Community posts about a symbol (sentiment proxy) |
| IDX sector list |
Development
npm run typecheck # tsc --noEmit
npm test # node --test (redaction, error mapping, refresh rotation, schema drift)
npm run dev:mcp # run from source via tsxStatus / roadmap
v1 is read-only MCP tools. The src/core/ layer is intentionally UI-agnostic so a CLI and a
watch/alert daemon (the two-stage broker-summary → intraday screener) can be added as v2 without
touching the data layer.
Refresh contract (confirmed via source + live endpoint probe): the main/session token renews at
POST {exodus}/login/refreshwith the refresh token in theAuthorization: Bearerheader and an empty body (seeSTOCKBIT-API.md§3).Rotation: CONFIRMED against a live account (2026-08-03). Each refresh mints a new refresh token with a fresh 7-day expiry, which
parseRefresh+ the store persist immediately. So the single interactive login really is one-time provided the server runs at least weekly — the expiry keeps sliding forward. Go idle past the window and a re-login is required.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceReal-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.Last updated

Haruspexofficial
Alicense-qualityBmaintenanceMCP server exposing the Haruspex stock-analysis API, headline scores (0-100), score history, batched watchlist scores, stock search, and recent news for US-listedLast updatedMIT- Alicense-qualityDmaintenanceMCP server for scraping Indonesian stock market news from multiple sources.Last updated23ISC
- Flicense-qualityBmaintenanceMCP server exposing Indonesia Stock Exchange (IDX) market data as tools — fundamentals, broker flow, company profiles, and technical analysis via TA-Lib.Last updated
Related MCP Connectors
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Alpaca MCP — real-time US stock market data via the Alpaca Market Data API
7-factor stock scoring MCP server. US/HK/CN, 74 stocks. Free + Premium (USDC/Base). x402 ready.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/INo-xious/stockbit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server