idx
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
idx stocks quote BBCA,BBRI,TLKM╭────────┬──────────────────────────────┬───────┬──────┬─────────┬───────┬───────┬───────┬───────────────┬─────────┬───────┬────────╮
│ Symbol ┆ Name ┆ Price ┆ Chg ┆ Chg % ┆ Open ┆ High ┆ Low ┆ Volume ┆ Mkt Cap ┆ P/E ┆ Div % │
╞════════╪══════════════════════════════╪═══════╪══════╪═════════╪═══════╪═══════╪═══════╪═══════════════╪═════════╪═══════╪════════╡
│ BBCA ┆ PT Bank Central Asia Tbk ┆ 5,175 ┆ -900 ┆ -14.81% ┆ 5,825 ┆ 5,825 ┆ 5,175 ┆ 1,241,098,200 ┆ 635.7T ┆ 10.96 ┆ 6.27% │
│ BBRI ┆ PT Bank Rakyat Indonesia (P… ┆ 2,640 ┆ -460 ┆ -14.84% ┆ 2,640 ┆ 2,890 ┆ 2,640 ┆ 1,193,916,400 ┆ 397.8T ┆ 6.49 ┆ 13.48% │
│ TLKM ┆ Perusahaan Perseroan (Perse… ┆ 1,900 ┆ -330 ┆ -14.80% ┆ 1,900 ┆ 1,985 ┆ 1,900 ┆ 963,614,200 ┆ 187.3T ┆ 10.98 ┆ 10.01% │
╰────────┴──────────────────────────────┴───────┴──────┴─────────┴───────┴───────┴───────┴───────────────┴─────────┴───────┴────────╯
Last trade 2026-10-16 16:14 WIB · market closed · delayed dataidx -o json stocks quote BBCA | jq '.data[0] | {price, change_pct, pe_trailing, dividend_yield_pct}'{ "price": 5175.0, "change_pct": -14.814815, "pe_trailing": 10.963983, "dividend_yield_pct": 6.27 }Free data, no keys. Yahoo Finance and MSN Money for prices and fundamentals, the exchange's own idx.co.id summaries for foreign flow, member activity, indices and the corporate-action calendar, IDX's monthly KSEI register for ownership, Indo Premier's broker summary for who bought and sold (read as bandarmology by
idx bandar) and for foreign flow in rupiah (stocks foreign --source ipot), its corporate-action pages, Kontan and CNBC Indonesia feeds for news. Every source sits behind aProvidertrait, so one breaking does not take the tool down, andautofills gaps in one source's fundamentals from the other.Built for agents.
-o jsonemits a stable, schema-documented envelope (idx schema quotes),-o jsonlone record per line. Exit codes mean something, and-reads tickers from stdin so commands chain.idx mcpexposes every command as a typed MCP tool that returns the very same JSON.Works offline. Responses are cached with per-endpoint TTLs;
--offlineserves the cache instead of failing when the network is gone.Ownership, not just prices. KSEI's monthly register of holders above 1 % is imported into local SQLite with normalised entity names, so "who owns more than 1 % of BBCA" and "what did this fund change last month" are one command each. The monthly IDX files are mirrored to GitHub, so neither you nor the web terminal imports anything by hand:
idx ownership syncinstalls every month in one download.Single static binary. Rust, no runtime, Linux / macOS / Windows.
Install
The package is called ihsg-cli; the command it installs is idx
(npm also adds ihsg-cli as an alias).
cargo install --locked ihsg-cli # crates.io, builds from source (Rust 1.89+)
npm install -g ihsg-cli # npm
npx ihsg-cli stocks quote BBCA # npm, no install
curl -fsSL https://raw.githubusercontent.com/fzn0x/idx/main/install.sh | sh # Linux, macOS
nix profile install github:fzn0x/idx # Nix (Linux; Apple silicon macOS untested), with shell completions
nix run github:fzn0x/idx -- stocks quote BBCA # Nix, no installnpm installs a small launcher; the first idx command downloads the
prebuilt binary for your platform from the matching GitHub release and checks
it against the release's SHA256SUMS (so does install.sh). The binary is
stored next to the launcher, or in a per-user cache when the global npm
folder is not writable. npm install -g github:fzn0x/idx installs the same
launcher from this repository's main; npm 12 only installs from git with
--allow-git=all.
Windows without npm: download idx-<version>-x86_64-pc-windows-msvc.zip from
the releases page. Static Linux
binaries are musl builds and run on any distribution. The development version installs
with cargo install --git https://github.com/fzn0x/idx.
Nix builds idx from source on your machine (there is no binary cache), so the
first nix profile install or nix run takes several minutes. The bare
github:fzn0x/idx ref follows main; add a release tag to pin one, as in
github:fzn0x/idx/v0.8.2 (the first release with the flake). For MCP clients,
install once and register $HOME/.nix-profile/bin/idx, written as an absolute
path, with the argument mcp: idx mcp setup prints the binary's resolved
/nix/store path, which an upgrade followed by garbage collection removes.
nix run github:fzn0x/idx#mcp starts the same server without installing, for
trying it from a terminal; do not make it a client's server command, because a
cold start (the first run, or the first after main moves) builds idx before
the server answers, which takes longer than clients wait. overlays.default
adds pkgs.idx for NixOS and home-manager configurations, and nix develop in
a clone gives the toolchain from rust-toolchain.toml plus Node for web/. On
NixOS, point idx stockbit login at a browser with
IDX_BROWSER=$(command -v chromium).
Shell completions:
idx completions bash > ~/.local/share/bash-completion/completions/idx
idx completions zsh > ~/.zfunc/_idx
idx completions fish > ~/.config/fish/completions/idx.fish
idx completions powershell | Out-String | Invoke-ExpressionRelated MCP server: jv-idx-mcp
Commands
command | what it does |
| Delayed quote for one or many tickers ( |
| OHLCV candles with a summary line. Periods |
| The latest session by the minute (today's while the market trades, otherwise the last one): OHLCV bars, the quote with its previous close and change, and a summary of the bars with VWAP computed by idx. Yahoo's chart, no login, about 10 minutes behind the market; works for IHSG ( |
| Sector, industry, description, size, headquarters, management |
| Income statement, balance sheet, cash flow; |
| Quarterly EPS vs estimates with surprise, yearly and quarterly revenue/earnings, analyst consensus for this and next quarter and fiscal year, next earnings date; the flags keep only those rows in every format ( |
| Every cash dividend (ex-date, split-adjusted amount) and split; yearly totals, TTM total and yield, payout streak |
| 1w/1m/3m/6m/YTD/1y/3y/5y returns, CAGR, volatility, max drawdown, best/worst day, 52-week position, and excess over IHSG |
| Relative rotation graph: each ticker's RS-Ratio, RS-Momentum and quadrant (leading, weakening, lagging, improving) against IHSG, with its recent path. An open approximation of the JdK formulas; see Relative rotation |
| One page: quote, verdict, signal, returns vs IHSG, dividends, top holders, headlines, with plain-language key points |
| P/E, P/B, PEG, EV/EBITDA, ROE, ROA, margins, leverage, growth, dividend, analyst targets, plus a plain-language verdict that lists every rule it applied (negative equity counts against a company; multiples that mix USD statements with an IDR price are marked and not scored) |
| Growth lens: latest-quarter revenue and earnings growth, forward EPS against trailing, and revenue and net income across the annual statements (CAGR, how often revenue grew, a turn from profit to loss); every rule with its points, every skipped rule with the reason |
| Valuation lens: P/E, PEG, P/B, P/S, EV/EBITDA, dividend yield and the analyst target (3 or more analysts), each scored; multiples that mix USD statements with an IDR price are shown, not scored |
| Risk lens: negative equity, debt/equity, current ratio, losses, and beta, volatility and largest fall against IHSG over a year of daily closes (computed by idx, not the source's beta). |
| RSI, MACD, SMA/EMA 20/50/200, Bollinger, ATR, volume, support/resistance, trend, buy/sell/neutral signal with reasons |
| Side-by-side fundamentals for two or more tickers |
| Screener over ~950 IDX tickers: one batch quote for valuation/size/dividend keys and |
| Headlines from Kontan and CNBC Indonesia RSS. With a ticker, the company's headlines come first, then market context fills the limit |
| Aggregate lexicon sentiment over the matching headlines, with counts, terms and the strongest headlines |
| MSN Money's rule-based statements (about 30, in Valuation, Earnings, Growth, Performance, Health), each rated good, bad, neutral or not rated against the peers, the industry, the company's own history or the price, with the peer tickers |
| Corporate actions from IPOT, upcoming ones included: cash and stock dividends, splits, bonus shares, rights issues (amount, ratio old:new, cum, ex, recording and payment dates, status, announcement), shareholders' meetings (RUPS: time, venue, agenda), listed warrants and rights |
| Foreign buying and selling per session, totals and the net-buy/net-sell streak: from idx.co.id by default (shares on the regular board, as IDX publishes them, net and net × close), or from IPOT with |
| Listed stocks from idx.co.id with listing board, listing date and shares; the bundled universe stands in offline |
| Import KSEI's monthly ">1 % holders" register (XLSX or PDF) into local SQLite. |
| Install the prebuilt SQLite snapshot CI builds from the mirrored files (one download, SHA-256 checked), then any newer month; a database holding months the snapshot lacks is kept unless |
| Holders above 1 % of a ticker (a holder's accounts summed; controller/affiliate flag from the 30 Oct 2026 register) |
| Every position of a person or institution, spelling variants grouped ( |
| Find holders by name in every imported month: every spelling KSEI printed, words in any order, with the key for |
| Holders ranked by the number of issuers they own more than 1 % of, with every position |
| Issuers ranked by disclosed ownership concentration: HHI over the listed holders, largest and top-3 stakes, undisclosed percent, controller stake |
| Holder-issuer network around a ticker or holder, as a table, JSON or Graphviz DOT |
| Suggest, merge and split holder spellings KSEI printed differently between months (rules stored in the local database, undoable) |
| Broker summary: which brokers bought and sold a ticker, ranked by lots, with broker name, class (local, foreign, BUMN), lots, value and average price, plus total value and foreign net (for one investor side, what it bought and sold). IPOT publishes the top 10 per side; once |
| Bandarmology: are the top brokers accumulating or distributing? The top 1/3/5/10 buyers against as many sellers (bandar value and volume), net as a share of the value traded, the phase against the price move, the top buyers' average against the price, foreign flow; |
| Bandarmology screener over the 100 most traded stocks by value: presets |
| Broker activity: where one broker (e.g. |
| IHSG, breadth, turnover, gainers, losers, most traded, heavyweights from one pass over the universe |
| Top foreign net buying and net selling across every stock for one session (idx.co.id, in shares), with the market's foreign totals; |
| Every exchange member's trading for one session, ranked, with each member's share of all members' value: from idx.co.id, or from IPOT when idx.co.id refuses, cannot be reached, fails or has not published the session yet and IPOT holds that session ( |
| Every IDX index (IHSG, LQ45, IDX30, sector and thematic) for one session: close, change, range, constituents, value, market cap |
| The exchange calendar: dividend and rights dates (cum, ex, recording, payment), RUPS, public exposes, listings; bonds and buyback reports with |
| Trading holidays (Kalender Libur Bursa, bundled), the year's trading days, whether today is a trading day and the next one |
| Traditional astrology for IHSG, computed offline: the Sun, Moon and planets (sign, degree, speed, retrograde) at 16:00 WIB, Moon phase, Mercury retrograde, Javanese weton, Chinese shio, phases, stations and ingresses ahead, aspects to IHSG's chart; |
| Exchange members (broker codes) with names and licences |
| New holders, exits and position changes between two months, paged, with a summary (counts, foreign vs local net, by investor type, issuer flow, top moves) over every match |
| Disclosed foreign (KSEI |
| KSEI's monthly "Kepemilikan Efek" archive: local vs foreign shares in nine investor types, as a percent of the scripless shares, with the scripless share of listed shares and the trend over imported months. Downloads the newest month on first use |
| Institutional and fund holders from MSN Money (live, no import): shares, % of shares outstanding, the change since each holder's last report and a |
| Opt-in: store your own Stockbit session, signed in in a browser idx opens or, over SSH and for Google sign-in, through a page on 127.0.0.1 for your own browser (idx never sees the password; every session is checked before it is stored); check when its tokens expire; delete it. See docs/stockbit.md |
| The live depth ladder and session foreign flow (your Stockbit session) |
| Corporate actions from your Stockbit session, one structured row each: a stock's whole history (dividends since 2009 for BBCA, splits, bonus, rights, warrants, RUPS, public exposes, tender offers), or the market's calendar with rights, tender and IPO offers still open |
| Insider and 5 % holder movements from your Stockbit session: IDX insider disclosures (with the trade price) and KSEI's 5 % holder changes (Stockbit's estimated price kept apart), shares exact and signed |
| Plain-text watchlist next to the config; |
| Imported months, files published on idx.co.id and ksei.co.id (families |
| MCP server over stdio or streamable HTTP, and the registration recipe for 25 agent harnesses. 48 tools: |
| JSON Schema for every payload ( |
| Config file management |
| Response cache management |
| bash, zsh, fish, powershell, elvish |
| Version, build and default paths |
Global flags work anywhere on the line:
flag | env | meaning |
|
| Output format: tables for people, the JSON envelope for programs, one JSON record per line ( |
|
| Data source ( |
|
| Where candles come from; |
|
| Never touch the network |
|
| Ignore cached responses |
|
| Per-request timeout (default 15) |
|
| Plain tables |
|
| Diagnostics on stderr, including every URL requested |
|
| stderr carries errors only: no warnings, notes or loading line. stdout is unchanged and |
| Yahoo Finance suffix a bare ticker gets in | |
| The loading line on stderr ( |
For scripts and agents
idx -o json stocks history TLKM --period 1y --interval 1wk \
| jq '.data.summary.change_pct'
idx -o jsonl market holidays --year 2026 | jq -r .date # one record per line
idx -o jsonl stocks screen -f 'pe<10,roe>15' -n 5 | idx stocks compare -
echo BBCA BBRI | idx stocks quote - # tickers from stdin
idx -q -o csv stocks quote BBCA BBRI > quotes.csv # stderr: errors onlystdout carries exactly one JSON document (
-o json) or one JSON record per line (-o jsonl); everything else goes to stderr. Errors are one JSON line on stderr in both modes.-o auto(orIDX_OUTPUT=auto) prints a table on a terminal and the JSON envelope when stdout is piped or captured.-in a ticker list (stocks quote|returns|rotation|compare,broker,bandar,watch add|rm) reads tickers from stdin: plain text (spaces, commas or lines,#comments) or idx's own-o json/-o jsonloutput.The envelope records
provider,fetched_at,cached,stale,stale_reason(offlineorfetch_failed, only when stale) andwarnings.Fields the source did not return are
null. Nothing is estimated.Quotes carry
behind_session:truewhen the last trade is dated before the latest IDX session that has ended (a suspended stock, one that did not trade, or a source that lags the close), using the bundled holiday calendar.Exit codes:
0ok ·2usage ·3network/provider (JSON codeblockedwhen the source's bot protection, Cloudflare, refused the request) ·4not found ·5offline cache miss ·6config.
Full field reference: docs/json-output.md. Configuration and cache: docs/configuration.md. Calling idx from an agent (rules, exit codes, recipes, an agent-led install): docs/agent-guide.md.
MCP server
idx mcp serves the Model Context Protocol over stdio, which is what every
local agent launches. idx mcp --http serves the same tools over streamable
HTTP for products that only connect to a URL. idx mcp setup <client> prints
the exact command or config snippet for your agent with the absolute path of
the binary filled in, because GUI apps rarely inherit your shell PATH:
idx mcp setup --list # every supported client
idx mcp setup codex # prints: codex mcp add idx -- /abs/path/idx mcp
idx mcp setup muse # prints the settings.json block Meta's Muse Code expectsagent | register idx |
Claude Code |
|
Claude Desktop |
|
OpenAI Codex (CLI, IDE extension, app) |
|
Meta Muse Code |
|
Google Antigravity (IDE, CLI) |
|
Gemini CLI |
|
GitHub Copilot CLI |
|
VS Code (Copilot agent mode) |
|
Cursor · Windsurf · JetBrains · Warp · Trae · Augment | paste |
Kiro (IDE and CLI, formerly Amazon Q Developer CLI) |
|
Zed |
|
Cline · Roo Code · Kilo Code | MCP Servers → Configure → |
Continue |
|
OpenCode |
|
Goose |
|
Factory Droid |
|
Mistral Vibe |
|
Qwen Code |
|
Crush |
|
ChatGPT · Claude.ai · Perplexity · Devin · Manus | remote only: |
A bare idx in the table assumes the binary is on PATH; idx mcp setup
substitutes the absolute path, and --npx swaps in npx -y ihsg-mcp: the
npm package ihsg-mcp runs idx mcp without installing
idx, fetching the release binary on first start and checking it against the
release's SHA256SUMS (cmd /c npx -y ihsg-mcp on Windows; from this
repository npx -y github:fzn0x/idx mcp still works). Each entry's remote
(HTTP) form and the config file locations are in docs/mcp.md.
claude mcp add --scope user idx -- npx -y ihsg-mcp # no idx install needed (Node 18+)
npx -y ihsg-mcp setup cursor # any client's recipe, in the npx formThe server lists 48 tools with typed input schemas kept to the subset every
harness accepts (no nullable type arrays, no format or default keywords)
and one-paragraph descriptions. idx_brief is the one-call starting point;
idx_fundamental takes an optional lens (growth, valuation or risk)
for the focused readings of stocks growth|valuation|risk;
each tool returns the same envelope as -o json, so an agent that learned the
CLI already knows the tools. Failures come back as tool errors carrying
{error: {code, message}, exit_code}.
Relative rotation
idx stocks rotation (alias rrg, MCP idx_rotation) places each ticker on
a relative rotation graph against a benchmark, IHSG (^JKSE) by default:
idx stocks rotation BBCA BBRI BMRI TLKM ASII
idx stocks rotation BBCA TLKM --benchmark ^JKLQ45 --tail 5
idx stocks rotation BBCA TLKM --interval 1d --window 20
idx -o json stocks rotation BBCA GOTO | jq '.data.rows[] | {symbol, quadrant}'
idx stocks rotation - < watchlist.txtThe x axis is RS-Ratio (is the stock beating the benchmark?), the y axis RS-Momentum (is that getting stronger?), both centred on 100. The quadrants: leading (both at or above 100), weakening (ratio above, momentum below), lagging (both below), improving (ratio below, momentum above). Stocks usually rotate clockwise through them. Each row carries its latest point, the change over the tail, and the tail itself (the recent path, oldest first); the table adds the four quadrants laid out as the graph draws them.
idx computes it from five years of daily closes (the history stocks returns reads, so the two share the cache), on the dates the stock and the
benchmark both have:
RS = 100 x close / benchmark close
RS-Ratio = 100 + (RS - mean) / standard deviation over the last
--windowbarsRS-Momentum = 100 + the same z-score of RS-Ratio's rate of change
The original JdK RS-Ratio and RS-Momentum (RRG Research, shown by StockCharts
and Optuma) are proprietary, so this is an open approximation and says so
(method.approximation, method.formula in the JSON): its values will not
match those charts. The axes are in standard deviations, not percent. Weekly
bars (--interval 1wk, the default) are each week's last session, and the
current week counts with its latest one. Defaults: window 14, tail 10. A
first point needs 2 x window bars and a full tail 2 x window + tail - 1 (37
weeks by default); a shorter history (a new listing) leaves the row's values
null with a warning, never a fill. Yahoo has no history for the IDX sector
indices, so a sector graph is not possible yet; index codes that do have one
(^JKLQ45, ^JKII) work as symbols or as the benchmark. The web terminal
does not draw the graph yet: it runs in the CLI and the MCP server. Not
investment advice.
Bandarmology
"Bandar" is market slang for the big, concentrated money that moves a stock.
idx bandar reads it from the IPOT broker summary, whose top 10 buyers and
top 10 sellers are ranked by lots. For N = 1, 3, 5 and 10 the top N buyers'
value minus the top N sellers' value is the bandar value (in lots, the bandar
volume); its share of all value traded is the reading, with the headline on
the top 5 (--top):
Top-N net, % of value | Signal | Phase when the price over the range is... |
+15 or more |
| up more than 2 %: |
+5 to +15 |
| as above |
-5 to +5 |
|
|
-15 to -5 |
| down more than 2 %: |
-15 or less |
| as above |
Quiet accumulation is the usual "bandar buying quietly": concentrated buying
while the price stalls or falls. Each reading also gives the top buyers'
average price against the last price (bandar_gain_pct: below zero they sit
under water), how much of the value the top buyers took, the foreign net
flow, and the rules in plain words (reasons). --daily adds the session
series with its cumulative net and streak. The thresholds were set against
the 40 most traded stocks in October 2026, where about half of single
sessions read neutral. They are heuristics, not advice.
idx bandar detect BBCA # last week, top 5 vs top 5
idx bandar detect BBRI --period 1m --daily # with the bandar movement
idx bandar screen --preset quiet-accumulation # buying while the price stalls
idx bandar screen -f 'acc>=5,fpct>=5,gain<0' # with foreigners, under the bandar's averageAstrology
idx market astro is traditional astrology done carefully: the positions are
astronomy, computed on this machine from JPL's Keplerian elements (Standish),
Schlyter's Jupiter-Saturn terms and Meeus's lunar theory, and checked in the
tests against JPL Horizons (Sun and Moon within 0.01°, planets within 0.04°,
1800-2050) and the USNO moon phases (within 2 minutes). The Javanese weton
(day, pasaran, neptu) and the Chinese shio (Imlek computed from new moons and
solar terms, checked against the published dates 1924-2050) come with it, and
IHSG's own chart is cast for noon WIB on its launch (1983-04-01) or base date
(1982-08-10, value 100), dates from secondary sources (Antara, Bisnis.com,
CEIC) not yet confirmed against an IDX publication.
--backtest asks whether any of it shows up in the index: IHSG's daily
returns grouped by lunar phase, Mercury retrograde or direct, pasaran and Sun
sign, each group tested against all other days (Welch's t, Bonferroni over the
27 groups). On every session from 1990-04-09 to 2026-11-04 (8,904 returns) no
group passes Bonferroni; the nominal p < 0.05 groups (full moon -0.07 % a day,
Capricorn +0.19 %, Pisces -0.10 %, Leo -0.09 %) are the lunar-effect and
month-of-year patterns the finance literature already knows, since Sun signs
follow the calendar. v1 prints no interpretations; it is not a forecast or
investment advice.
idx market astro # today: planets, Moon, Mercury, weton, shio
idx market astro --date 2026-12-24 --days 7
idx market astro --backtest # every session since 1990
idx -o json market astro --backtest --period 10y | jq '.data.backtest.factors[0]'Data sources
source | used for | auth | notes |
Yahoo Finance | history, intraday minute bars, quote fallback | none | IDX tickers carry the |
Yahoo Finance | quotes | anonymous cookie + crumb, cached 6 h | Falls back to the chart endpoint (fewer fields) if rejected |
Yahoo Finance | profile, fundamentals, earnings | same session | Statement modules are empty at the source, so they are not used |
Yahoo Finance | financials | none | Annual, quarterly and TTM statement items |
idx.co.id "Data Kepemilikan Saham" page + | ownership (KSEI monthly register) | none, but Cloudflare bot protection | Mirrored three times a day by GitHub Actions to the |
ksei.co.id "Kepemilikan Efek" page ( | ownership composition (local vs foreign by investor type, monthly) | none, no bot protection | One ZIP a month (about 125 KB, one pipe-separated TXT), scripless holdings only. The listing is cached 12 h; archives go into the local ownership database. CLI and MCP. See docs/ownership.md |
Indo Premier (IPOT) | broker summary, foreign flow ( | none | Top 10 buyers and sellers per range, ranked by lots; figures of a million and more are rounded to one decimal by the source ( |
idx.co.id JSON endpoints behind its pages ( | foreign flow, member activity, indices, the exchange calendar, listed stocks, members | none, but Cloudflare bot protection | Foreign trading is published in shares only; |
Indo Premier (IPOT) | corporate actions, RUPS, warrants and rights | none | Same module and spurious-404 retry as the broker summary; repeated rows are dropped |
Indo Premier (IPOT) | member activity ( | none | Every broker of IPOT's latest session, ranked by value, with value bought, sold and net, shares, trades and class. The page takes no date, so past sessions cannot be asked for: the session comes from a second page, the |
Indo Premier (IPOT) | the market's foreign totals in rupiah ( | none | IPOT's latest session summed up by board (regular, negotiated, cash, total) and by foreign investors' side (bought, sold, net), in value, lots and trades; figures of a million and more are abbreviated to two decimals. Like the broker ranking it takes no date and is dated by BBCA's statistics page under the same rules (refused on a trading day from 08:58 to 19:00 WIB), with its own copy of that page. For 2026-11-06 its board values matched idx.co.id's; it does not say which boards its foreign figures cover, and its foreign lots were above idx.co.id's regular-board foreign shares |
computed on this machine: JPL Keplerian elements (Standish, Table 1; Pluto from JPL's archived table), Schlyter (Jupiter, Saturn), Meeus (Moon, nutation, aberration) |
| none | Checked against JPL Horizons and USNO recordings in |
idx.co.id trading-holiday calendar (published as an image per year) | trading holidays | none | Transcribed into |
Kontan RSS ( | news, sentiment | none | Bisnis.com refuses non-browser clients; listed as an opt-in source |
MSN Money | quotes, profile, fundamentals, analyst targets, institutional and fund holders ( | MSN's own public web key (shipped; override with | Tickers resolve to MSN ids through its autosuggest service, filtered to exchange |
MSN Money | stocks insights | same public web key | Rule-based statements, refreshed about once a day (cached for the fundamentals TTL, 6 h by default); peers resolve to tickers through |
MSN Money | screen return windows ( | same public web key | One request, ~887 stocks, cached 15 minutes; values as MSN reports them. MSN's own preset lists are not used (stale or empty for IDX) |
Stockbit | realtime quote, history, live order book + foreign flow; corporate actions and calendar; insider and 5 % holder movements; the full broker summary ( | your own Stockbit session, taken in by | The one source that needs a credential and the one not in the |
Prices from the free sources are delayed as published; Stockbit is realtime for your own account. This tool is for research and tooling; it is not investment advice and not affiliated with IDX, KSEI, Yahoo, Microsoft or Stockbit.
Web terminal
https://ihsg.midoriresearch.com is the market page: IHSG and its session,
breadth, the heavyweights and the most active stocks, refreshed every minute, with
a stock search. It speaks Bahasa Indonesia at / and English at /en/, with the
numbers in each language's style, and follows the device's light or dark setting.
https://ihsg.midoriresearch.com/terminal (English: /en/terminal) runs the same commands in a
browser, no install: brief BBCA, quote BBCA,BBRI, intraday BBCA, returns BBCA BBRI,
screen pe<10,div>5,mcap>5T --sort div, screen --preset top-performers,
insights BBCA, news ASII, ownership ticker BBCA,
ownership foreign, bandar BBCA --daily, bandar screen --preset big-accumulation, bandar broker YP, actions BBCA, foreign BBCA (foreign
flow from IPOT in rupiah, up to 20 sessions), holidays --upcoming, astro,
list --search bank, members, risk TLKM (also growth and valuation), brokers
(market brokers from IPOT's ranking of its latest session, with each member's class and
net), market foreign (market foreign --source ipot: the session's 100 most traded
stocks by their foreign net in rupiah, from the nightly bandar scan, with IPOT's market
totals), and tools (every MCP tool as a button). The idx.co.id
commands (market-wide foreign flow in shares, the calendar, indices, and market brokers --source idx) are CLI and MCP only, because idx.co.id refuses requests from Cloudflare Workers; so,
for now, is ownership institutions, until MSN is checked from the Worker. Typed into the terminal,
any of these, and the CLI-only commands (watch, mcp, ownership import, ...), answer
with a notice instead of an error: where the command runs and why, its CLI line with your
own arguments, and the nearest command the page has. A line pasted from the CLI, such as
idx stocks quote BBCA or idx -o json market overview, runs as the page's own command.
quote with one symbol also draws a price chart (1D, 5D,
1M, 6M, YTD, 1Y, 5Y) with volume, the previous close and a crosshair readout.
The web bandar screen and bandar broker read a scan the Worker runs after
each close, once IPOT publishes the session's broker lists, over the session's
100 most traded stocks; their warnings say when an older session is shown. The
CLI scans live.
A Cloudflare Worker refreshes a D1 snapshot of the whole
IDX board every minute in trading hours and serves /api/* with the exact JSON
envelopes the CLI prints; everything else is fetched on demand and cached. The
Worker lives in web/ and answers on the custom domain only
(workers_dev = false, Host check in the Worker).
The same site serves this README and docs/ as
https://ihsg.midoriresearch.com/docs/, every page also as Markdown at its
.md address (/docs/mcp.md), with
/llms.txt and /llms-full.txt
for language models. They are built from the repository at deploy time.
Ownership data pipeline
Nobody imports the KSEI register by hand, and nothing outside the repository can write it:
.github/workflows/ownership.ymlruns at 08:17, 14:17 and 20:17 WIB. It fetches the IDX "Data Kepemilikan Saham" page through a browser-impersonating client, downloads any new or re-published "Pemegang Saham di Atas 1%" workbook, imports every month withidxto prove it parses, and publishes the files plusindex.jsonand parsed JSON parts to theownership-dataprerelease. idx.co.id blocks cloud networks, GitHub's own runners included, so the job runs on a self-hosted runner (an always-on machine with an ordinary connection; set the repository variableOWNERSHIP_RUNNERtoself-hosted). On GitHub's runners it rebuilds the parts and the snapshot from the files already mirrored, and turns red once the newest register is 45 days old. From the same database it builds a prebuilt SQLite snapshot (snapshot-v{V}.jsonplus a gzip of the file) and publishes it whenever its content changes, the manifest last.The web terminal's Worker reads that release on its minute cron: it checks
index.jsonevery 30 minutes, verifies each part's SHA-256 and loads one part per minute into D1. A month appears only once all its rows are in and the count matches. The newest six months are kept. The Worker has no write endpoint at all.idx ownership syncon your machine installs that snapshot (a few MB, SHA-256 checked, swapped in as one SQLite transaction) and imports any newer month from the raw files; a database holding months the snapshot lacks is kept unless--force.idx ownership import --latesttries idx.co.id and, when Cloudflare refuses it, downloads the same file from the mirror and checks its SHA-256.IDX_OWNERSHIP_SOURCE=mirrorskips idx.co.id.
Development
cargo build
cargo test # recorded fixtures, no network
cargo clippy --all-targets -- -D warnings
./scripts/smoke.sh # live providersArchitecture, conventions and "how to add a provider" live in AGENTS.md. Contributions: CONTRIBUTING.md.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
Live crypto + IDX stock market intelligence for AI agents — 19 tools, no API key.
Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.
Your agent needs markets — prices and fundamentals for listed companies, the filings behind them, crypto, and what the prediction markets put the odds at. **What you can ask for** • "Pull this company's income statement, cash flow and balance sheet for the last 8 quarters." • "What did insiders buy or sell, and when?" • "Snapshot prices for these 50 tickers, then the OHLC history for the three that moved." • "What are the current odds on this event across Kalshi and Polymarket?" • "Screen for companies matching these financial criteria." **How to use it** Point any MCP client at https://mcp.aisa.one/finance/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: prices and snapshots, income statements, balance sheets and cash flows, metrics and ratios, earnings and analyst estimates, filings and line-item search, insider trades, macro interest rates, news, a screener; CoinGecko spot prices, market tables, OHLC, per-venue tickers and trending; Kalshi and Polymarket markets and trades; plus EDINET filings for Japan. **Why this rather than the source** Equities, crypto and event markets behind one account, so a cross-asset question is one conversation. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Read the number here, then ask the same agent what X is saying about the ticker today — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/marketpulse/mcp · /crypto-market-data/mcp · /prediction-market-data/mcp · /stock-pulse/mcp for one slice each.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to access Indonesian stock market data, including real-time quotes, historical data from 2019, and technical analysis for 958 IDX-listed stocks.950 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server exposing Indonesia Stock Exchange (IDX) market data as tools — fundamentals, broker flow, company profiles, and technical analysis via TA-Lib.2-
- AlicenseAqualityCmaintenanceA local MCP server that lets AI agents research Indonesian equities through your own signed-in Stockbit session using read-only tools for company data, financials, price history, analyst consensus, screening, and more.31Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI agents to access Indonesian Stock Exchange market data, including Level 2 orderbooks, bandarmology, financials, chart pattern recognition, and quantitative risk budgeting.112MIT