Claude Code Explorer MCP · nirholas — Claude Code MCP server: what it does
An MCP server that exposes the Claude CLI source tree: browse tools and commands, search code. Handy when you want to see how the CLI works.
claude mcp add claude-code-explorer-mcp -- npx -y claude-code-explorer-mcpWhat Claude Code Explorer MCP does
The server gives your agent local access to the Claude CLI source tree. It can list tools and commands, run code searches, and open files without leaving the chat.
Install is a single command through npx; there is no repository to clone. The package is pulled from npm on each launch, so you need a working Node.js and registry access.
One thing to know: nirholas/fresh-start is the former mirror of the 31 March 2026 Claude source leak. Its contents were removed after Anthropic's DMCA notice, and no Anthropic code lives there. The author warns that copies of the leak import internal packages absent from the public npm registry, while malicious packages get published under those same names. Pulling dependencies from such a copy can run arbitrary code on your machine. Get this MCP server from npm and leave the leak copies alone.
What it helps with
- list the tools and commands the Claude CLI ships with
- search the source tree for a specific file or function
- understand how a CLI command works without leaving the chat
- check what a given agent command actually does
Example prompts for the agent
- List the tools in the Claude CLI
- Find where this command is handled in the source
- Open the file that defines this command and explain it
How to install Claude Code Explorer MCP
Platform CLI
claude mcp add claude-code-explorer-mcp -- npx -y claude-code-explorer-mcpPlatform CLI
codex mcp add mcp-server -- npx -y claude-code-explorer-mcpConfig file
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"claude-code-explorer-mcp"
]
}
}
}Config file
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"claude-code-explorer-mcp"
]
}
}
}Platform CLI
gemini mcp add mcp-server npx -y claude-code-explorer-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Claude Code Explorer MCP
How do I install Claude Explorer MCP in Claude Code?
Run claude mcp add claude-code-explorer-mcp -- npx -y claude-code-explorer-mcp. The server starts through npx, so you do not install the package separately.
What does Claude Explorer MCP do?
It gives the agent access to the Claude CLI source tree: listing tools and commands, searching code, and reading files inside the chat.
Is it safe to install?
The server itself comes from npm. Copies of the Claude leak are a different story: they pull internal packages whose names are used on npm to ship malicious code.
Similar MCP servers
All MCP servers for Agent setup: memory, context, orchestration →Claude Code Explorer MCP by other authors comes first.