This project exposes one MCP tool, get-postgres-docs, that searches the official PostgreSQL documentation site and returns relevant content as a markdown string.
Tool name: get-postgres-docs
Input body:
{
"query": "jsonb operators",
"version": "17"
}queryis required.versionis optional. Examples:current,18,17,16,9.6,devel.
The tool response is a markdown string assembled from the official PostgreSQL documentation pages.
pnpm installpnpm dev:httpBy default the Hono server listens on http://localhost:3000.
- MCP endpoint:
http://localhost:3000/mcp - Health endpoint:
http://localhost:3000/health
pnpm dev:stdioFor a built server:
pnpm build
pnpm start:http
pnpm start:stdio- The server fetches documentation live from
postgresql.org. - The HTTP transport uses Hono.
- The tool is read-only and returns markdown text suitable for LLM context.