Claude Code as an MCP server
Expose Claude Code's own tools to other MCP clients with `claude mcp serve`.
Overview
Claude Code can run as a stdio MCP server, exposing its file, search, and editing tools to another MCP client. This is the documented way for other agents or desktop clients to call Claude Code's tools. The calling client is responsible for approving tool calls, so its permission model matters as much as Claude Code's.
Capabilities
- File read and edit
- Search
- Command execution (client-approved)
Connection profile
- Transports
- stdio
- Authentication
- Claude Code login
- License
- Not confirmed
- Vendor
- Anthropic
- Repository
- Not listed
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
claude mcp serve
Security notes
- The calling client receives access to Claude Code's tools, including editing and command execution. Use a client with per-call approval.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Sources & evidence
- code.claude.com/docs/en/mcpOfficial documentation · checked Nov 26, 2026 · documented
Claude Code documentation describes using Claude Code as an MCP server with `claude mcp serve`.