Importing MCP server setup from Claude Desktop to Claude Code

Kashish Hora
Co-founder of MCPcat
The Quick Answer
Import your MCP servers with one command: claude mcp add-from-claude-desktop
. Select servers interactively or use -s global
for system-wide access. For complex setups, directly edit .claude.json
in your home directory. Use /mcp
to verify connections after import.
Import Your Servers
# Import servers from Claude Desktop$claude mcp add-from-claude-desktop# Import globally (available in all projects)$claude mcp add-from-claude-desktop -s global# Verify your servers are connected$/mcp
Platform Notes
-
macOS/Windows: Import works automatically from Claude Desktop's configuration
-
Linux: Manual copy required:
$cp ~/path/to/claude-desktop-config.json ~/.claude.json
Manual Configuration
For complex setups, edit .claude.json
directly:
{
"mcpServers": {
"github": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your-token-here"
}
}
}
}
Related Guides
Quickstart with Claude Code
Get started with Claude Code in minutes. Learn essential commands and features to boost your development workflow.
Best MCP servers for Claude Code
Discover the most powerful MCP servers to enhance your Claude Code development workflow with specialized tools and integrations.
Which plan to choose: Pro, Max 5x, Max 20x
Compare Claude Code subscription plans to find the perfect fit for your development needs and usage patterns.