pg-readonly-mcp
Rank #44,206io.github.les-k/pg-readonly-mcp
A read-only Postgres MCP server that parses SQL rather than pattern-matching it.
What you can do with pg-readonly-mcp
pg-readonly-mcp is a Model Context Protocol (MCP) server published by les-k. It ranks #44,206 of 151,203 active servers on MCP Toplist. pg-readonly-mcp is listed across 2 registries — Official MCP and Glama, with 1 tracked version. It was first listed on Aug 18, 2026 and most recently updated on Oct 2, 2026.
Not verifiedMCP Toplist has not yet written a checked profile for this server, so the paragraph above is assembled from registry data only. The repository README is the authority on what it does.
What pg-readonly-mcp can and cannot do
Not verifiedMCP Toplist has not catalogued this server's tools or limitations. The repository README lists them.
What you need before using pg-readonly-mcp
The registry listing declares required configuration before first use — typically an API key, token or connection string set via environment variables.
Declared by Glama, last synced Oct 23, 2026. Not independently verified by MCP Toplist.
- PG_READONLY_MCP_DSN · required
Connect pg-readonly-mcp and confirm it works
claude mcp add pg-readonly-mcp -e "PG_READONLY_MCP_DSN=<your PG_READONLY_MCP_DSN>" -- uvx pg-readonly-mcpReplace each placeholder with your own value before saving.
[mcp_servers.pg-readonly-mcp]
command = "uvx"
args = ["pg-readonly-mcp"]
[mcp_servers.pg-readonly-mcp.env]
PG_READONLY_MCP_DSN = "<your PG_READONLY_MCP_DSN>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<your PG_READONLY_MCP_DSN>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<your PG_READONLY_MCP_DSN>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"servers": {
"pg-readonly-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<your PG_READONLY_MCP_DSN>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<your PG_READONLY_MCP_DSN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"pg-readonly-mcp": {
"command": "uvx",
"args": [
"pg-readonly-mcp"
],
"env": {
"PG_READONLY_MCP_DSN": "<your PG_READONLY_MCP_DSN>"
}
}
}
}Replace each placeholder with your own value before saving.
After adding the config, ask your client to list this server's tools. A tool list confirms the connection; an empty list or an error means the server did not start or needs credentials.
When to choose another server
No task-specific alternatives are catalogued for pg-readonly-mcpyet; the list above is its publisher's other servers.
What changed, and when this was checked
- First listed
- Aug 18, 2026
- Latest version published
- Oct 2, 2026
- Version history
- 1 version tracked (below)
- Requirements evidence
- Declared by Glama, last synced Oct 23, 2026. Not independently verified by MCP Toplist.
- Profile checked
- Not yet — purpose, capabilities and requirements above come from registry data only
- Ranking data as of
- Oct 23, 2026
- Glama ↗listed since Aug 19, 2026 · still listed
- Official MCP ↗listed since Oct 3, 2026 · still listed
Do you maintain pg-readonly-mcp? to correct or enrich this profile.
Available versions (1)
| Version | Published |
|---|---|
| 0.1.1 | Oct 2, 2026 |
Ranks ahead of 106,997 of 151,203 servers on MCP Toplist.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.les-k%2Fpg-readonly-mcp)<a href="https://mcptoplist.com/server/io.github.les-k%2Fpg-readonly-mcp"><img src="https://mcptoplist.com/badge/io.github.les-k%2Fpg-readonly-mcp.svg" alt="MCP Toplist: Top 50% of 151,203" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Frequently asked questions
- Who maintains pg-readonly-mcp?
- pg-readonly-mcp is maintained by les-k, which publishes 3 MCP servers (3 total versions) tracked on MCP Toplist.
- Is pg-readonly-mcp listed on the Official MCP Registry?
- Yes — pg-readonly-mcp is listed on the Official MCP Registry, alongside Glama.
- How many versions does pg-readonly-mcp have?
- MCP Toplist tracks 1 version of pg-readonly-mcp, most recently published on Oct 2, 2026.
- Where can I find the source code for pg-readonly-mcp?
- The source code for pg-readonly-mcp is hosted at github.com/les-k/pg-readonly-mcp.
Do you run this server?
Community projects list the MCP servers behind real agents and apps. Publish yours and this page will link to it.