Turn a Postgres connection into a governed MCP server
postgres2mcp takes a Postgres connection and gives you a fully-featured MCP server with governance built-in.
Create custom tools from parametrized SQL and determine what tools are accessible or blocked for each generated API key.
This README is written by a human and is meant for humans. The docs are written by an agent and made for agents.
Built-in tools for common use cases Create custom tools from parametrized SQL Scoped API keys Group tools and control permissions by group Complete audit logs and analytics Choose your response format Self-host in under 10min MIT-licensed
Quickly create an MCP server from your Postgres databases Have an easy way to manage and oversee database access Custom tools work as a semantic layer for agents to navigate your data more efficiently Enforce data governance by controlling the specific queries that are available to non-technical users
We built postgres2mcp to make it easy to give agents access to Postgres databases while ensuring orgs retain control and can manage permissions more easily than they would be able to with roles in Postgres.
postgres2mcp primarily targets two use cases:
- Managing MCP access to production data across employees - Easily controlling what data is made accessible to third-party platforms that connect to your DB
At Railcode we're a third-party that customers often connect their database to, so part of our motivation here was to offer customers a simple auditable platform where they can manage what data they give us access to. postgres2mcp borrowed a lot of concepts that we already use internally in the R
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/Railcode-HQ--postgres2mcp.html)
A free, open-source Shopify store and Meta ads spy tool. Find winning stores, see the ads they run, track competitors. Every number measured, nothing estimated.
emersonjds/santisanti — free, open-source, self-hosted project management and issue tracker for agile teams. Scrum and Kanban boards, backlog, sprint planning, epics, drag and drop, CSV import, REST API, CLI and MCP
synectus/OpenGMBOpen-source Google Business Profile manager: reviews, posts, profile edits and rank tracking for every location, with approval rules before anything goes live and an MCP server for AI agents. Self-hos
DevCrabs-Inc/yandex-metrika-mcpRead-only MCP server for Yandex Metrika (Яндекс Метрика): verifiable reports, period comparisons, time series and exports for Claude, Cursor, VS Code and Codex.
wendersoon/radar-cnpj-mcpServidor MCP e CLI para localizar empresas brasileiras por CNAE e região, utilizando dados abertos de CNPJ da Receita Federal.
herry2059/project-os-for-codexOpen-source control plane for Codex projects: Git-backed context, visible agent progress, scoped MCP access, resumable work, and safe handoffs.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.