M

MCP PostgreSQL Server

by MOmayr · MOmayr/MCP PostgreSQL Server

It connects an agent to a PostgreSQL database so it can inspect schemas, run validated reads and writes, resolve fuzzy names via trigram search, and perform or store pgvector embedding searches. Vector and hybrid search operate through an OpenAI-compatible embeddings endpoint, letting agents query by text without handling embedding arrays.

Unknown transport Glama Low confidence
Note

Install

No install method is published for this server: no package and no remote endpoint. Check its source repository or registry listing for setup instructions.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
PORT No HTTP listen port. Default: 3000
PG_HOST No Database host. Required for PostgreSQL tools unless connect_db is used to supply it later.
PG_PORT No Database port. Default: 5432
PG_USER No Database user. Required for PostgreSQL tools unless connect_db is used.
TRANSPORT No Transport to use: 'http' or 'stdio'. Default: stdio
PG_DATABASE No Database name. Required for PostgreSQL tools unless connect_db is used.
PG_PASSWORD No Database password. Required for PostgreSQL tools unless connect_db is used.
EMBEDDING_URL No OpenAI-compatible embeddings endpoint, for example http://localhost:8000/v1/embeddings. Required for vector_search and vector_execute.
EMBEDDING_MODEL No Model name sent to the embeddings endpoint. Required for vector_search and vector_execute.
EMBEDDING_API_KEY No Sent as Authorization: Bearer.
EMBEDDING_DIMENSIONS No Reject a response whose length does not match. Not sent to the API.
EMBEDDING_TIMEOUT_MS No Embedding request timeout in milliseconds. Default: 30000
EMBEDDING_MAX_RESPONSE_BYTES No Maximum embedding response size in bytes. Default: 52428800

Similar servers