MCP

How to Install an MCP Server in Claude Code

2 min read

MCP (Model Context Protocol) lets Claude Code use external tools — filesystems, databases, APIs. Adding one is a single command.

1. Add the server

From your project, use claude mcp add. Example, a filesystem server:

claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem C:\path\to\allow

The pattern is: claude mcp add <name> -- <command to start the server>. Everything after -- is how the server is launched.

2. Pick the scope (optional)

claude mcp add --scope user github -- npx -y @modelcontextprotocol/server-github

3. Restart and confirm

Restart Claude Code, then list configured servers:

claude mcp list

You should see your server. Its tools are now available to Claude Code.


Tips

Open the full interactive version (with copy buttons) ↗

← All guides