Data as of
Neon MCP Server for Claude Code: Setup & Config
Claude Code: Manage Neon Postgres projects, branches, queries, and migrations through an AI assistant.
What you can do with Neon in Claude Code
Choose Neon-native branching and migrations with hosted authentication and project-scoped access.
- Inspect Neon project databases and table schemas from an IDE.
- Limit an assistant to read-only queries in a selected project.
Before you start: Neon in Claude Code
- A Neon account
- An MCP-compatible client
- Node.js 18+ for the documented command-based setup
This command registers the hosted service with detected clients; it does not launch a local server. Complete OAuth authorization, or use the documented bearer API-key configuration. Production use is not recommended.
Neon Claude Code configuration
Choose Claude Code configuration scope
For Neon MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Neon MCP Server to Claude Code
Use the mcp-server-neon-neondatabase-labs entry below in mcpServers. Keep Neon MCP Server's documented http connection fields and your other Claude Code entries.
Check Neon MCP Server in Claude Code
Neon MCP Server: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"type": "http",
"url": "https://mcp.neon.tech/mcp"
}
}
}claude mcp add-json --scope project 'mcp-server-neon-neondatabase-labs' '{"type":"http","url":"https://mcp.neon.tech/mcp"}'Neon tools available to Claude Code
Neon's stored tool list documents 30 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- __node_version
For Neon's __node_version, review the permission request and arguments in Claude Code before approval.
Report the Node.js runtime version used by the MCP server.
- list_projects
For Neon's list_projects, review the permission request and arguments in Claude Code before approval.
List projects available in the user's Neon account.
- create_project
For Neon's create_project, review the permission request and arguments in Claude Code before approval.
Create a Neon project for a new database workflow.
- delete_project
For Neon's delete_project, review the permission request and arguments in Claude Code before approval.
Remove an existing Neon project.
- describe_project
For Neon's describe_project, review the permission request and arguments in Claude Code before approval.
Inspect the details of a Neon project.
- run_sql
For Neon's run_sql, review the permission request and arguments in Claude Code before approval.
Execute one SQL statement, with read-only queries enforced in read-only mode.
- run_sql_transaction
For Neon's run_sql_transaction, review the permission request and arguments in Claude Code before approval.
Execute multiple SQL statements as a database transaction.
- describe_table_schema
For Neon's describe_table_schema, review the permission request and arguments in Claude Code before approval.
Inspect the structure of a selected database table.
- get_database_tables
For Neon's get_database_tables, review the permission request and arguments in Claude Code before approval.
- create_branch
For Neon's create_branch, review the permission request and arguments in Claude Code before approval.
- prepare_database_migration
For Neon's prepare_database_migration, review the permission request and arguments in Claude Code before approval.
- complete_database_migration
For Neon's complete_database_migration, review the permission request and arguments in Claude Code before approval.
- describe_branch
For Neon's describe_branch, review the permission request and arguments in Claude Code before approval.
- delete_branch
For Neon's delete_branch, review the permission request and arguments in Claude Code before approval.
- get_connection_string
For Neon's get_connection_string, review the permission request and arguments in Claude Code before approval.
- provision_neon_auth
For Neon's provision_neon_auth, review the permission request and arguments in Claude Code before approval.
- list_shared_projects
For Neon's list_shared_projects, review the permission request and arguments in Claude Code before approval.
- list_organizations
For Neon's list_organizations, review the permission request and arguments in Claude Code before approval.
- list_branch_computes
For Neon's list_branch_computes, review the permission request and arguments in Claude Code before approval.
- compare_database_schema
For Neon's compare_database_schema, review the permission request and arguments in Claude Code before approval.
- list_slow_queries
For Neon's list_slow_queries, review the permission request and arguments in Claude Code before approval.
- explain_sql_statement
For Neon's explain_sql_statement, review the permission request and arguments in Claude Code before approval.
- search
For Neon's search, review the permission request and arguments in Claude Code before approval.
Search through the server's retrieval interface; unavailable with project scoping.
- fetch
For Neon's fetch, review the permission request and arguments in Claude Code before approval.
Retrieve content through the server's retrieval interface; unavailable with project scoping.
- list_docs_resources
For Neon's list_docs_resources, review the permission request and arguments in Claude Code before approval.
Discover available documentation resources.
- get_doc_resource
For Neon's get_doc_resource, review the permission request and arguments in Claude Code before approval.
Retrieve a selected documentation resource.
- reset_from_parent
For Neon's reset_from_parent, review the permission request and arguments in Claude Code before approval.
Reset a branch from its parent; requires write access.
- provision_neon_data_api
For Neon's provision_neon_data_api, review the permission request and arguments in Claude Code before approval.
Provision the Neon Data API with write-enabled access.
- prepare_query_tuning
For Neon's prepare_query_tuning, review the permission request and arguments in Claude Code before approval.
Prepare query tuning through a write-enabled workflow.
- complete_query_tuning
For Neon's complete_query_tuning, review the permission request and arguments in Claude Code before approval.
Troubleshooting Neon in Claude Code
- Inspect claude mcp list, then Neon MCP Server's connection to mcp.neon.tech in /mcp. Complete Claude Code authentication only for a trusted service.
- Neon MCP Server: check http connectivity to mcp.neon.tech from Claude Code; a stdio command is not a replacement for this endpoint.
- Transport mismatch: Neon's catalog lists stdio; the displayed Claude Code configuration uses http.
- Known limitation: The README advises against production use.
- Known limitation: Write-enabled access includes destructive project and branch operations.
- Known limitation: Organization projects require explicit context when using OAuth.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
Neon MCP Server — details. Claude Code guide