Skip to content

Commit

Permalink
Remove env from postgres server
Browse files Browse the repository at this point in the history
* interpolation of env into command args is not supported
  • Loading branch information
slimslenderslacks committed Dec 18, 2024
1 parent a8e75e7 commit 9ac1fff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ To use this server with the Claude Desktop app, add the following configuration

### 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
{
"mcpServers": {
"postgres": {
"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"]
}
}
}
Expand Down Expand Up @@ -66,4 +74,4 @@ docker build -t ai/mcp-postgres -f src/postgres/Dockerfile .

## License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

0 comments on commit 9ac1fff

Please sign in to comment.