Back to Home
steipete icon

claude-code-mcp

by steipete

Overview

Provides an MCP server to allow LLMs to directly invoke Claude Code CLI for complex coding, file system, and Git operations, bypassing interactive permission prompts.

Installation

Run Command
npx -y @steipete/claude-code-mcp@latest

Environment Variables

  • CLAUDE_CLI_NAME
  • MCP_CLAUDE_DEBUG

Security Notes

The server's core function involves executing the Claude CLI with '--dangerously-skip-permissions', explicitly granting broad system access to the underlying LLM. While this is a documented feature and intended behavior, it inherently poses a significant security risk if not deployed in a controlled environment or if untrusted prompts are allowed. The `spawnAsync` function uses `shell: false`, mitigating direct shell injection vulnerabilities from command arguments. Input validation for `CLAUDE_CLI_NAME` prevents relative path execution, which is a good safeguard. However, a malicious prompt targeting the Claude CLI itself or the broader system via Claude's capabilities remains a possibility. Users must be fully aware of the elevated permissions granted.

Similar Servers

Stats

Interest Score99
Security Score6
Cost ClassHigh
Avg Tokens7500
Stars935
Forks105
Last Update2025-11-25

Tags

MCPClaude CodeAI AgentCoding ToolsCLI Automation