Is the Neon MCP server safe? What it can reach
What the Neon MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Neon runs an official remote MCP server at mcp.neon.tech and maintains the open source code. It signs in with OAuth or an API key and can create, reset and delete projects and branches, run SQL, and deploy functions. Add ?readonly=true to the URL to turn off the write tools. Neon says not to use it in production.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Neon MCP Server (neondatabase/mcp-server-neon, hosted at mcp.neon.tech) | Official | active |
It runs as a hosted remote server. The documented endpoint is https://mcp.neon.tech/mcp.
How it signs in
OAuth through the browser is the default and acts on your personal projects unless you pass an org_id or project_id. You can send a Neon API key as a Bearer header instead, and an organization API key limits access to that organization.
| Scope or permission | Access |
|---|---|
read | read |
write | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | list_organizations, list_projects, count_projects, describe_project, get_project_consumption, get_branch_consumption, list_regions, list_branches, describe_branch, list_credentials, list_postgres_roles, get_postgres_role, get_connection_string, list_postgres_endpoints, list_branch_computes, get_postgres_endpoint, list_snapshots, get_snapshot_schedule, get_database_tables, describe_table_schema, compare_database_schema, inspect_database, list_slow_queries, explain_sql_statement, get_neon_auth_config, get_auth, list_auth_oauth_providers, get_auth_oauth_server, list_auth_oauth_clients, get_auth_oauth_client, list_auth_trusted_domains, get_data_api, query_logs, query_loki_logs, list_log_fields, list_log_field_values, search, fetch, search_docs, get_doc, search_api, list_incidents, list_functions, get_function, list_functions_custom_domains, list_triggers, get_trigger, list_storage_buckets, list_storage_objects, get_storage, get_realtime, get_realtime_secret |
| Write | create_project, create_branch, create_credential, create_postgres_database, create_postgres_role, create_postgres_endpoint, update_postgres_endpoint, start_postgres_endpoint, suspend_postgres_endpoint, restart_postgres_endpoint, create_snapshot, update_snapshot, set_snapshot_schedule, prepare_database_migration, prepare_query_tuning, provision_neon_auth, update_auth_config, update_auth_allow_localhost, update_auth_email_and_password, update_auth_email_provider, update_auth_plugins_organization, update_auth_plugins_magic_link, update_auth_plugins_phone_number, update_auth_webhooks, update_auth_logs_export, add_auth_oauth_provider, update_auth_oauth_provider, update_auth_oauth_server, create_auth_oauth_client, update_auth_oauth_client, add_auth_trusted_domain, create_auth_user, provision_neon_data_api, update_data_api, update_function, create_trigger, update_trigger, register_functions_custom_domain, create_storage_bucket, presign_storage_object, enable_realtime, send_feedback |
| Can’t be undone | delete_project, delete_branch, reset_from_parent, restore_snapshot, revoke_credential, rotate_credential, reset_postgres_role_password, delete_postgres_endpoint, delete_snapshot, run_sql, run_sql_transaction, complete_database_migration, complete_query_tuning, disable_auth, send_auth_test_email, delete_auth_oauth_provider, delete_auth_oauth_client, rotate_auth_oauth_client_secret, delete_auth_trusted_domain, delete_auth_user, update_auth_user_role, delete_data_api, delete_function, deploy_function, delete_functions_custom_domain, delete_trigger, delete_storage_bucket, delete_storage_object, delete_storage_objects_by_prefix, disable_realtime, rotate_realtime_secret, call_api |
The README lists well over a hundred tools in categories, and this list follows its names. Read versus write for a few tools is inferred from the name. run_sql can run any SQL the role allows, so it is listed as destructive. call_api is a passthrough that only appears with all categories, write mode and secrets enabled.
Built-in limits
| Option | What it does |
|---|---|
?readonly=true | Disables write tools. run_sql still runs, but inside a READ ONLY transaction, and run_sql_transaction is unavailable. |
?category= | Limits the server to chosen tool categories such as projects, branches, querying, schema, docs or storage. |
?projectId= | Scopes the server to one project. |
?roleName= | Runs all SQL as a named Postgres role, so you can pick a role with limited grants. |
| `?secrets=setup | all |
Organization API key | A key tied to one organization limits the server to that organization. |
NEON_MCP_DISABLE_ANALYTICS | Set to 1 on a self-run server to turn off product analytics. It does not turn off Sentry error reporting. |
The risks
- A prompt injected through a table row or a doc page could make the model call run_sql, run_sql_transaction or delete_project, and it would act with your Neon rights, including on production data if the token reaches it.
- reset_from_parent, restore_snapshot and complete_database_migration replace or change a branch’s data, and delete_project removes a whole project.
- Tools such as get_connection_string, list_credentials and get_realtime_secret can return live connection details and secrets into the model’s context unless secrets is set to none.
- Neon’s own README advises against using the server in production and says to review every action the model asks for.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http neon https://mcp.neon.tech/mcpClaude Code names MCP tools mcp__neon__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__neon__delete_project",
"mcp__neon__delete_branch",
"mcp__neon__reset_from_parent",
"mcp__neon__restore_snapshot",
"mcp__neon__reset_postgres_role_password",
"mcp__neon__delete_postgres_endpoint",
"mcp__neon__delete_snapshot",
"mcp__neon__disable_auth",
"mcp__neon__delete_auth_user",
"mcp__neon__delete_storage_bucket",
"mcp__neon__delete_storage_objects_by_prefix",
"mcp__neon__call_api"
],
"ask": [
"mcp__neon__run_sql",
"mcp__neon__run_sql_transaction",
"mcp__neon__complete_database_migration",
"mcp__neon__complete_query_tuning",
"mcp__neon__create_project",
"mcp__neon__create_branch",
"mcp__neon__create_postgres_role",
"mcp__neon__create_credential",
"mcp__neon__rotate_credential",
"mcp__neon__revoke_credential",
"mcp__neon__deploy_function",
"mcp__neon__update_postgres_endpoint"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.neon]
url = "https://mcp.neon.tech/mcp"
disabled_tools = ["delete_project", "delete_branch", "reset_from_parent", "restore_snapshot", "reset_postgres_role_password", "delete_postgres_endpoint", "delete_snapshot", "disable_auth", "delete_auth_user", "delete_storage_bucket", "delete_storage_objects_by_prefix", "call_api"]Checklist
- Use ?readonly=true unless you need to change something.
- Pin ?projectId= and ?roleName= so the server sees one project as a limited role.
- Point it at a development branch, not production.
- Set ?secrets=none and keep connection strings out of the chat.
- Review each run_sql statement before you approve it.
Checked against the vendor documentation on November 25, 2026. neondatabase/mcp-server-neon README · Neon docs: Neon MCP Server
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing