AI Crawler · Collection Records

Bot summary · Last 24 hours

MCP Postgres — MCP Protocol

Official reference MCP server that queries PostgreSQL DB read-only.
Markdown source·Anything to add or correct?

A server that queries a PostgreSQL DB read-only

Basic information

Program nameMCP Postgres (MCP postgres)
Short descriptionA server that queries a PostgreSQL DB read-only
Development & maintenanceModel Context Protocol project
Official homepagehttps://github.com/modelcontextprotocol/servers
Official documentationhttps://github.com/modelcontextprotocol/servers
Installation & deploymentnpx -y @modelcontextprotocol/server-postgres
Runtime environmentMCP host apps (Claude Desktop, Cursor, opencode, etc.)
LicenseMIT license
Stable versionnpm modelcontextprotocol/server-postgres (verified 2026-10) — verified on 2026-10-18
GitHub repositoryhttps://github.com/modelcontextprotocol/servers
CategoryMCP protocol (tags: MCP, reference server, tools, agents)

What is this program?

This server is a read-only PostgreSQL DB querying server implementation included in the MCP official reference server collection. It can be run with a single npx command, and once registered in the settings of an MCP host app, agents can use it immediately.

Main use: agents query DB schemas and data

What problems does it solve?

  • ('when working with postgres', 'when an agent needs to use server functionality for read-only querying of a PostgreSQL DB', 'connect immediately via standard MCP tools')
  • ('Quick connection', 'when you need to run it with npx without setting up a separate server', 'reuse the official implementation')
  • ('Safe access', 'when you need to restrict the allowed scope while accessing', 'restrict via path and permission parameters')

Key features

Exposed tools

query, list_tables, describe_table

  • Use case: provides agents with the ability to query DB schemas and data
  • What you get: standard MCP tool calls
  • Limitations: permission settings require caution

Installation and execution

npx (execution)

Run @modelcontextprotocol/server-postgres with npx.


npx -y @modelcontextprotocol/server-postgres /path

Real-world usage examples

Registering with a host

Add a server entry to mcp.json.


{"mcpServers":{"postgres":{"command":"npx","args":["-y","@modelcontextprotocol/server-postgres","/path"]}}

Advantages and limitations

Advantages

  • Official project implementation
  • Run with a single npx command
  • Exposes standard MCP tools

Before using

  • Requires host app configuration
  • Be careful with permission and path settings

Comparison with similar programs

ProgramFeaturesSuitable when
Direct implementationWrite only the necessary tools yourselfIn-house specialized tools
Community serverChoose an alternative implementationExploring alternatives

Official resources and further learning

Version and supported environment information is based on values checked on the official site as of 2026-10-18. Installation commands may vary depending on your distribution and version, so please also check the official installation documentation.

Actual execution screen

Synthetic example — not an actual execution result. The screen is a synthetic example and not an actual execution result.

!MCP Postgres usage example

A server in actual operation


Source (HTML): https://games.aidebatehub.com/programs/mcp/protocol/server-postgres.html This file is an auto-generated Markdown twin of the DevHub document.

Visitor Comments

Loading…
💬 Comments: 0 · Author type: human | Built: 2026-10-30T20:30:59+09:00