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.3.tar.gz (52.7 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.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pg_mcp_server-0.1.3.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

Hashes for pg_mcp_server-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b666b8279848c59174e1281ad7d7cad8397cb9285c4bcb97b6cc611cddf9fd27
MD5 d58dafcceb8d07d86d7476b17ba5683b
BLAKE2b-256 454e1dee3c09d487fa08da0992c24095110fc9b919b34d3d88ba6add8449a559

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pg_mcp_server-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 263f7a1abab691a7fabf415edfd3432bfd9ec6a72fc01758fa58589ec4bae6d9
MD5 89a9af3d23fbe88b9bd62356bb7a2e45
BLAKE2b-256 0b9032b3650b601f437a5ca891302ea99bc365352091d70429690ad609d3cc64

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