Claude Code

This is an open-source MCP server that allows running Claude Code in one-shot mode with permissions bypassed automatically.

Features

  • 🚀 One-shot mode execution of Claude Code with bypassed permissions
  • 🛠️ Direct access to file editing capabilities
  • 🔧 Customizable tool enablement for specific tasks
  • 🔄 Seamless integration with Claude Desktop and other MCP clients
  • 💻 Powerful unified claude_code tool for versatile coding operations

How to Use It

Prerequisites:

  • Ensure Node.js v20 or later is installed
  • Install Claude CLI locally

Installation:

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

First-Time Setup:

  • Run Claude CLI with permissions flag:
npm install -g @anthropic-ai/claude-code
claude --dangerously-skip-permissions
  • Follow prompts to accept terms

Configure MCP Client:

  • Edit mcp.json or mcp_config.json based on your client
  • Add configuration for claude_code

Using the claude_code Tool:

  • Send MCP requests with the following structure:
{
 "toolName": "claude_code:claude_code",
 "arguments": {
   "prompt": "Your coding task here",
   "options": {
     "tools": ["Optional", "Specific", "Tools"]
   }
 }
}

Related Resources

FAQs

Q: How does this differ from using Claude Code directly?
A: The Claude Code MCP Server automates permission bypassing and integrates seamlessly with MCP clients, allowing for more efficient and uninterrupted coding workflows.

Q: Can I use this server with any MCP client?
A: Yes, it’s designed to work with various MCP clients, including Claude Desktop and others that use mcp.json or mcp_config.json configurations.

Q: Is it safe to bypass permissions automatically?
A: While the server uses the --dangerously-skip-permissions flag, it’s important to use this feature responsibly and in controlled environments. Always review the actions performed by the AI.

Q: How can I customize the tools available to the AI?
A: You can specify which tools to enable in the options.tools array when requesting the claude_code tool.

Q: What should I do if I encounter “Command not found” errors?
A: Ensure that the Claude CLI is correctly installed and that your system’s PATH includes the necessary directories. Check the troubleshooting section in the documentation for specific steps.

Latest MCP Servers

Codebase Memory

Use local codebase memory for AI coding agents. Search symbols, map architecture, trace dependencies, and review change impact.

Microsoft Learn

Connect your AI assistant directly to official Microsoft documentation for accurate, real-time answers inside your MCP client.

Paper Search

Search across academic databases, retrieve lawful open-access PDFs, and bring paper text into Claude Code or another MCP client.

View More MCP Servers >>

Featured MCP Servers

Codebase Memory

Use local codebase memory for AI coding agents. Search symbols, map architecture, trace dependencies, and review change impact.

Microsoft Learn

Connect your AI assistant directly to official Microsoft documentation for accurate, real-time answers inside your MCP client.

Notion

Notion's official MCP Server allows you to interact with Notion workspaces through the Notion API.

More Featured MCP Servers >>

FAQs

Q: What exactly is the Model Context Protocol (MCP)?

A: MCP is an open standard, like a common language, that lets AI applications (clients) and external data sources or tools (servers) talk to each other. It helps AI models get the context (data, instructions, tools) they need from outside systems to give more accurate and relevant responses. Think of it as a universal adapter for AI connections.

Q: How is MCP different from OpenAI's function calling or plugins?

A: While OpenAI's tools allow models to use specific external functions, MCP is a broader, open standard. It covers not just tool use, but also providing structured data (Resources) and instruction templates (Prompts) as context. Being an open standard means it's not tied to one company's models or platform. OpenAI has even started adopting MCP in its Agents SDK.

Q: Can I use MCP with frameworks like LangChain?

A: Yes, MCP is designed to complement frameworks like LangChain or LlamaIndex. Instead of relying solely on custom connectors within these frameworks, you can use MCP as a standardized bridge to connect to various tools and data sources. There's potential for interoperability, like converting MCP tools into LangChain tools.

Q: Why was MCP created? What problem does it solve?

A: It was created because large language models often lack real-time information and connecting them to external data/tools required custom, complex integrations for each pair. MCP solves this by providing a standard way to connect, reducing development time, complexity, and cost, and enabling better interoperability between different AI models and tools.

Q: Is MCP secure? What are the main risks?

A: Security is a major consideration. While MCP includes principles like user consent and control, risks exist. These include potential server compromises leading to token theft, indirect prompt injection attacks, excessive permissions, context data leakage, session hijacking, and vulnerabilities in server implementations. Implementing robust security measures like OAuth 2.1, TLS, strict permissions, and monitoring is crucial.

Q: Who is behind MCP?

A: MCP was initially developed and open-sourced by Anthropic. However, it's an open standard with active contributions from the community, including companies like Microsoft and VMware Tanzu who maintain official SDKs.

Get the latest & top AI tools sent directly to your email.

Subscribe now to explore the latest & top AI tools and resources, all in one convenient newsletter. No spam, we promise!