PostgreSQL MCP server via psql subprocess
Project description
pg-mcp
PostgreSQL MCP server that executes queries via psql subprocess. No persistent connections — each query opens psql, runs SQL, closes.
Config
~/.config/pg-mcp/connections.yml:
connections:
dev-mydb:
host: db.example.com
port: 5432
dbname: mydb
user: myuser
password: "mypassword"
Tools
list_connections— list configured connectionslist_tables(connection, schema?)— list tablesdescribe_table(connection, table, schema?)— show columns and indexesquery(connection, sql)— execute SQL
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pg_mcp_server-0.1.1.tar.gz
(52.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pg_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: pg_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 52.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2e0a51819d2fb21394ac6bb26c89a6a2486cdebbe5b168568a7f4ed5747b1a
|
|
| MD5 |
ccec6d18a666eb4dfcaf661a3212014a
|
|
| BLAKE2b-256 |
8f3e1b106830be61297dbca1b84e41adc17a6c80570e08947881f951fa3c8f69
|
File details
Details for the file pg_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pg_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07b17f6da8bb449e650d326fe0b808743d5408965e83f1c65681e1b06c5aeedf
|
|
| MD5 |
25515befba8ded50d1608d3196f54cdd
|
|
| BLAKE2b-256 |
dfc0de49d90e0ddd16756dec70841ab5c07fd8a38af125a98da18f66d39db791
|