1. mcp.json配置内容,配置完成后显示为绿色,在chat窗口选择agent即可;
{
"mcpServers": {
"mcp-server-hotnews": {
"command": "npx",
"args": ["-y","@wopal/mcp-server-hotnews"]
},
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
},
"playwright": {
"command": "npx",
"args": [ "@playwright/mcp@latest","--headless"]
},
"mongodb": {
"command": "npx",
"args": [ "mcp-mongo-server","mongodb://localhost:27017/studentManagement?authSource=admin" ]
},
"mongo-mcp": {
"command": "npx",
"args": ["-y","@smithery/cli@latest",
"run","mongo-mcp",
"--config","{"mongoUri":"localhost:27071"}"
]
},
"mongodb": {
"command": "npx",
"args": [ "mcp-mongo-server", "mongodb://localhost:27017/dbName?authSource=admin" ]
},
"box": {
"command": "uv",
"args": [
"--directory",
"/Users/shurrey/local/mcp-server-box",
"run",
"src/mcp_server_box.py"
]
},
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
}
}
- 打开 claude-desktop-config.json 文件
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"--directory",
"/your-playwright-mcp-server-clone-directory",
"run",
"@modelcontextprotocol/playwright-mcp-server"
]
},
"my_playwright": { # 可以正常执行本地mcp tools
"command": "uv",
"args": [
"--directory",
"/Users/xxx/workspace/MCPUse/my-playwright-mcp",
"run",
"playwright_server.py"
]
}
}
}
- Sequential Thinking
{
"mcpServers": {
"server-sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"run",
"@smithery-ai/server-sequential-thinking",
"--key",
"baa35d91-1693-424a-8ca6-d27c77335898"
]
}
}
}
4、Browser Tools MCP
{
"mcpServers": {
"browser-tools": {
"command": "npx",
"args": ["@agentdeskai/browser-tools-mcp@latest"],
"env": {
"BROWSER_TOOLS_HOST": "127.0.0.1",
"BROWSER_TOOLS_PORT": "3025"
}
}
}
}