claude-code-mcp Project
MCP Server connects with claude code local command.
Overview
Claude Code MCP is a server project designed to interface with the Claude Code SDK, providing various tools for code analysis and manipulation.
To use Claude Code MCP, clone the repository, install the necessary dependencies, set up environment variables, and integrate it with your MCP Host application settings.
- Tool requests handling in JSON format. - Base64 encoding for input processing to handle special characters. - Command generation and execution for various code-related tasks. - Returns results in JSON format.
- Explaining code snippets for better understanding.
- Reviewing code for quality assurance.
- Fixing bugs in existing code.
- Editing code based on specific instructions.
- Generating tests for code validation.
- Simulating command execution for testing purposes.
Add to your AI client
Use these steps to connect claude-code-mcp Project in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"claude-code-mcp-kunihiros": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"claude-code-mcp-kunihiros": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"claude-code-mcp-kunihiros": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"claude-code-mcp-kunihiros": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"claude-code-mcp-kunihiros": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"claude-code-mcp-kunihiros": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-claude-code-mcp-kunihiros"
]
}
}
}FAQ
What programming language is used for the server?
The server is implemented using Node.js.
Is there a specific version of Node.js required?
Yes, it has been tested with Node.js v22.14.0.
Can I use my own queries?
Yes, the server allows sending custom queries with context.