
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Model Context Protocol server that lets AI tools execute prompts through Claude Code, with fresh and resumed conversations, working directory support, and asynchronous task management.
MCP server for running Claude Code programmatically is cataloged as an MCP server attributed to ebeloded. A Model Context Protocol server that lets AI tools execute prompts through Claude Code, with fresh and resumed conversations, working directory support, and asynchronous task management. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MCP server for running Claude Code programmatically are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Async tasks don't block the server, multiple can run concurrently, and they can be monitored with status and cancelled with cancel.
README.md · 994bfe8078d9 · 采集于 2026-11-13 10:06:40 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
An MCP (Model Context Protocol) server that allows AI tools to interact with Claude Code programmatically, enabling powerful agent-in-agent workflows with conversation continuity and asynchronous execution support.
This MCP server provides a bridge between AI tools and Claude Code, allowing other AI systems to execute prompts via Claude Code while maintaining session state for conversation continuity. It supports both synchronous and asynchronous execution patterns, making it suitable for quick queries and long-running operations.
start tool for starting new conversations (sync/async)resume tool for continuing existing conversations (sync/async)--dangerously-skip-permissions for full functionalityThis MCP server makes intentional design choices for clarity and practical use:
We use "Response ID" terminology instead of "Session ID" because:
--continue Flag SupportWe intentionally do not support Claude Code's --continue flag because:
resume tool with an explicit Response ID for precise conversation controlCurrently uses --dangerously-skip-permissions which is functionally equivalent to --permission-mode bypassPermissions. This deprecated flag will be replaced with the modern permission-mode system in future versions, enabling:
plan mode for read-only code analysisacceptEdits for auto-accepting file changes while confirming dangerous operationsdefault for standard interactive promptsbypassPermissions for maintaining current behavior (all permissions granted)--dangerously-skip-permissions to accept termsUse directly with npx:
{
"mcpServers": {
"claude": {
"command": "npx",
"args": ["claude-mcp"]
}
}
}
Clone and install:
git clone https://github.com/ebeloded/claude-mcp.git
cd claude-mcp
npm install
Use in MCP config:
{
"mcpServers": {
"claude": {
"command": "node",
"args": ["/path/to/claude-mcp/server.js"]
}
}
}
Important: Before using the setup above, run Claude Code once to accept permissions:
claude --dangerously-skip-permissions
Accept the terms when prompted (one-time requirement).
Add the configuration to your MCP configuration file:
~/.cursor/mcp.json~/.codeium/windsurf/mcp_config.jsonCLAUDE_CLI_NAME: Override Claude CLI binary name (default: "claude")MCP_CLAUDE_DEBUG: Set to "true" for verbose debug loggingMCP_NOTIFICATIONS: Set to "false" to disable macOS system notificationsstart - Fresh ConversationsStart fresh conversations with Claude Code. Supports both synchronous and asynchronous execution.
Parameters:
message (string, required): The message to send to the agent. Be specific about what you want - mention file paths, desired output format, and any constraints.workingDirectory (string, optional): Working directory to execute from. Use absolute paths or relative to current directory. Useful for different projects or git worktrees.appendSystemPrompt (string, optional): Text to append to the default system prompt.async (boolean, optional): Whether to execute asynchronously. Defaults to true.Example (Synchronous):
// Simple query in current directory
start({
message: "What's 2 + 2?",
async: false,
})
// Analyze specific code in project directory
start({
message:
"Analyze the authentication logic in src/auth.js and list security vulnerabilities as bullet points",
workingDirectory: "/path/to/project",
async: false,
})
Response Format (Sync):
4
Response ID: 938c8c6d-1897-4ce4-a727-d001a628a279
Example (Asynchronous):
start({
message:
"Analyze the entire codebase for performance bottlenecks, focusing on database queries and API endpoints. Provide specific recommendations with file locations.",
})
start({
message:
"Review all React components in src/components/ for accessibility issues and generate a detailed report with WCAG compliance suggestions",
workingDirectory: "/path/to/frontend-project",
})
Response (Async):
Task started successfully. Use status with task ID: 550e8400-e29b-41d4-a716-446655440000
resume - Continue ConversationsContinue an existing conversation with Claude Code. Supports both synchronous and asynchronous execution. Uses the original conversation's working directory.
Parameters:
message (string, required): The message to send to the agent. Reference previous context when needed - the agent remembers the conversation history.previousResponseId (string, required): Response ID from a previous agent response. Use to branch or continue any conversation.async (boolean, optional): Whether to execute asynchronously. Defaults to true.Example (Synchronous):
resume({
message: "What did I just ask you?",
previousResponseId: "938c8c6d-1897-4ce4-a727-d001a628a279",
async: false,
})
Response Format (Sync):
You asked me about 2 + 2.
Response ID: b2c3d4e5-f6g7-8901-bcde-f23456789012
Example (Asynchronous):
resume({
message: "Continue that analysis with more detail",
previousResponseId: "938c8c6d-1897-4ce4-a727-d001a628a279",
})
Response (Async):
Task started successfully. Use status with task ID: 661f9511-e30c-41e5-a927-556677889900
status - Task Status MonitoringCheck the status and progress of an asynchronous task.
Parameters:
taskId (string, required): The task ID returned by ask_asyncExample:
status({
taskId: "550e8400-e29b-41d4-a716-446655440000",
})
Response (Running):
Task 550e8400-e29b-41d4-a716-446655440000:
Status: running
Elapsed: 45s
Working Directory: /Users/ebeloded/Code/claude-mcp
Created: 2025-05-28T21:15:30.123Z
Updated: 2025-05-28T21:16:15.456Z
Response (Completed):
Task 550e8400-e29b-41d4-a716-446655440000:
Status: completed
Elapsed: 1m 52s
Working Directory: /Users/ebeloded/Code/claude-mcp
Created: 2025-05-28T21:15:30.123Z
Updated: 2025-05-28T21:17:22.789Z
Result: [Claude's comprehensive analysis here...]
Response ID: 938c8c6d-1897-4ce4-a727-d001a628a279
Cost: $0.045
Duration: 112456ms
cancel - Task CancellationCancel a running asynchronous task.
Parameters:
taskId (string, required): The task ID to cancelExample:
cancel({
taskId: "550e8400-e29b-41d4-a716-446655440000",
})
Response:
Task 550e8400-e29b-41d4-a716-446655440000 cancelled successfully
The server follows a modular architecture for maintainability:
claude-mcp/
├── server.js # Main entry point & orchestration
├── src/
│ ├── server/
│ │ └── setup.js # MCP server setup and signal handling
│ ├── services/
│ │ ├── TaskService.js # Async task lifecycle & notification management
│ │ └── ClaudeService.js # Claude CLI execution logic
│ ├── tools/
│ │ └── (MCP tool definitions)
│ └── utils/
│ ├── errors.js # Error handling utilities
│ ├── logger.js # Debug logging utilities
│ └── validation.js # Input validation utilities
└── tests/
└── *.e2e.test.ts # End-to-end tests
npm test
The test suite includes:
Set MCP_CLAUDE_DEBUG=true to enable verbose logging:
{
"mcpServers": {
"claude": {
"command": "node",
"args": ["/path/to/claude-mcp/server.js"],
"env": {
"MCP_CLAUDE_DEBUG": "true"
}
}
}
}
# Install dependencies
npm install
# Run tests
npm test
# Start in debug mode
MCP_CLAUDE_DEBUG=true npm start
This server communicates over STDIO. Do not write regular logs to stdout—doing so corrupts JSON-RPC. All logs go to stderr via the logger utility. See the MCP quickstart guidance on logging: https://modelcontextprotocol.io/quickstart/server.md
start)workingDirectory)resume)Each tool provides detailed message guidance in its parameter descriptions to help you get the best results from Claude Code. The key principles are:
See the tool parameter descriptions for comprehensive guidance and examples.
This project uses GitHub Actions for automated publishing:
MIT
CLAUDE_CLI_NAME environment variable if using a custom binary nameclaude --versionclaude --dangerously-skip-permissions once to accept termsstatus to monitor long-running taskscancel if neededMCP_NOTIFICATIONS=false environment variableClaim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP server for running Claude Code programmatically from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/claude-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.