# Claude Code Explorer MCP

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 6235
- Author: nirholas
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nirholas/fresh-start/tree/HEAD/mcp-server
- Updated: 2026-10-10
- HTML: https://affpapa.org/en/nevibecode/mcp/claude-code-explorer-mcp

## What it 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.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add claude-code-explorer-mcp -- npx -y claude-code-explorer-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-server -- npx -y claude-code-explorer-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "claude-code-explorer-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "claude-code-explorer-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-server npx -y claude-code-explorer-mcp
```

## When to use it
- 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
- 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

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221

## Other versions with the same name
- [Claude Code Explorer MCP · codeaashu](https://affpapa.org/en/nevibecode/mcp/codeaashu-claude-code-explorer-mcp.md) — ★ 3409

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
