claude-code-mcp
by KunihiroS·★ 34·Score 44
An MCP server that bridges less capable LLMs with Claude Code by exposing code analysis tools via stdio.
Overview
The claude-code-mcp server acts as an intermediary that allows other applications to leverage Claude Code's capabilities through the Model Context Protocol. It receives JSON-formatted requests via stdio, processes them using Base64 encoding to handle special characters, executes the appropriate Claude Code commands, and returns results. The implementation uses Node.js with the MCP SDK, focusing on stability and flexibility when handling natural language text that might contain special characters.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this MCP server when you need to integrate Claude Code's analysis capabilities into MCP-compatible hosts without directly using the CLI.
When NOT to choose this
Don't choose this if you need direct CLI access to Claude Code, prefer solutions without dependency on Claude Code installation, or require more comprehensive code analysis tools.
Tools this server exposes
7 tools extracted from the READMEexplain_codeProvides a detailed explanation of the given code.
review_codeReviews the given code.
fix_codeFixes bugs or issues in the given code.
edit_codeEdits the given code based on instructions.
test_codeGenerates tests for the given code.
simulate_commandSimulates the execution of a given command.
your_own_querySends a custom query with context.
Comparable tools
Installation
Installation
**Using npx (Recommended)**
npx @kunihiros/claude-code-mcp**Global Installation**
npm install -g claude-code-mcpConfiguration
Add to your MCP Host settings (e.g., Claude Desktop):
"claude-code-server": {
"command": "npx",
"args": [
"-y",
"@kunihiros/claude-code-mcp"
],
"env": {
"CLAUDE_BIN": "/path/to/your/claude/executable",
"LOG_LEVEL": "info"
},
"disabled": false
}Set the CLAUDE_BIN environment variable to the full path of your Claude CLI executable.
FAQ
- What is the purpose of this MCP server?
- It allows less capable LLMs and applications to leverage Claude Code's code analysis capabilities through the MCP protocol.
- Does this work with Claude Desktop?
- Yes, it's designed to work with Claude Desktop and other MCP hosts by providing integration through the stdio transport method.
Compare claude-code-mcp with
Last updated · Auto-generated from public README + GitHub signals.