Skip to main content
Glama
CleanCodeStar

PostgreSQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POSTGRES_HOSTYesPostgreSQL 主机地址
POSTGRES_PORTNoPostgreSQL 端口5432
POSTGRES_USERYesPostgreSQL 用户名
POSTGRES_PASSWORDYesPostgreSQL 密码
POSTGRES_LOG_LEVELNo日志级别INFO
POSTGRES_READ_ONLYNo是否开启只读模式false
POSTGRES_DEFAULT_SCHEMAYes默认 database 下的默认 schema
POSTGRES_DATABASE_SCHEMASYes每个 database 允许访问的 schema 映射,格式: database:schema1,schema2;database2:schema3,schema4
POSTGRES_DEFAULT_DATABASEYes启动后的默认 database
POSTGRES_ALLOWED_DATABASESYes允许访问的 database,多个值用英文逗号分隔
POSTGRES_DATABASE_DEFAULT_SCHEMASNo每个 database 的默认 schema 映射

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CleanCodeStar/pg-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server