About
Claude Code MCP Server enables running Claude Code CLI in one-shot mode with automatic permission bypass. It provides a unified `claude_code` tool that lets AI assistants offload complex, multi-step file operations and coding tasks to Claude Code. Key features: - Execute Claude Code with permissions automatically bypassed using `--dangerously-skip-permissions` - Handle complex, multi-step file edits and operations that other AI editors struggle with - Queue multiple commands for efficient context management and reduced compactions - Direct file editing and git operations without permission interruptions - Customizable Claude CLI binary via `CLAUDE_CLI_NAME` environment variable - Cost-effective offloading of file operations and git tasks to avoid using expensive models - Works with Claude Desktop, Cursor, Windsurf, and other MCP clients
README
Claude Code MCP Server
[](https://www.npmjs.com/package/@steipete/claude-code-mcp) [](/CHANGELOG.md)
An MCP (Model Context Protocol) server that allows running Claude Code in one-shot mode with permissions bypassed automatically.
Did you notice that Cursor sometimes struggles with complex, multi-step edits or operations? This server, with its powerful unified claude_code tool, aims to make Claude a more direct and capable agent for your coding tasks.
Overview
This MCP server provides one tool that can be used by LLMs to interact with Claude Code. When integrated with Claude Desktop or other MCP clients, it allows LLMs to:
--dangerously-skip-permissions)Benefits
Prerequisites
-dangerously-skip-permissions accepted.Configuration
Environment Variables
CLAUDE_CLI_NAME: Override the Claude CLI binary name or provide an absolute path (default: claude). This allows you to use a custom Claude CLI binary. This is useful for:CLAUDE_CLI_NAME=claude-custom or CLAUDE_CLI_NAME=claude-v2
- Absolute path: CLAUDE_CLI_NAME=/path/to/custom/claude
Relative paths (e.g., ./claude or ../claude) are not allowed and will throw an error.
When set to a simple name, the server will look for the specified binary in:
1. The system PATH (instead of the default claude command)
Note: The local user installation path (~/.claude/local/claude) will still be checked but only for the default claude binary.MCP_CLAUDE_DEBUG: Enable debug logging (set to true for verbose output)Installation & Usage
The recommended way to use this server is by installing it by using npx.
"claude-code-mcp": {
"command": "npx",
"args": [
"-y",
"@steipete/claude-code-mcp@latest"
]
},
To use a custom Claude CLI binary name, you can specify the environment variable:
"claude-code-mcp": {
"command": "npx",
"args": [
"-y",
"@steipete/claude-code-mcp@latest"
],
"env": {
"CLAUDE_CLI_NAME": "claude-custom"
}
},
Important First-Time Setup: Accepting Permissions
Before the MCP server can successfully use the claude_code tool, you must first run the Claude CLI manually once with the --dangerously-skip-permissions flag, login and accept the terms.
This is a one-time requirement by the Claude CLI.
npm install -g @anthropic-ai/claude-code
claude --dangerously-skip-permissions
Follow the prompts to accept. Once this is done, the MCP server will be able to use the flag non-interactively.
macOS might ask for all kind of folder permissions the first time the tool runs and the first run then fails. Subsequent runs will work.
Connecting to Your MCP Client
After setting up the server, you need to configure your MCP client (like Cursor or others that use mcp.json or mcp_config.json).
MCP Configuration File
The configuration is typically done in a JSON file. The name and location can vary depending on your client.
#### Cursor
Cursor uses mcp.json.
~/.cursor/mcp.json%APPDATA%\\Cursor\\mcp.json~/.config/cursor/mcp.json#### Windsurf
Windsurf users use mcp_config.json
~/.codeium/windsurf/mcp_config.json%APPDATA%\\Codeium\\windsurf\\mcp_config.json~/.config/.codeium/windsurf/mcp_config.json(Note: In s
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support