pgcloud MCP Server
Neon Postgres projects, branches, SQL, and migrations from your MCP client.
pgcloud scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Package registries report about 66 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "cloudcorprecords-pgcloud": { "command": "npx", "args": [ "-y", "@reneturcios/pgcloud@0.1.0" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
pgcloud
pgcloud puts a Neon Postgres account within reach of an MCP client or a terminal. Projects and their branches can be listed, described, created, and deleted; compute endpoints and organizations can be inspected; and any database in a project can be queried directly — single statements, multi-statement transactions, table and column introspection, slow-query reports, and execution plans. Schema changes follow Neon's two-phase pattern: a migration or tuning session is prepared on a temporary branch, exercised there, and only then completed onto the original branch.
A Neon API key is required. Put it in the NEON_API_KEY environment
variable; it is sent to the Neon API as a Bearer token and never
appears in output. When the variable is missing, every call fails with
an error that names it.
Install
npx @reneturcios/pgcloud list_projects
Or run the container image:
docker run -i -e NEON_API_KEY ghcr.io/cloudcorprecords/pgcloud
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
CLI
Every MCP tool is also a CLI subcommand. Tool arguments are passed as
one JSON object with --json:
export NEON_API_KEY=<your Neon API key>
pgcloud list_projects
pgcloud list_projects --json '{"limit": 5, "search": "billing"}'
pgcloud describe_project --json '{"projectId": "snowy-pond-12345678"}'
pgcloud create_branch --json '{"projectId": "snowy-pond-12345678", "branchName": "dev"}'
pgcloud run_sql --json '{"projectId": "snowy-pond-12345678", "sql": "select now()"}'
pgcloud get_connection_string --json '{"projectId": "snowy-pond-12345678", "pooled": true}'
pgcloud --version
Results print as JSON. Exit codes: 0 on success, 1 when an API or
SQL call fails (including a missing NEON_API_KEY), 2 for usage
errors.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/pgcloud mcp
MCP client configuration:
{
"mcpServers": {
"pgcloud": {
"command": "npx",
"args": ["-y", "@reneturcios/pgcloud", "mcp"],
"env": { "NEON_API_KEY": "your Neon API key" }
}
}
}
Tools
| Tool | Input (required in bold) | What it does |
|---|---|---|
list_projects | limit, search, org_id | Lists projects in the account. |
describe_project | projectId | Describes one project. |
create_project | name, region_id, org_id | Creates a project. |
delete_project | projectId | Deletes a project and its resources. |
create_branch | projectId, branchName, parentBranchId | Creates a branch with a read-write compute. |
delete_branch | projectId, branchId | Deletes a branch. |
describe_branch | projectId, branchId | Branch record plus its databases. |
list_branch_computes | projectId, branchId | Lists compute endpoints. |
list_organizations | search | Lists organizations the user can access. |
get_connection_string | projectId, branchId, databaseName, roleName, pooled | Resolves a Postgres connection string. |
run_sql | sql, projectId, branchId, databaseName, roleName | Runs one SQL statement. |
run_sql_transaction | sql (array), projectId, … | Runs statements in one transaction. |
get_database_tables | projectId, branchId, databaseName | Lists tables via information_schema. |
describe_table_schema | projectId, tableName, … | Lists a table's columns. |
list_slow_queries | projectId, limit, … | Slowest queries from pg_stat_statements. |
explain_sql_statement | sql, projectId, … | Returns the EXPLAIN plan for a statement. |
prepare_database_migration | migrationSql, projectId, … | Runs migration SQL on a temporary branch. |
complete_database_migration | migrationId, projectId, … | Applies a prepared migration to the original branch. |
prepare_query_tuning | sql, projectId, … | Opens a tuning session on a temporary branch with the plan. |
complete_query_tuning | tuningId, projectId, applyChanges | Closes a tuning session, applying or discarding. |
Management calls go to https://api.neon.tech/api/v2. SQL calls first
resolve the branch's connection URI from the API, then POST the
statement to the database host's HTTP SQL endpoint with the URI in the
Neon-Connection-String header; SQL text is passed through as given.
Migration and tuning sessions are held in the server process, so a
session must be completed by the same process that prepared it.
Development
npm install
npm run build # tsc -> dist/
npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)
npm run dev # run the CLI from source via tsx
License
MIT — see LICENSE.
Frequently asked questions
What is pgcloud MCP Server?
Neon Postgres projects, branches, SQL, and migrations from your MCP client.
How do I install pgcloud MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. pgcloud MCP Server runs locally from the npm package @reneturcios/pgcloud with the command npx -y @reneturcios/pgcloud@0.1.0.
Is pgcloud MCP Server free and open source?
Yes. pgcloud MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does pgcloud MCP Server support remote (HTTP) connections?
No remote endpoint is listed for pgcloud MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is pgcloud MCP Server's trust score calculated?
pgcloud MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.