MCP Server Studio

Spiderbrain MCP server

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

Registry name: ai.spiderbrain/spiderbrain

Publisher
spiderbrain.ai
Runs
Local or hosted
Package
npm
Version
0.2.3
Category
Other
Updated
2026-08-22

Source code on GitHub

Set up Spiderbrain (run locally)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "spiderbrain": {
      "command": "npx",
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>",
        "SPIDERBRAIN_API_KEY": "<SPIDERBRAIN_API_KEY>",
        "SPIDERBRAIN_REGISTRY": "<SPIDERBRAIN_REGISTRY>"
      }
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add spiderbrain -e SPIDERBRAIN_ROOT='<SPIDERBRAIN_ROOT>' -e SPIDERBRAIN_API_KEY='<SPIDERBRAIN_API_KEY>' -e SPIDERBRAIN_REGISTRY='<SPIDERBRAIN_REGISTRY>' -- npx -y spiderbrain@0.2.3 mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "spiderbrain": {
      "command": "npx",
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>",
        "SPIDERBRAIN_API_KEY": "<SPIDERBRAIN_API_KEY>",
        "SPIDERBRAIN_REGISTRY": "<SPIDERBRAIN_REGISTRY>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "spiderbrain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>",
        "SPIDERBRAIN_API_KEY": "<SPIDERBRAIN_API_KEY>",
        "SPIDERBRAIN_REGISTRY": "<SPIDERBRAIN_REGISTRY>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "spiderbrain": {
      "command": "npx",
      "args": [
        "-y",
        "spiderbrain@0.2.3",
        "mcp"
      ],
      "env": {
        "SPIDERBRAIN_ROOT": "<SPIDERBRAIN_ROOT>",
        "SPIDERBRAIN_API_KEY": "<SPIDERBRAIN_API_KEY>",
        "SPIDERBRAIN_REGISTRY": "<SPIDERBRAIN_REGISTRY>"
      }
    }
  }
}

Set up Spiderbrain (hosted url)

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "spiderbrain": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.spiderbrain.ai/mcp",
        "--header",
        "Authorization: <Authorization>"
      ]
    }
  }
}

Claude Code

Run in your terminal:

claude mcp add --transport http spiderbrain https://mcp.spiderbrain.ai/mcp --header 'Authorization: <Authorization>'

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "spiderbrain": {
      "url": "https://mcp.spiderbrain.ai/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "spiderbrain": {
      "type": "http",
      "url": "https://mcp.spiderbrain.ai/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "spiderbrain": {
      "serverUrl": "https://mcp.spiderbrain.ai/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}

Settings

NameRequiredWhat it is
SPIDERBRAIN_ROOTYesAbsolute 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…
SPIDERBRAIN_API_KEYNoOptional. Enables the cloud why-layer used by the sb_ask tool. The structural tools work offline without it.
SPIDERBRAIN_REGISTRYNoOptional. 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.

More other MCP servers