Connect AI agents over MCP

The MCP server is a subcommand of the CLI (spiderhead mcp). It runs locally over stdio and exposes the same tools to AI agents. Use the absolute path to the built binary.

Before you start: build the CLI as in the install guide and choose a client that supports local stdio servers. Keep the absolute path to target/release/spiderhead. See requirements for the required and optional components.
  1. Claude Code

    Register the built CLI.

    bash
    claude mcp add spiderhead -- /absolute/path/to/spiderhead/target/release/spiderhead mcp
  2. Claude Desktop and other stdio clients

    Add the server to the client's MCP configuration.

    json
    {
      "mcpServers": {
        "spiderhead": {
          "command": "/absolute/path/to/spiderhead/target/release/spiderhead",
          "args": [
            "mcp",
            "--profile",
            "full"
          ]
        }
      }
    }
  3. Codex and Cursor

    spiderhead mcp install previews the change for claude-code, claude-desktop, codex or cursor; --dry-run writes nothing, and a backup is made before any write.

    bash
    spiderhead mcp install --client codex --dry-run
    spiderhead mcp install --client cursor --dry-run
  4. Profiles

    --profile full exposes every tool; audit, infra, quick-check and router expose smaller sets for focused sessions.

    bash
    spiderhead mcp --profile router
  5. Start from a project

    Projects keep scope, crawl policy, scans and history, so the next agent continues from the saved project instead of chat history.

    bash
    spiderhead project new --directory ./shop --target https://example.com/

Edit this page on GitHubUpdated 12.10.2026