pgcloud
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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_projectsOr run the container image:
docker run -i -e NEON_API_KEY ghcr.io/cloudcorprecords/pgcloudThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: pgsql-mcp-server
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 --versionResults 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 mcpMCP 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 |
|
| Lists projects in the account. |
|
| Describes one project. |
|
| Creates a project. |
|
| Deletes a project and its resources. |
|
| Creates a branch with a read-write compute. |
|
| Deletes a branch. |
|
| Branch record plus its databases. |
|
| Lists compute endpoints. |
|
| Lists organizations the user can access. |
|
| Resolves a Postgres connection string. |
|
| Runs one SQL statement. |
|
| Runs statements in one transaction. |
|
| Lists tables via |
|
| Lists a table's columns. |
|
| Slowest queries from |
|
| Returns the EXPLAIN plan for a statement. |
|
| Runs migration SQL on a temporary branch. |
|
| Applies a prepared migration to the original branch. |
|
| Opens a tuning session on a temporary branch with the plan. |
|
| 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 tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
Managed Postgres MCP: projects, SQL, docs search, and storage buckets via OAuth.
MCP server for interacting with the Supabase platform
Hosted PostgreSQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables querying and modifying PostgreSQL databases through MCP tools with read/write operations, schema inspection, and write-safety constraints that limit modifications to the mcp schema.1-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with PostgreSQL databases through MCP, supporting queries, DDL, DML, and schema inspection.49 PyPI6MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Neon PostgreSQL databases, supporting project management, SQL execution, and database migrations through MCP.641 npmMIT
- AlicenseAqualityAmaintenanceEnables governed access to corporate Postgres databases via MCP, supporting read-only queries, confirmed data and schema changes, query explanation, audit trail retrieval, and role-based policies with optional Vault secret integration.10MIT