Skip to content
BENIBIX Learn

claude mcp serve Command

Also known as claude mcp serve, Claude Code as an MCP server

It runs Claude Code as an MCP server for other apps.

Think of it like

It is like a kid who gets help with math, now helps a friend with theirs.

Example

Lucy's desktop chat app can use MCP servers. She adds claude mcp serve as a server in it, and the app can now read and edit files in her project.

Why it matters

Claude Code's file and shell tools become usable by any app that speaks MCP.

Definition

claude mcp serve turns Claude Code itself into an MCP server. Another app that speaks MCP can connect to it and use Claude Code's tools, such as reading and editing files and running commands. It talks over stdin and stdout, so it prints nothing when it starts. A quiet terminal means it is waiting for an app to connect.

Example code

bash
claude mcp serve
Let another app use Claude Code's tools.
The arrow runs the other way here: Claude Code is the server.

Common mistake

Thinking it is stuck because it prints nothing. That silence is normal. It is waiting for a client.

Key takeaways

  1. 1
    Claude Code as a server. Its tools, shared.
  2. 2
    stdin and stdout. No output at start.
  3. 3
    Any MCP app. Can connect.

Learn it properly