C

Codeloupe MCP

by ndhkaeru · io.github.ndhkaeru/codeloupe-mcp

Enables coding agents to inspect files, search text, compare directories, read symbols, and apply structured edits against large codebases through bounded, local-first MCP tools.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-ndhkaeru-codeloupe-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ndhkaeru/codeloupe-mcp"
      ],
      "env": {
        "CODELOUPE_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_BINARY": "<VALUE>",
        "CODELOUPE_MCP_INDEX_DIR": "<VALUE>",
        "CODELOUPE_MCP_WORKSPACE": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MODE": "ask",
        "CODELOUPE_MCP_WORKSPACES": "<VALUE>",
        "CODELOUPE_MCP_WRITE_ROOTS": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE": "<VALUE>",
        "CODELOUPE_MCP_WALK_THREADS": "<VALUE>",
        "CODELOUPE_MCP_TANTIVY_ENABLED": "true",
        "CODELOUPE_MCP_INDEX_MAX_ENTRIES": "300000",
        "CODELOUPE_MCP_INDEX_MIN_FREE_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES": "<VALUE>",
        "CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES": "20000",
        "CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS": "60",
        "CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES": "16"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CODELOUPE_WORKSPACE No Legacy alias for explicit workspace roots; distinct roots are retained alongside the `CODELOUPE_MCP_*` forms.
CODELOUPE_MCP_BINARY No npm wrapper override for a custom local binary path.
CODELOUPE_MCP_INDEX_DIR No Override the persistent index cache directory.
CODELOUPE_MCP_WORKSPACE No Compatibility singular form of `CODELOUPE_MCP_WORKSPACES`; it also accepts a platform path list.
CODELOUPE_MCP_INDEX_MODE No Workspace indexing policy: `ask` (default), `auto`, or `off`. Default: ask
CODELOUPE_MCP_WORKSPACES No Explicit workspace roots encoded as a platform path list (`;` on Windows, `:` on Unix).
CODELOUPE_MCP_WRITE_ROOTS No Additional filesystem roots that write tools may modify, encoded as a platform path list (`;` on Windows, `:` on Unix).
CODELOUPE_MCP_INDEX_ADVICE No Set to `timeout_only` to suppress successful-call advice while retaining timeout advice. Defaults to all eligible advice moments.
CODELOUPE_MCP_WALK_THREADS No Filesystem walk parallelism. Values are clamped to `1..=6`.
CODELOUPE_MCP_TANTIVY_ENABLED No Enable/disable the Tantivy content sidecar. Defaults to `true`. Default: true
CODELOUPE_MCP_INDEX_MAX_ENTRIES No Maximum entries in one metadata scan. Defaults to `300000`. Default: 300000
CODELOUPE_MCP_INDEX_MIN_FREE_BYTES No Minimum free space retained on the index volume. Defaults to 5 GiB; the effective floor is the larger of this value and 10% of the volume.
CODELOUPE_MCP_INDEX_MAX_TOTAL_BYTES No Maximum total persistent index storage. Defaults to 2 GiB and is enforced before writes as well as during GC.
CODELOUPE_MCP_INDEX_ADVICE_MIN_FILES No Minimum observed files before index advice is eligible. Defaults to `20000`. Default: 20000
CODELOUPE_MCP_INDEX_MAX_SCAN_SECONDS No Maximum duration of one metadata scan. Defaults to `60`. Default: 60
CODELOUPE_MCP_INDEX_MAX_LOADED_WORKSPACES No Maximum workspace index runtimes retained in memory. Defaults to `16`; least-recently-used inactive runtimes are evicted without deleting their on-disk indexes. Default: 16

Similar servers