安装 uv 和 uvx。
以下配置在 cc-switch(Claude Code 配置切换工具)中使用。

postgres-mcp

配置内容:

1
2
3
4
5
6
7
8
9
10
11
12
{
"postgres": {
"command": "uvx",
"args": [
"postgres-mcp",
"--access-mode=unrestricted"
],
"env": {
"DATABASE_URI": "postgresql://username:password@localhost:5432/dbname"
}
}
}

在 cc-switch 中安装。

playwright

配置内容:

1
2
3
4
5
6
7
8
{
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}

在 cc-switch 中安装。