list_projects
List all Neon projects in your account.
limitorg_idsearch
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Nov 1, 2026
Neon Postgres projects, branches, SQL, and migrations from your MCP client.
Manages Neon Postgres projects, branches and SQL from an MCP client, including two-phase migrations and query tuning on temporary branches.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
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.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Every MCP tool is also a CLI subcommand. Tool arguments are passed as
one JSON object with --json:
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.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
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.
MIT — see LICENSE.
Source: README.md at commit 67b8c9e
List all Neon projects in your account.
limitorg_idsearchDescribes a Neon project
projectIdrequiredCreate a new Neon project.
nameorg_idregion_idDelete a Neon project
projectIdrequiredCreate a branch in a Neon project
projectIdrequiredbranchNameparentBranchIdDelete a branch from a Neon project
branchIdrequiredprojectIdrequiredGet a tree view of all objects in a branch, including databases, schemas, tables, views, and functions
branchIdrequiredprojectIdrequiredList compute endpoints for a project or a specific branch, including compute ID, type, and size.
branchIdprojectIdrequiredList all organizations that the current user has access to, optionally filtered by a search term.
searchGet a PostgreSQL connection string for a Neon database with all parameters being optional
pooledbranchIdroleNameprojectIdrequireddatabaseNameExecute a single SQL statement against a Neon database.
sqlrequiredbranchIdroleNameprojectIdrequireddatabaseNameExecute a SQL transaction against a Neon database, should be used for multiple SQL statements.
sqlrequiredbranchIdroleNameprojectIdrequireddatabaseNameGet all tables in a Neon database
branchIdprojectIdrequireddatabaseNameDescribe the schema of a table in a Neon database
branchIdprojectIdrequiredtableNamerequireddatabaseNameList slow queries from pg_stat_statements, ordered by mean execution time.
limitbranchIdprojectIdrequireddatabaseNameDescribe the PostgreSQL query execution plan for a SQL statement by running EXPLAIN in the database
sqlrequiredbranchIdprojectIdrequireddatabaseNamePerform a database schema migration by executing the given SQL on a temporary branch for safety, ready to complete onto the main branch.
branchIdprojectIdrequireddatabaseNamemigrationSqlrequiredComplete a database migration when the user confirms the migration is ready to be applied to the main branch.
projectIdrequiredmigrationIdrequireddatabaseNameAnalyze a slow query or DML statement on a temporary branch, returning its execution plan to suggest optimizations.
sqlrequiredbranchIdprojectIdrequireddatabaseNameComplete a query tuning session by either applying the changes to the main branch or discarding them.
tuningIdrequiredprojectIdrequiredapplyChangesrequired90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
npx @reneturcios/pgcloud list_projectsdocker run -i -e NEON_API_KEY ghcr.io/cloudcorprecords/pgcloudexport NEON_API_KEY=<your Neon API key>
pgcloud list_projectspgcloud 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 --versionnpx -y @reneturcios/pgcloud mcp{ "mcpServers": { "pgcloud": { "command": "npx", "args": ["-y", "@reneturcios/pgcloud", "mcp"], "env": { "NEON_API_KEY": "your Neon API key" } } }}npm installnpm 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