MCP server · Neon
Neon MCP Server
Pick it to manage Neon branches and run SQL; it acts with your account's rights.
Tools: 127, ~29,236 tokens of tool definitions loaded into the model's context (hosted, all categories (official /api/list-tools preview, no auth); measured 2026-10-29). Compare all servers →
All 127 tools, by token cost
- inspect_database850
- create_project822
- query_logs783
- list_log_field_values649
- compare_database_schema635
- update_project588
- update_trigger506
- create_trigger481
- complete_query_tuning480
- update_auth_oauth_server416
- provision_neon_data_api396
- create_postgres_endpoint387
- update_postgres_endpoint369
- update_branch366
- update_snapshot324
- complete_database_migration319
- create_auth_oauth_client319
- get_connection_string316
- update_data_api312
- run_sql_transaction310
- deploy_function308
- run_sql299
- add_auth_oauth_provider294
- update_auth_oauth_client292
- create_branch280
- explain_sql_statement277
- create_auth_user270
- update_auth_oauth_provider270
- set_snapshot_schedule269
- list_slow_queries263
- presign_storage_object259
- reset_from_parent257
- register_functions_custom_domain255
- prepare_query_tuning252
- search_docs247
- delete_auth_oauth_provider239
- create_credential233
- restore_snapshot233
- list_storage_objects227
- rotate_auth_oauth_client_secret224
- delete_auth_trusted_domain221
- list_auth_oauth_providers221
- describe_table_schema218
- enable_realtime216
- delete_trigger215
- get_operation213
- update_function213
- get_auth_oauth_server211
- delete_storage_objects_by_prefix210
- delete_auth_oauth_client202
- delete_storage_object201
- get_trigger200
- prepare_database_migration199
- update_auth_user_role198
- get_auth_oauth_client197
- add_auth_trusted_domain196
- get_realtime_secret195
- create_storage_bucket194
- delete_functions_custom_domain194
- rotate_realtime_secret194
- describe_branch193
- provision_neon_auth193
- finalize_branch_restore190
- list_functions_custom_domains189
- create_snapshot184
- update_postgres_database182
- get_data_api181
- list_functions180
- get_realtime179
- delete_function177
- delete_storage_bucket177
- get_function177
- create_postgres_database176
- delete_branch176
- list_auth_oauth_clients176
- list_branches176
- list_log_fields176
- create_postgres_role175
- delete_auth_user175
- update_auth_config174
- disable_auth173
- get_database_tables173
- reset_postgres_role_password171
- rotate_credential171
- delete_postgres_role169
- delete_data_api168
- list_triggers168
- delete_postgres_database167
- get_ai_gateway167
- get_auth167
- get_postgres_database167
- get_postgres_role167
- list_storage_buckets167
- revoke_credential165
- list_auth_trusted_domains163
- get_snapshot_schedule162
- disable_realtime161
- list_branch_computes161
- list_postgres_roles161
- list_projects161
- list_postgres_databases160
- get_storage159
- set_default_branch157
- list_credentials156
- get_branch154
- get_neon_auth_config144
- restart_postgres_endpoint139
- list_project_members132
- get_postgres_endpoint131
- list_operations131
- suspend_postgres_endpoint130
- delete_postgres_endpoint128
- search128
- start_postgres_endpoint127
- delete_snapshot125
- send_feedback125
- list_project_permissions124
- describe_project112
- get_doc111
- get_default_branch106
- list_postgres_endpoints106
- recover_project105
- list_snapshots100
- delete_project97
- fetch93
- list_organizations89
- list_regions48
Same server, other documented flags (measured 2026-10-29):
?category=projects,branches,endpoints,querying,schema(README quick-setup categories): 61 tools, ~13,712 tokens (53% less than the default)?readonly=true(read-only): 54 tools, ~11,189 tokens (62% less than the default)?readonly=true&projectId=<id>(read-only, one project): 49 tools, ~10,670 tokens (64% less than the default)?category=querying&category=schema(querying + schema only): 15 tools, ~4,621 tokens (84% less than the default)?readonly=true&category=querying&category=schema(read-only, querying + schema only): 10 tools, ~3,061 tokens (90% less than the default)
Install
`npx neon@latest init`, or add the remote server with `npx add-mcp https://mcp.neon.tech/mcp` (see README). Official install docs ↗
Credentials: Neon OAuth (remote) or NEON_API_KEY.
What it can access
Manages Neon projects, branches and runs SQL with your account's rights.
Minimal safe setup
- Neon says the server is for local development and IDEs, not production databases; review every action before it runs. source ↗
- Combine
?readonly=true&projectId=<id>&roleName=<role>to pin one project and a low-privilege Postgres role for all SQL. Keep the URL out of reach of the agent when using an API key, since anyone editing it can drop the role pin. source ↗ - Measured with Neon's no-auth
/api/list-toolspreview: all categories = 127 tools, ~29,236 tokens;?readonly=true&category=querying&category=schema= 10 tools, ~3,061 tokens (−90%). source ↗ - Authenticated sessions send your Neon account ID, name and email to Neon's analytics; tool arguments and query results aren't tracked. source ↗
Common setup errors
- OAuth sessions only see your personal projects.
- By default OAuth works on your personal account; for organization projects pass
org_idorproject_idin the prompt, or use an organization API key to limit access to that org. source ↗ - Changing
?readonly=or?projectId=in the URL has no effect. - With OAuth those params are a fixed grant confirmed at authorization: authorize again after changing them. With an API key they apply on the next request. source ↗
run_sql_transactionorget_connection_stringis missing.- Read-only mode hides them (the connection string carries a privileged password).
run_sqlstays, running each statement in a READ ONLY transaction. source ↗ list_projects/create_projectdisappeared.- Project-scoped mode (
?projectId=) hides tools without a project path, plusdelete_project. source ↗ - Client without Streamable HTTP.
- Use the deprecated
https://mcp.neon.tech/ssewithnpx add-mcp https://mcp.neon.tech/sse --type sse. source ↗
How it differs from alternatives
- Supabase MCP Server: Postgres plus auth/storage/edge functions, with
--read-onlyand--project-refflags on a local or hosted server. Measured: 29 tools, ~4,394 tokens. - Prisma MCP: Prisma Postgres and migrations through the Prisma CLI.
- MCP Toolbox for Databases: Self-hosted, works with many databases using your own connection, no vendor account.
Notes written from the official sources linked above, checked 2026-10-29.
Details
- Type
- MCP server
- Tasks
- Databases & SQLInfra & deploy
- Compatible agents
- Claude Code, Cursor, VS Code, GitHub Copilot (source: clients with a setup heading or install/config instructions in the official README)
- Maintenance
- No GitHub release; last commit 2026-10-21
- License
- MIT
- Source
- https://github.com/neondatabase/mcp-server-neon
- Verified on
- 2026-10-26
No independent security audit: entries summarize official sources only. Review permissions and code before installing.
Compared in: Best MCP servers for Infra & deploy in Cursor · Best MCP servers for Databases & SQL in Cursor · Best MCP servers for Infra & deploy in Claude Code · Best MCP servers for Infra & deploy in VS Code · Best MCP servers for Databases & SQL in VS Code · Best MCP servers for Databases & SQL in Claude Code · Best MCP servers for Databases & SQL · Best MCP servers for Infra & deploy
Badge for your README (maintainers)
The badge only says it's listed; it is not a security review or an endorsement.