# claude mcp serve Command

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** claude mcp serve, Claude Code as an MCP server

## Think of it like

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

## 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

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.

## Example code

```bash
claude mcp serve
```

Let another app use Claude Code's tools.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [MCP Server](https://learn.benibix.com/term/ai/mcp-server)
- [MCP Client](https://learn.benibix.com/term/ai/mcp-client)
- [Claude Code Built-in Tool](https://learn.benibix.com/term/ai/claude-code-built-in-tool)

## Taught in

- [The claude mcp Commands](https://learn.benibix.com/learn/ai-claude-code-commands/claude-mcp-commands): Claude Code Commands, 12/17

![Another app connects to claude mcp serve and gets Claude Code's tools, such as Read, Edit and Bash.](https://learn.benibix.com/diagrams/cli-mcp-serve.svg)

---

Source: https://learn.benibix.com/term/ai/claude-mcp-serve-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
