Ihsg MCP logo

Ihsg MCP

Typed MCP tools for Indonesian stock quotes, fundamentals, technical analysis, ownership, broker flow, and market news.

Install Ihsg MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ihsg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ihsg-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio ihsg-mcp -- npx -y ihsg-cli

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

npx -y ihsg-cli

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ihsg-mcp connects AI agents to Indonesian stock market data for IDX and IHSG analysis through typed MCP tools. It covers delayed quotes, historical and intraday prices, fundamentals, technical indicators, broker activity, KSEI ownership, corporate actions, and news. Run it with `npx -y ihsg-mcp`, which launches `idx mcp` and downloads a SHA-256-verified binary on first use. Reach for it when an agent needs structured Indonesian market data without API keys, with cached responses available for offline use.

Use cases

  • Query delayed IDX quotes for selected Indonesian tickers
  • Compare stock returns and risk against the IHSG
  • Inspect KSEI ownership changes for listed companies
  • Analyze broker flow and foreign buying or selling
  • Summarize Indonesian market news and corporate actions

Key features

  • Typed MCP tools backed by the idx command set
  • Quotes, historical prices, and intraday OHLCV data
  • Fundamentals, earnings, dividends, and returns analysis
  • Broker flow, foreign flow, and KSEI ownership data
  • Cached responses with offline support
  • JSON and JSON Lines output with documented schemas

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22h ago via OSV.dev · ihsg-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars278Stargazers on the source repository.
npm downloads1kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Ihsg MCP works

What ihsg-mcp does

ihsg-mcp exposes the IDX command set as typed Model Context Protocol tools for AI agents. Its data scope includes Indonesian equities and the IHSG index, with commands for quotes, price history, intraday bars, company profiles, financial statements, earnings, dividends, returns, technical analysis, broker activity, foreign flow, ownership, corporate actions, and market news.

The server returns the same structured JSON used by the command-line interface. This makes it suitable for agents that need to inspect market data and pass results into further analysis without parsing terminal tables. The CLI also supports JSON Lines output, documented schemas, meaningful exit codes, and ticker input from standard input.

How it works

Running npx -y ihsg-mcp starts idx mcp. The npm launcher obtains a platform-specific static binary on its first invocation and verifies the download against the release SHA-256 checksums. The underlying binary runs on Linux, macOS, and Windows and does not require a language runtime.

Data is collected through provider-specific adapters. Prices and fundamentals come from Yahoo Finance and MSN Money; IDX sources provide market summaries, foreign flow, member activity, indices, and corporate-action information. KSEI monthly registers supply ownership data, while Indo Premier provides broker summaries and an alternative foreign-flow source. Kontan and CNBC Indonesia feeds provide news. Cached responses use endpoint-specific time-to-live settings, and offline mode can serve cached data when the network is unavailable.

Setup and configuration

Start the server directly with:

Terminal
npx -y ihsg-mcp

For a persistent installation, install the CLI package globally with npm install -g ihsg-cli, then register the installed idx executable with an MCP client using the mcp argument. Other supported installation paths include Cargo, the project install script on Linux and macOS, and Nix. Nix users can run idx mcp setup to print the resolved executable path for client configuration.

The first npm invocation downloads the matching binary for the host platform. The binary is cached beside the launcher or in a per-user cache when the global npm directory cannot be written. No API keys are required for the listed market-data sources.

Tools and capabilities

Available command families include:

  • Retrieve delayed quotes for one or more symbols, including IHSG with ^JKSE.
  • Query OHLCV history and latest-session intraday bars, with summaries and VWAP for intraday data.
  • Inspect company profiles, income statements, balance sheets, cash flow, earnings, dividends, and splits.
  • Compare returns against IHSG and calculate CAGR, volatility, drawdown, and related performance measures.
  • Analyze technical indicators, broker buying and selling, foreign flow, KSEI ownership, corporate actions, and financial news.
  • Synchronize monthly ownership files into local SQLite data for holder and ownership-change queries.

Limitations and notes

Yahoo Finance intraday data is approximately 10 minutes behind the market and does not require login. A Stockbit provider is available for realtime intraday bars. Ownership information comes from monthly KSEI registers and covers holders above 1 percent. Market responses can be delayed, and offline operation depends on previously populated endpoint caches.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ihsg MCP

ihsg-mcp is an MCP server that connects AI agents to Indonesian IDX and IHSG market data. Its main tools provide quotes, historical and intraday prices, fundamentals, technical analysis, broker flow, foreign flow, KSEI ownership, corporate actions, and news through the `idx mcp` command.

Run `npx -y ihsg-mcp` to start it without a persistent install. The npm launcher downloads and SHA-256-verifies a platform-specific binary on first use. You can also install `ihsg-cli` globally with npm or Cargo and register the resulting `idx` executable with the `mcp` argument.

No, the listed market-data sources do not require API keys. The server retrieves prices and fundamentals from Yahoo Finance and MSN Money, with additional data from IDX, KSEI, Indo Premier, Kontan, and CNBC Indonesia.

Yes, it can serve cached responses in offline mode. Responses are cached with endpoint-specific TTLs, so offline results depend on data that was previously retrieved and stored.

Not by default. Yahoo Finance intraday bars are about 10 minutes delayed, while a Stockbit provider is available for realtime intraday bars. Quote output can also identify delayed data and the market status.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewIhsg MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ihsg-mcp?style=directory)](https://allmcps.com/mcp/ihsg-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/ihsg-mcp"><img src="https://allmcps.com/api/badge/ihsg-mcp?style=directory" alt="Ihsg MCP on AllMCPs" /></a>