# ihsg-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/fzn0x/idx  
**GitHub Stars:** 278  
**npm Downloads (last month):** 1040  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ihsg-mcp

## Description
MCP server for the Indonesian stock market (IDX / IHSG): quotes, fundamentals, technicals, broker flow, KSEI ownership and news as typed tools. `npx -y ihsg-mcp` runs `idx mcp`; the first run downloads the SHA-256 verified idx binary.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ihsg-mcp": {
    "command": "npx",
    "args": ["-y","ihsg-cli"]
  }
}
```

## Documentation

## 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:

```sh
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.

_Full upstream README: https://allmcps.com/mcp/ihsg-mcp/readme_

