Local companion
Connect a client
The exact MCP config for Claude Desktop, Claude Code, Codex and Grok. Every client starts the same command, igpilot-local mcp.
Important
Self-installed version only. This page is about the local companion (igpilot-local), which works with a version of IG Pilot you install yourself. The Chrome Web Store version can't talk to the companion and has no Control from Claude desktop switch: connect it through the connector at https://api.igpilot.io/mcp instead.
Every client runs the same thing: the Node that ran install, the companion's cli.js, and the argument mcp. npx igpilot-local install prints both paths for your computer. After a normal npx install they look like this:
| Part | Example | Where it comes from |
|---|---|---|
| Node | /usr/local/bin/node | The Node that ran install (its full path, so a different Node on your PATH doesn't matter) |
| Companion | /Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js | Copied there by install |
| Argument | mcp | Starts the stdio MCP server |
Use the paths install printed, not the examples on this page. The server registers itself as igpilot.
Claude Desktop#
- Open
~/Library/Application Support/Claude/claude_desktop_config.json. On other systems, open yourclaude_desktop_config.json. - Add the
igpilotentry thatinstallprinted. If the file already has"mcpServers", merge it in rather than adding a second one. - Quit and reopen Claude Desktop.
{
"mcpServers": {
"igpilot": {
"command": "/usr/local/bin/node",
"args": [
"/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js",
"mcp"
]
}
}
}Then ask Claude: "call igpilot status".
Claude Code#
Run the command install printed. --scope user makes IG Pilot available in every project:
claude mcp add --scope user igpilot -- "/usr/local/bin/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcpWithout claude on your PATH, install prints the same command through npx:
npx @anthropic-ai/claude-code mcp add --scope user igpilot -- "/usr/local/bin/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcpCheck it with /mcp inside Claude Code, or ask: "call igpilot status".
To remove it later:
claude mcp remove --scope user igpilotCodex#
Note
install prints config for Claude Desktop and Claude Code only. Codex starts the same stdio command: take the two paths from the Claude Desktop entry that install printed.
Add it from a terminal:
codex mcp add igpilot -- "/usr/local/bin/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcpOr add it to ~/.codex/config.toml yourself:
[mcp_servers.igpilot]
command = "/usr/local/bin/node"
args = ["/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js", "mcp"]The Codex app, CLI and IDE extension share that file. Restart Codex, then ask it to call igpilot status.
Some tools can take about two minutes before they answer (see long-running tools). If Codex gives up on them sooner, raise the server's tool timeout in Codex's config.
Grok#
Note
This is xAI's Grok CLI (grok). install doesn't print a Grok command either: take the two paths from the Claude Desktop entry that install printed.
Add it from a terminal. grok mcp add writes to your user config (~/.grok/config.toml) by default, so IG Pilot is available in every project:
grok mcp add igpilot -- "/usr/local/bin/node" "/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js" mcpOr add it to ~/.grok/config.toml yourself:
[mcp_servers.igpilot]
command = "/usr/local/bin/node"
args = ["/Users/you/.igpilot/companion/node_modules/igpilot-local/dist/cli.js", "mcp"]Check it with grok mcp doctor igpilot, or /mcps inside a Grok session. Then ask Grok to call igpilot status.
Grok's default tool timeout is long enough for the long-running tools.
To remove it later:
grok mcp remove igpilotAfter connecting#
- Make sure Settings → Connections → Control from Claude desktop is on in IG Pilot (the self-installed version; the Chrome Web Store version doesn't have it).
- Run
npx igpilot-local doctor. It should end withAll good. - Ask your client to call
status. The server's instructions also tell it to callstatusfirst for context.
Moving or updating Node#
The config points at one Node binary by its full path. If you remove or move that Node (for example after switching versions with a version manager), run npx igpilot-local install again and update the config with the new paths. doctor reports this as Launcher node … is gone.