Claude Desktop
Anthropic · Anthropic 官方桌面应用,原生支持 MCP 协议。
📁 配置文件路径
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
📝 配置 JSON 示例
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxx"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/yourname/Documents"]
}
}
}💡 提示
- •在 Claude Desktop 设置 > Developer > Edit Config 可直接编辑
- •重启 Claude Desktop 后生效
- •菜单栏 > Help > Troubleshooting 可查看日志