CLAUDE_CODE_SRC_ROOT environment variable to locate the source.
- Claude Code (npm)
- Claude Code (from source)
- VS Code
- Claude Desktop
- Cursor
The quickest way to get started. No cloning required — Claude Code registers the server in your MCP config. The next time you open a session, the
npx pulls the published package on first run.claude-code-explorer server is available.When installed from npm,
CLAUDE_CODE_SRC_ROOT defaults to the bundled src/ snapshot inside the npm package. To point at a different source tree, use the custom source path command below.Custom source path
If you want to point the server at a source tree that is not co-located with the builtdist/, set CLAUDE_CODE_SRC_ROOT explicitly at registration time:
Remove the server
Environment variables
| Variable | Default | Description |
|---|---|---|
CLAUDE_CODE_SRC_ROOT | ../src relative to dist/ | Path to the Claude Code src/ directory |
PORT | 3000 | HTTP server port (HTTP mode only) |
MCP_API_KEY | (none) | Bearer token for HTTP authentication (optional) |