How do I install the PostgreSQL MCP Server?
Create a Go project, add dependencies (`mcp-golang`, `gorm`, Postgres driver), copy the server code into `main.go`, update the connection string, then build and run the binary.
@SwanHtetAungPhyo
基本信息
暂无概览
工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
PostgreSQL MCP Server is a Go-based MCP (Model Context Protocol) server that lets AI assistants interact with PostgreSQL databases through a standardized interface. It provides three main capabilities: executing SELECT queries, managing database schema with DDL, and modifying data with INSERT/UPDATE/DELETE — all with built-in security validation to prevent dangerous operations.
Install by building the Go binary from source (requires Go 1.19+). Update the database connection string in main.go or use environment variables for credentials. Run the binary as a stdio transport server. Connect any MCP client (e.g., Claude Desktop) by adding the server to its configuration file, specifying the path to the binary. Use the three tools — execute_query, ddl_query, modify_query — for respective operations.
Create a Go project, add dependencies (`mcp-golang`, `gorm`, Postgres driver), copy the server code into `main.go`, update the connection string, then build and run the binary.
Three operations: `execute_query` for SELECT queries, `ddl_query` for CREATE/ALTER/DROP statements, and `modify_query` for INSERT/UPDATE/DELETE commands.
Every query is validated before execution; only specific SQL types are allowed per tool. Commands like TRUNCATE and GRANT are blocked. All queries are sanitized through GORM's SQL injection protections.
Set the connection string in the `dbConn` constant (e.g., `host=localhost user=postgres password=yourpassword dbname=yourdb port=5432 sslmode=require`) or read it from environment variables.
Add an entry to the client’s configuration file (e.g., `claude_desktop_config.json`) with the `command` set to the path of the built binary. The server communicates over stdio.

Model Context Protocol Servers

Fund Momentum MCP Server — VC intelligence for AI assistants. 1000+ active VC funds, live investor signals, AI-powered startup matching.
Local MCP server for DuckDB and MotherDuck

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi

Safety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
评论