← Back to directory
C

Claude Code Source

Community
Full restoration of Claude Code source from npm package, including all native modules.
GitHub source repository ↗
★ 375 Stars Category · Dev Tools Popular Source revision 431056a3ed6a
26FMRS · D
Reliability
4/20
Security and permissions
4/20
Maintenance
5/20
Documentation
8/20
Setup experience
5/20

This MCP server provides a full suite of tools by restoring Claude Code's source code, but due to its unofficial nature, reliability and legal compliance should be carefully evaluated.

Read the FMRS scoring method →

claude-code-source is a project that restores the source code of Claude Code from the @anthropic-ai/claude-code npm package, aiming to fully recover all native modules, internal dependencies, and type definitions without feature cuts. It can run locally and provides an MCP server mode. Note: This is not an official Anthropic server, but a third-party restoration of publicly available content.

Tools

mcp
Starts the MCP server mode, allowing it to be used as an MCP server.

Setup

  1. Install Bun (>=1.3.10)
  2. Clone the repository and navigate into it
  3. Run bun install
  4. Run bun run mcp to start the MCP server

Fit and risk

Best for

  • Developers
  • Researchers

Not for

  • General users
  • Those needing stable official support

Required permissions

  • File system access (for code operations)
  • Command execution (bash)
  • Network access (for tools like WebFetch)

Risks and side effects

  • Non-official project, potentially unstable
  • Legal risks due to proprietary code usage
  • Feature completeness may differ from official releases

Troubleshooting

  1. Check that Bun version meets requirements; ensure dependencies are installed; verify configuration directory permissions.

Use cases

Research Claude Code source code
Run a local variant of Claude Code
Develop or learn from the code

Supported clients

Claude DesktopPartial support