Postgres
● Activeio.github.marcelo-ochoa/postgres
MCP server for interacting with PostgreSQL databases
Connect this server
One click to install, or copy the config below. Suits: Claude Desktop · Cursor.
Or add it manually — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor):
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"@marcelo-ochoa/server-postgres@1.0.8"
],
"env": {
"POSTGRES_PASSWORD": "<your POSTGRES_PASSWORD>"
}
}
}
}claude mcp add --env POSTGRES_PASSWORD='<your POSTGRES_PASSWORD>' --transport stdio postgres -- npx -y @marcelo-ochoa/server-postgres@1.0.8codex mcp add postgres --env POSTGRES_PASSWORD='<your POSTGRES_PASSWORD>' -- npx -y @marcelo-ochoa/server-postgres@1.0.8code --add-mcp '{"name":"postgres","type":"stdio","command":"npx","args":["-y","@marcelo-ochoa/server-postgres@1.0.8"],"env":{"POSTGRES_PASSWORD":"<your POSTGRES_PASSWORD>"}}'Syntax from each client's docs (Claude Code: claude mcp add; Codex: codex mcp add; VS Code: code --add-mcp). Placeholders in angle brackets are values you fill in.
- POSTGRES_PASSWORDsecretPostgreSQL password
A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.
- Category
- Databases
- Version
- 1.0.8
- Registry
- active
- Published
- 3/11/2026
On GitHub
read Nov 17, 2026- Stars
- 2
- Forks
- 0
- Last push
- Aug 21, 2026
- License
- Other
TypeScript
From the README
Model Context Protocol servers This repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community-built servers and additional resources. [!IMPORTANT] If you are looking for a list of MCP servers, you can browse published servers on the MCP Registry. The repository served by this README is dedicated to housing just the small number of reference servers maintained by the MCP steering group. [!WARNING] The servers in this repository are intended as reference implementations to demonstrate MCP features and SDK usage. They are meant to serve as educational examples for developers building their own MCP servers, not as production-ready solutions. Developers should evaluate their own security requirements and implement appropriate safeguards based on their specific threat model and use case. The servers in this repository showcase the versatility and extensibility of MCP, demonstrating how it can be used to give Large Language Models (LLMs) secure, controlled access to tools and data sources. Typically, each MCP server is implemented with an MCP SDK: • C# MCP SDK • Go MCP SDK • Java MCP SDK • Kotlin MCP SDK • PHP MCP SDK • Python MCP SDK • Ruby MCP SDK • Rust MCP SDK • Swift MCP SDK • TypeScript MCP SDK 🌟 Reference Servers These servers aim to demonstrate MCP features and the official SDKs. • Everything - Reference / test server with prompts, resources, and tools.…
Read the full README on GitHub →Alternatives to Postgres
Best Databases servers →The most-starred Databases servers in the index, with their live-check result.
| Server | Stars | Last push | Live check |
|---|---|---|---|
| Dbx | 30,677 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 16,897 | Nov 2026 | Local / not checked |
| MCP Toolbox for Databases | 16,897 | Nov 2026 | Local / not checked |
| Finance Database | 9,627 | Nov 2026 | Working |
| DBHub | 3,868 | Nov 2026 | Local / not checked |
Postgres: questions people ask
- Is Postgres a remote or a local MCP server?
- According to its entry in the official MCP registry, Postgres ships as a local package (npm) that your client starts on your machine.
- Does Postgres need an API key?
- Its registry entry declares one required environment variable: POSTGRES_PASSWORD. The config on this page shows where each goes.
- Is Postgres still maintained?
- Active: the repository's last commit 3 months ago. Last push Aug 21, 2026, 2 GitHub stars, Other licence. Read from GitHub on Nov 17, 2026.
- How do I add Postgres to Claude, Cursor or VS Code?
- Copy the config in "Connect this server" into your client's MCP config file (claude_desktop_config.json, ~/.cursor/mcp.json or .vscode/mcp.json), or use the one-click Add to Cursor / Add to VS Code buttons and the one-line commands for Claude Code and Codex; then restart the client.
More Databases servers
Browse all Databases →NeKo Biological Network Builder
marcorusc
MCP server for biological network construction and analysis using pathway databases
JavaBytes
markymakes-dev
80 Java-focused tools for files, MySQL, JavaFX, Spring Boot and JS-to-Java migration, over stdio.
Extracto MCP
massanaRoger
Turn any URL plus a schema into validated, typed JSON via the Extracto API.
Mushroomdb
MatthewSherlin
Embedded graph database for agents: declare association rules once, edges maintain themselves.
mayankmahavar1mg MCP
tata1mg
Developer-workflow MCP server for catalyst-core: migration guidance, debugging, and task planning.
SqlAugur
mbentham
MCP server providing AI assistants with safe, read-only SQL Server access
Add the badge to your site
Show visitors that Postgres is listed here — it’s also the link we check for a free listing.
HTML — for your website
<a href="https://serverdex.io/server/io-github-marcelo-ochoa-postgres?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Postgres — listed on Serverdex" width="123" height="40" loading="lazy"></a>Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.
Markdown — for your README
[](https://serverdex.io/server/io-github-marcelo-ochoa-postgres?utm_source=badge)Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.