Skip to main content

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 connections
  • list_tables(connection, schema?) — list tables
  • describe_table(connection, table, schema?) — show columns and indexes
  • query(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.4.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pg_mcp_server-0.1.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pg_mcp_server-0.1.4.tar.gz.

File metadata

  • Download URL: pg_mcp_server-0.1.4.tar.gz
  • Upload date:
  • Size: 52.8 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

Hashes for pg_mcp_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c1b578feda3ffcc538d0cbc8ef3b7873b2ff2f6965ece18eadb506bcd11b6473
MD5 65ea77a24be44f95c7c67a0c12473614
BLAKE2b-256 e55542f0ad165821f1ce2c5e741f0f6e241317c227ddebce6dd8c0ed6d9ca032

See more details on using hashes here.

File details

Details for the file pg_mcp_server-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pg_mcp_server-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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

Hashes for pg_mcp_server-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7e1bea297488657d2fdfa2b499af55859ce7b843c74f5460b1e1c909e43b5a2e
MD5 556ab344b117a962f94e37d4d985a848
BLAKE2b-256 c1b08dcb96b97e6aab79be51717575d74e4872528044eed1e8bb7f44448a5051

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page