LocalFree

Postgres (read-only) MCP server

contextflo/postgres-mcp

Read-only Postgres: drop-in for the archived server-postgres, with schema context.

4 GitHub stars

Install Postgres (read-only) in Claude Code

Claude Code
claude mcp add postgres-read-only -e DATABASE_URL=... -- npx -y @contextflo/postgres-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "postgres-read-only": {
      "command": "npx",
      "args": [
        "-y",
        "@contextflo/postgres-mcp"
      ],
      "env": {
        "DATABASE_URL": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the Postgres (read-only) MCP server do?

Read-only Postgres: drop-in for the archived server-postgres, with schema context.

Is the Postgres (read-only) MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does Postgres (read-only) run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Postgres (read-only) to Claude Code?

Run: claude mcp add postgres-read-only -e DATABASE_URL=... -- npx -y @contextflo/postgres-mcp

More databases MCP servers

View all