MCP.so
登录

Claude Code MCP Server

@ebeloded

基本信息

分类

AI 与智能体

许可证

MIT

传输方式

stdio

作者

ebeloded

关于 Claude Code MCP Server

An MCP server that allows AI tools to interact with Claude Code programmatically with session continuity and async execution support.

Claude Code MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "claude": {
      "command": "npx",
      "args": [
        "claude-mcp"
      ]
    }
  }
}

Claude Code MCP Server 工具

3

Execute a Claude Code query with full control over SDK options.

Get the current status of a running or completed task by ID.

Cancel a running task by ID.

概览

What is Claude Code MCP Server?

An MCP server that bridges AI tools with Claude Code, enabling agent-in-agent workflows with conversation continuity and both synchronous and asynchronous execution. It lets AI systems programmatically start or resume Claude Code conversations, monitor long-running tasks, and branch conversations from any previous response.

How to use Claude Code MCP Server?

Install via npx or local clone, then add the MCP server configuration to your client’s MCP config file (e.g., ~/.cursor/mcp.json). Use the tools start, resume, status, and cancel to interact with Claude Code. Requires Node.js 18+ and the Claude Code CLI installed and configured.

Key features of Claude Code MCP Server

  • Fresh conversations via start tool (sync/async)
  • Resume conversations via resume tool (sync/async)
  • Working directory support for different projects
  • Async task monitoring with elapsed time and cancellation
  • Conversation branching from any previous Response ID
  • Automatic Claude CLI detection and permission bypass

Use cases of Claude Code MCP Server

  • Starting new code analysis tasks in different project directories
  • Continuing a conversation with Claude to build on prior analysis
  • Running long‑lived code reviews asynchronously while other work proceeds
  • Branching a conversation from an earlier response to explore alternative solutions

常见问题

1

What tools does the MCP server expose?

It exposes `start`, `resume`, `status`, and `cancel` tools for managing Claude Code conversations and tasks.

2

How does asynchronous execution work?

The `start` and `resume` tools accept an `async` parameter (defaults to true) to run non‑blocking; the server returns a task ID for status monitoring and cancellation.

3

What are the runtime dependencies?

Node.js 18+ and the Claude Code CLI installed and run once with `--dangerously-skip-permissions` to accept terms.

4

Does it always bypass permissions?

Yes, it uses `--dangerously-skip-permissions` for full functionality. Future versions will support configurable permission modes.

5

How can I customize behavior with environment variables?

Set `CLAUDE_CLI_NAME` (default “claude”), `MCP_CLAUDE_DEBUG` for verbose logging, or `MCP_NOTIFICATIONS` to disable macOS notifications.

评论

AI 与智能体 分类下的更多 MCP 服务器