Claude Code Explorer MCP logo

Claude Code Explorer MCP

Browse Claude Code CLI source with MCP tools for searching, architecture review, and inspecting tools and commands.

Install Claude Code Explorer MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "claude-code-explorer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "warrioraashuu-codemaster"
      ],
      "env": {
        "CLAUDE_CODE_SRC_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Claude Code Explorer MCP MCP server exposes the Claude Code CLI source tree through MCP tools for interactive code exploration. It can enumerate agent tools and slash commands, read selected source files, search the repository, browse directories, and provide an architecture overview. Reach for it when you need to understand how Claude Code is organized or trace a specific tool, command, or subsystem. It runs over stdio and supports configuration through npm or a locally built checkout.

Use cases

  • Inspect Claude Code agent tool implementations
  • Trace slash command behavior to source files
  • Search for permission checks across the source tree
  • Review the CLI architecture and subsystems
  • Compare implementations after locating relevant files

Key features

  • Lists agent tools and slash commands
  • Reads tool, command, and source-file contents
  • Searches the complete source tree
  • Browses src/ directories
  • Provides a high-level architecture overview
  • Supports a configurable source root

Tools8

What Claude Code Explorer MCP lets your agent do. Expand a tool for its parameters.

Self-reported~109 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

13/13 checks healthy over the last 40d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · warrioraashuu-codemaster (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3.4kStargazers on the source repository.
npm downloads55Package downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Claude Code Explorer MCP works

What Claude Code Explorer MCP MCP server does

Claude Code Explorer MCP MCP server makes the src/ directory from the repository available to MCP-compatible clients. The repository presents this source as the leaked TypeScript implementation of Anthropic's Claude Code CLI, including its tools, commands, services, UI components, and supporting subsystems.

The server is intended for source inspection rather than for running Claude Code features. An agent can start with a catalog of available tools or slash commands, locate relevant files, search for symbols or text, and then read the implementation. It also exposes a higher-level architecture description to help connect individual files to larger subsystems.

Typical questions include how BashTool works, where permission checks occur, how a slash command is implemented, or how the MCP and bridge subsystems fit together.

How it works

The MCP process reads source files under a configured Claude Code source root and returns structured results to the connected client. Its interface separates discovery from inspection: listing operations identify tools, commands, or directories; source-reading operations return file contents; and search operations locate matches across the source tree.

The available interface includes eight tools:

  • list_tools finds the agent tools and their source files.
  • list_commands finds slash commands and their source files.
  • get_tool_source reads a selected agent tool.
  • get_command_source reads a selected slash command.
  • read_source_file reads a file by path under src/.
  • search_source searches across the source tree.
  • list_directory browses directories under src/.
  • get_architecture returns a high-level architecture overview.

Setup and configuration

Claude Code Explorer MCP MCP server can be installed from npm as warrioraashuu-codemaster, or built from the repository. The npm setup registers the server with Claude Code through claude mcp add and runs it with npx.

For a source checkout, clone the repository, enter mcp-server, run npm install, build with npm run build, and register the resulting dist/index.js with an absolute path. The documented configuration uses a stdio server with Node.js.

Set CLAUDE_CODE_SRC_ROOT when the source is stored somewhere other than the server's expected location. VS Code, Claude Desktop, and Cursor examples pass this variable to the server and point it at the repository's src/ directory. The server can be removed from Claude Code with claude mcp remove.

Tools and capabilities

Use the listing tools to map the repository before opening individual files. Use search_source for cross-cutting questions, such as locating permission checks or references to a subsystem. Once a relevant path is known, read_source_file, get_tool_source, or get_command_source can retrieve the implementation directly.

get_architecture is useful at the beginning of an investigation or when a file-level result needs broader context. The repository documentation identifies major areas including tools, commands, services, bridges, permissions, plugins, skills, tasks, memory, voice, and state management.

Limitations and notes

Claude Code Explorer MCP MCP server is limited to exploring the source exposed under the configured source root. The documented source-file reader is scoped to src/, so it should not be treated as a general filesystem browser.

Its documented role is reading, searching, listing, and explaining the checked-out source.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Claude Code Explorer MCP

Claude Code Explorer MCP is an MCP server that connects MCP-compatible clients to the Claude Code CLI source tree. Its main tools list agent tools and slash commands, read their source, search the repository, browse src/ directories, inspect files, and return a high-level architecture overview for code investigation.

Install it from npm with `npx -y warrioraashuu-codemaster`, then register it with Claude Code using `claude mcp add`. Alternatively, clone the repository, install and build the `mcp-server` package, and register its generated `dist/index.js` file.

Yes, the README provides a Cursor configuration. Add the server to `~/.cursor/mcp.json` using the documented stdio command, and set `CLAUDE_CODE_SRC_ROOT` to the repository's `src/` directory when needed.

Set `CLAUDE_CODE_SRC_ROOT` to the desired source directory when registering or configuring the server. The documented example points it to `/path/to/src`, while client configurations use the workspace or checkout path.

You can search across the entire exposed source tree with `search_source`. Use it to locate implementations, symbols, or references such as permission checks, then read matching files or request a specific tool or command's source.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewClaude Code Explorer MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/claude-code-explorer-mcp?style=directory)](https://allmcps.com/mcp/claude-code-explorer-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/claude-code-explorer-mcp"><img src="https://allmcps.com/api/badge/claude-code-explorer-mcp?style=directory" alt="Claude Code Explorer MCP on AllMCPs" /></a>