indexgap mcp

command

Serve the package as MCP tools over stdio.

A Model Context Protocol server in the standard library: JSON-RPC 2.0 over stdin and stdout, the initialize handshake (protocol revisions 2024-11-05 to 2025-11-25) and the stateless 2026-07-28 revision with server/discover. Tools wrap check, doctor, diff, cite --import-answers, markets, integrations, analytics, listings, sitemap, prompts lint, profiles and the skill list, run the command in-process and return its JSON report. Reports go to out_dir, or to a fresh temporary directory; nothing else is written. Paths in arguments and out_dir must lie inside the folder the server starts in or a folder listed in INDEXGAP_MCP_ROOTS; the key store and .env files are never read. Anything that touches the network (doctor --live and the probes, a sitemap URL, listings and cite fetch, integrations checks, the Baidu push) is refused unless the call passes send: true. stdout carries only the protocol: everything the commands print goes to the log in the result or to stderr.

Connecting it

Claude Code:

claude mcp add --scope user indexgap -- uvx indexgap mcp

Claude Desktop, claude_desktop_config.json; Cursor, .cursor/mcp.json or ~/.cursor/mcp.json:

{
  "mcpServers": {
    "indexgap": {"command": "uvx", "args": ["indexgap", "mcp"]}
  }
}

VS Code, .vscode/mcp.json:

{
  "servers": {
    "indexgap": {"type": "stdio", "command": "uvx", "args": ["indexgap", "mcp"]}
  }
}

With the package installed by pipx, use "command": "indexgap", "args": ["mcp"]. Pass absolute paths in tool arguments: the server resolves relative ones against the directory the client starts it in. The server reads and writes only inside that directory; list other folders (Search Console exports in Downloads, a report folder) in INDEXGAP_MCP_ROOTS, separated like PATH, in the server's env. A server started from the home directory or the filesystem root without INDEXGAP_MCP_ROOTS warns about it once on stderr. The key store and .env files are never read through the server, and key values in results show as ***. Keys for integrations and cite come from the server's environment, as on the command line.

A call

{"name": "check", "arguments": {"root": "/srv/lumenly/out",
  "site": "https://lumenly.example", "out_dir": "/tmp/lumenly-report"}}

The result's structuredContent carries exit_code, log (what the command printed), files written to out_dir and data, the report itself. An argument that would use the network without send: true comes back as a tool error that says so.

Usage

usage: indexgap mcp [-h]

options:
  -h, --help  show this help message and exit

The rest of the pipeline

← skills