AgentTask Atlas

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
  1. inspect_database850
  2. create_project822
  3. query_logs783
  4. list_log_field_values649
  5. compare_database_schema635
  6. update_project588
  7. update_trigger506
  8. create_trigger481
  9. complete_query_tuning480
  10. update_auth_oauth_server416
  11. provision_neon_data_api396
  12. create_postgres_endpoint387
  13. update_postgres_endpoint369
  14. update_branch366
  15. update_snapshot324
  16. complete_database_migration319
  17. create_auth_oauth_client319
  18. get_connection_string316
  19. update_data_api312
  20. run_sql_transaction310
  21. deploy_function308
  22. run_sql299
  23. add_auth_oauth_provider294
  24. update_auth_oauth_client292
  25. create_branch280
  26. explain_sql_statement277
  27. create_auth_user270
  28. update_auth_oauth_provider270
  29. set_snapshot_schedule269
  30. list_slow_queries263
  31. presign_storage_object259
  32. reset_from_parent257
  33. register_functions_custom_domain255
  34. prepare_query_tuning252
  35. search_docs247
  36. delete_auth_oauth_provider239
  37. create_credential233
  38. restore_snapshot233
  39. list_storage_objects227
  40. rotate_auth_oauth_client_secret224
  41. delete_auth_trusted_domain221
  42. list_auth_oauth_providers221
  43. describe_table_schema218
  44. enable_realtime216
  45. delete_trigger215
  46. get_operation213
  47. update_function213
  48. get_auth_oauth_server211
  49. delete_storage_objects_by_prefix210
  50. delete_auth_oauth_client202
  51. delete_storage_object201
  52. get_trigger200
  53. prepare_database_migration199
  54. update_auth_user_role198
  55. get_auth_oauth_client197
  56. add_auth_trusted_domain196
  57. get_realtime_secret195
  58. create_storage_bucket194
  59. delete_functions_custom_domain194
  60. rotate_realtime_secret194
  61. describe_branch193
  62. provision_neon_auth193
  63. finalize_branch_restore190
  64. list_functions_custom_domains189
  65. create_snapshot184
  66. update_postgres_database182
  67. get_data_api181
  68. list_functions180
  69. get_realtime179
  70. delete_function177
  71. delete_storage_bucket177
  72. get_function177
  73. create_postgres_database176
  74. delete_branch176
  75. list_auth_oauth_clients176
  76. list_branches176
  77. list_log_fields176
  78. create_postgres_role175
  79. delete_auth_user175
  80. update_auth_config174
  81. disable_auth173
  82. get_database_tables173
  83. reset_postgres_role_password171
  84. rotate_credential171
  85. delete_postgres_role169
  86. delete_data_api168
  87. list_triggers168
  88. delete_postgres_database167
  89. get_ai_gateway167
  90. get_auth167
  91. get_postgres_database167
  92. get_postgres_role167
  93. list_storage_buckets167
  94. revoke_credential165
  95. list_auth_trusted_domains163
  96. get_snapshot_schedule162
  97. disable_realtime161
  98. list_branch_computes161
  99. list_postgres_roles161
  100. list_projects161
  101. list_postgres_databases160
  102. get_storage159
  103. set_default_branch157
  104. list_credentials156
  105. get_branch154
  106. get_neon_auth_config144
  107. restart_postgres_endpoint139
  108. list_project_members132
  109. get_postgres_endpoint131
  110. list_operations131
  111. suspend_postgres_endpoint130
  112. delete_postgres_endpoint128
  113. search128
  114. start_postgres_endpoint127
  115. delete_snapshot125
  116. send_feedback125
  117. list_project_permissions124
  118. describe_project112
  119. get_doc111
  120. get_default_branch106
  121. list_postgres_endpoints106
  122. recover_project105
  123. list_snapshots100
  124. delete_project97
  125. fetch93
  126. list_organizations89
  127. 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-tools preview: 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_id or project_id in 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_transaction or get_connection_string is missing.
Read-only mode hides them (the connection string carries a privileged password). run_sql stays, running each statement in a READ ONLY transaction. source ↗
list_projects/create_project disappeared.
Project-scoped mode (?projectId=) hides tools without a project path, plus delete_project. source ↗
Client without Streamable HTTP.
Use the deprecated https://mcp.neon.tech/sse with npx 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-only and --project-ref flags 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.

Listed on AgentTask Atlas

← All MCP servers and skills