devopam/MCPg
by Various
Postgres MCP Server
MCP
devopam/MCPg
Added 13 July 2026
Overview
devopam/MCPg is a Python-based Model Context Protocol (MCP) server that exposes a PostgreSQL database to MCP-compatible clients. It allows AI agents to query and interact with Postgres through a standardized interface.
Best for
Best for
Developers experimenting with MCP and needing a quick Postgres integration for AI agents
Use cases
- Let an AI assistant run SQL queries against a Postgres database
- Enable natural language database exploration via MCP clients
- Automate database reporting or data retrieval tasks
How to use
Install
pip install mcpg Tools exposed
MCPG_DATABASE_URLMCPG_ACCESS_MODEMCPG_TRANSPORTMCPG_LOG_LEVELMCPG_HTTP_HOSTMCPG_HTTP_PORTMCPG_ALLOW_DDLMCPG_ALLOW_SHELLMCPG_ALLOW_LISTENMCPG_AUTH_MODEMCPG_HTTP_AUTH_TOKENMCPG_OIDC_ISSUERMCPG_OIDC_AUDIENCEMCPG_OIDC_JWKS_URLMCPG_OIDC_ROLE_CLAIMMCPG_HTTP_MAX_BODY_BYTESMCPG_HTTP_ALLOWED_ORIGINSMCPG_HTTP_HSTS_MAX_AGEMCPG_HTTP_REQUEST_TIMEOUT_SECONDSMCPG_DEFAULT_ROLE
Tested with
Claude Desktop, Cursor, Windsurf, Cline, Continue, VS Code, ChatGPT
Notes
devopam/MCPg is a Python-based Model Context Protocol (MCP) server that exposes a PostgreSQL database to MCP-compatible clients. It allows AI agents to query and interact with Postgres through a standardized interface.
7 stars on GitHub. Last updated 2026-07-13. Licensed MIT.
Use cases
- Let an AI assistant run SQL queries against a Postgres database
- Enable natural language database exploration via MCP clients
- Automate database reporting or data retrieval tasks
Pros
- Simple, focused implementation for Postgres
- Leverages the MCP standard for interoperability
- Lightweight Python codebase easy to customize
Cons
- Very early stage with only 7 GitHub stars
- Limited documentation and community support
- No built-in authentication or access controls
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Simple, focused implementation for Postgres
- Leverages the MCP standard for interoperability
- Lightweight Python codebase easy to customize
Cons
- Very early stage with only 7 GitHub stars
- Limited documentation and community support
- No built-in authentication or access controls
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.