pgmoat MCP
pgmoat is an open-source MCP server providing governed, read-only Postgres access for AI agents. It enforces SQL safety via the Postgres parser, applies Row-Level Security, sets budgets for rows and timeouts, hides sensitive columns, and generates tamper-evident audit logs.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Provide AI agents with safe, read-only database access
- Enforce Row-Level Security based on caller identity
- Generate tamper-evident audit logs for database queries
- Hide sensitive columns like password hashes automatically
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
pgmoat 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "pgmoat",
"registryType": "npm",
"environmentVariables": [
{
"name": "PGMOAT_DATABASE_URL",
"format": "string",
"isRequired": true,
"description": "Postgres connection URL (use a read-only role)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"pgmoat-mcp": {
"command": "npx",
"args": [
"-y",
"pgmoat@0.1.1"
],
"env": {
"PGMOAT_DATABASE_URL": "<YOUR_PGMOAT_DATABASE_URL>"
}
}
}
}Cline
{
"mcpServers": {
"pgmoat-mcp": {
"command": "npx",
"args": [
"-y",
"pgmoat@0.1.1"
],
"env": {
"PGMOAT_DATABASE_URL": "<YOUR_PGMOAT_DATABASE_URL>"
}
}
}
}VS Code
{
"servers": {
"pgmoat-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pgmoat@0.1.1"
],
"env": {
"PGMOAT_DATABASE_URL": "<YOUR_PGMOAT_DATABASE_URL>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"pgmoat-mcp": {
"command": "npx",
"args": [
"-y",
"pgmoat@0.1.1"
],
"env": {
"PGMOAT_DATABASE_URL": "<YOUR_PGMOAT_DATABASE_URL>"
}
}
}
}Let your agent find its tools
Find servers like pgmoat MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.