Remove env from postgres server
* interpolation of env into command args is not supported
This commit is contained in:
parent
bb0adaafd8
commit
308b71c698
1 changed files with 10 additions and 2 deletions
|
|
@ -26,12 +26,20 @@ To use this server with the Claude Desktop app, add the following configuration
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
|
* when running docker on macos, use host.docker.internal if the server is running on the host network (eg localhost)
|
||||||
|
* username/password can be added to the postgresql url with `postgresql://user:password@host:port/db-name`
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"mcpServers": {
|
"mcpServers": {
|
||||||
"postgres": {
|
"postgres": {
|
||||||
"command": "docker",
|
"command": "docker",
|
||||||
"args": ["run", "-i", "--rm", "ai/mcp-postgres", "host.docker.internal:5432/mydb"]
|
"args": [
|
||||||
|
"run",
|
||||||
|
"-i",
|
||||||
|
"--rm",
|
||||||
|
"ai/mcp-postgres",
|
||||||
|
"postgresql://host.docker.internal:5432/mydb"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue