Skip to main content
Choose the setup method that matches your client. All methods use the STDIO transport and the same CLAUDE_CODE_SRC_ROOT environment variable to locate the source.
The quickest way to get started. No cloning required — npx pulls the published package on first run.
claude mcp add claude-code-explorer -- npx -y claude-code-explorer-mcp
Claude Code registers the server in your MCP config. The next time you open a session, the 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 built dist/, set CLAUDE_CODE_SRC_ROOT explicitly at registration time:
claude mcp add claude-code-explorer \
  -e CLAUDE_CODE_SRC_ROOT=/path/to/src \
  -- node /path/to/mcp-server/dist/index.js
This is useful when you install from npm but want to explore a local clone of the source.

Remove the server

claude mcp remove claude-code-explorer

Environment variables

VariableDefaultDescription
CLAUDE_CODE_SRC_ROOT../src relative to dist/Path to the Claude Code src/ directory
PORT3000HTTP server port (HTTP mode only)
MCP_API_KEY(none)Bearer token for HTTP authentication (optional)

Build docs developers (and LLMs) love