Spiderbrain

v0.2.3
ai.spiderbrain/spiderbrain Checked 2 days ago Published 3 months ago

Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.

Values you need

VariableWhat it is
SPIDERBRAIN_ROOTrequired Absolute path to the repository to serve, which must already contain a committed .spiderbrain/ folder. Set this: an MCP client's working directory is usually not your repository, and without it the server serves the working directory and reports that no understanding layer was found. Equivalent to p
SPIDERBRAIN_API_KEYoptional secret Optional. Enables the cloud why-layer used by the sb_ask tool. The structural tools work offline without it.
SPIDERBRAIN_REGISTRYoptional Optional. Base URL of the public brain registry this server consults on the first tool call when the repository has no committed .spiderbrain/ folder. Defaults to https://spiderbrain.ai/registry.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add spiderbrain -e 'SPIDERBRAIN_ROOT=<SPIDERBRAIN_ROOT>' -- npx -y spiderbrain@0.2.3 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "spiderbrain": {
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "spiderbrain": {
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "SPIDERBRAIN_ROOT",
      "id": "spiderbrain-root",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "spiderbrain": {
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "command": "npx",
      "env": {
        "SPIDERBRAIN_ROOT": "${input:spiderbrain-root}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.spiderbrain]
command = "npx"
args = ["-y", "spiderbrain@0.2.3", "mcp"]
env = { "SPIDERBRAIN_ROOT" = "<SPIDERBRAIN_ROOT>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http spiderbrain https://mcp.spiderbrain.ai/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "spiderbrain": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.spiderbrain.ai/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "spiderbrain": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://mcp.spiderbrain.ai/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "spiderbrain": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://mcp.spiderbrain.ai/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.spiderbrain]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.spiderbrain.ai/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: SPIDERBRAIN_ROOT. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: sb_blast, sb_impact, sb_path, sb_keystones, sb_map, sb_ask.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json