Set up idx-mcp
MarkdownOr set it up yourself:
1. Get the server
Section titled “1. Get the server”Nothing to install if your client can run npx: the configs below use
npx -y idx-mcp. Otherwise install the binary once and use idx-mcp as the
command:
cargo install idx-mcp # Rust 1.89+nix profile install github:0xrsydn/idx-cli#idx-mcp2. Add it to your client
Section titled “2. Add it to your client”Run in a terminal
claude mcp add idx -- npx -y idx-mcp~/.codex/config.toml
[mcp_servers.idx]command = "npx"args = ["-y", "idx-mcp"]~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{ "mcpServers": { "idx": { "command": "npx", "args": ["-y", "idx-mcp"] } }}~/.config/opencode/opencode.json (or opencode.json in a project)
{ "$schema": "https://opencode.ai/config.json", "mcp": { "idx": { "type": "local", "command": ["npx", "-y", "idx-mcp"], "enabled": true } }}~/.pi/agent/mcp.json
{ "mcpServers": { "idx": { "command": "npx", "args": ["-y", "idx-mcp"], "exposure": "direct" } }}~/.hermes/config.yaml
mcp_servers: idx: command: npx args: ["-y", "idx-mcp"] enabled: trueAny MCP client that runs stdio servers
command: npxargs: -y idx-mcp# or the command idx-mcp, if installed# add --allow-sync to expose ownership_syncThe Claude Code, Codex, opencode, pi and Hermes setups are the ones
tests/agents/agent-smoke.sh drives with the real agents.
3. Get ownership data
Section titled “3. Get ownership data”Ownership tools read a local database. Fill it once:
npx -y idx-cli ownership sync # or: idx ownership syncOr start the server with --allow-sync so the agent can call
ownership_sync itself.
4. Check it works
Section titled “4. Check it works”Ask your agent:
What is BBCA’s free float, and who is its largest holder?
It should call get_shareholders and answer with the free float and
DWIMURIA INVESTAMA ANDALAN, the largest holder.
See all tools.