Neon MCP server
- MCP server
- 59+ callable tools
- 5 capabilities
Overview
Neon publishes this hosted MCP server, which lets AI agents manage Neon Postgres projects, branches, databases and related services through the Neon API.
Capabilities:
- Manage Neon projects and branches
- Run SQL queries and transactions
- Apply schema migrations on temporary branches
- Inspect schemas and diagnose slow queries
- Configure Neon Auth, Data API, storage, functions and Realtime
Works with
The products your agent can work with through this server.
Tools
The callable functions your agent uses to work with this server.
| Tool | What it does |
|---|---|
get_ | (the connection string carries a privileged role password, so it is withheld in read-only mode; copy it from the Neon Console instead) |
run_ | (its statements run in one session, so a COMMIT or SET TRANSACTION READ WRITE statement would end the read-only transaction) |
prepare_ | , complete_database_migration |
prepare_ | , complete_query_tuning |
list_ | Lists Neon projects. limit caps how many items come back. |
count_ | Returns the number of active projects in an organization. |
describe_ | Fetches a Neon project by id ({ "project_id": "…" }). |
get_ | , get_branch_consumption: Consumption metrics per project or per branch, grouped by billing period. |
create_ | Creates a Neon project and waits for the default compute. |
delete_ | Deletes an existing Neon project. |
list_ | Lists all organizations that the current user has access to. |
list_ | Lists branches in a project. |
list_ | , create_credential, revoke_credential, rotate_credential: Branch-scoped credentials for Object Storage and the AI Gateway. |
create_ | Creates a branch with a read-write compute and waits until it is ready. |
reset_ | Resets a branch to its parent's current HEAD ({ "project_id": "…", "branch_id": "br-…" }). |
delete_ | Deletes a branch ({ "project_id": "…", "branch_id": "br-…" }). |
describe_ | Retrieves a tree of databases, schemas, tables, views, and functions on a branch. |
restore_ | Restores a snapshot. Pass target_branch_id to restore onto an existing branch; omit it to create a new one. |
list_ | , list_branch_computes, get_postgres_endpoint, create_postgres_endpoint, update_postgres_endpoint, delete_postgres_endpoint, start_postgres_endpoint, suspend_po |
list_ | , get_snapshot_schedule, set_snapshot_schedule, create_snapshot, update_snapshot, delete_snapshot, restore_snapshot |
get_ | , describe_table_schema |
compare_ | SQL schema diff of one database against another branch. |
run_ | Executes a single SQL query against a specified Neon database. |
describe_ | Retrieves the schema definition of a specific table, detailing columns, data types, and constraints. |
complete_ | Finalizes and applies a prepared database migration to the main branch. |
inspect_ | Runs one of 15 predefined read-only Postgres diagnostics against a branch — relation and index sizes, index and sequential-scan usage, active queries and locks, |
list_ | Identifies performance bottlenecks by finding the slowest queries in a database. |
explain_ | Provides detailed execution plans for SQL queries to help identify performance bottlenecks. |
complete_ | Finalizes query tuning by either applying optimizations to the main branch or discarding them. |
provision_ | , get_auth, disable_auth, update_auth_config |
get_ | Secrets redacted. Reads trusted origins, localhost access, email and password, OAuth providers, the email provider, the organization, magic link, and phone numb |
update_ | , update_auth_email_and_password, update_auth_email_provider, send_auth_test_email, update_auth_plugins_organization, update_auth_plugins_magic_link, update_aut |
list_ | , add_auth_oauth_provider, update_auth_oauth_provider, delete_auth_oauth_provider |
get_ | , update_auth_oauth_server: Configure Neon Auth as an OAuth 2.1 authorization server (including for MCP servers). |
list_ | , get_auth_oauth_client, create_auth_oauth_client, update_auth_oauth_client, delete_auth_oauth_client, rotate_auth_oauth_client_secret: Manage the OAuth clients |
list_ | , add_auth_trusted_domain, delete_auth_trusted_domain |
create_ | , delete_auth_user, update_auth_user_role |
provision_ | , get_data_api, update_data_api, delete_data_api: Manage the Data API for a branch database. |
search | Searches across organizations, projects, and branches matching a query. |
fetch | Fetches detailed information about a specific organization, project, or branch using an ID (typically from the search tool). |
send_ | Sends anonymous feedback to the Neon team. |
query_ | Queries OpenTelemetry logs for a branch. |
query_ | Runs a LogQL range query on the branch's Loki-compatible read API and returns Loki's response: lines grouped by stream labels, with nanosecond timestamps. |
list_ | Lists the log fields you can enumerate values for on a branch. |
list_ | Lists the distinct values of a log field within a branch and time window. |
search_ | Searches neon.com (docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog) with the same search as the neon.com search box. |
get_ | Fetches one neon.com page as markdown. |
list_ | , get_function, update_function, delete_function, deploy_function |
list_ | , register_functions_custom_domain, delete_functions_custom_domain |
list_ | , get_trigger, create_trigger, update_trigger, delete_trigger: Scheduled function triggers (type: "schedule", five-field UTC cron). |
list_ | , create_storage_bucket, delete_storage_bucket |
list_ | , delete_storage_object, delete_storage_objects_by_prefix |
presign_ | , get_storage |
get_ | , enable_realtime, disable_realtime: Branch Realtime state, enable (optional allowed_origins), and disable. |
get_ | The shared secret the application backend issues Realtime tokens with. |
rotate_ | Replaces the shared secret and waits until the change is applied. |
create_ | Creates a Postgres role; with access set to read_only it creates a role limited to reading. |
list_ | Lists the Postgres roles, one of the branch management tools. |
list_ | Lists Neon incidents so an agent can tell a Neon incident from its own mistake. |
Installation
Follow the installation guide for supported clients, authentication and required permissions.
Add Neon MCP server to Claude Code
Run this in your terminal:
If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.
Add Neon MCP server to Cursor
Add it with the Add to Cursor button below, or add it to .cursor/mcp.json in your project (~/.cursor/mcp.json for every project):
Add Neon MCP server to VS Code
Add it to .vscode/mcp.json in your workspace. VS Code uses servers rather than mcpServers. Or run MCP: Add Server from the Command Palette and choose HTTP.
Add Neon MCP server to Codex
Run this in your terminal:
Or add it to ~/.codex/config.toml:
If the server uses OAuth, sign in with codex mcp login neon.
Add Neon MCP server to Claude
Add it as a custom connector with this URL:
- Open Customize, then Connectors.
- Click + Add, then Add custom connector.
- Name it, paste the URL and click Continue.
- Choose how to sign in, then click Add.
On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.
Add Neon MCP server to other clients
For any other client that connects to remote MCP servers over HTTP, use this URL:
Related MCP servers
Other servers for the same products, or from the same vendor.
Sources
Documentation and source code reviewed on 10 November 2026.
View sourcesHide sources
- neon.com/docs/ai/connect-mcp-clients-to-neon.md
- github.com/neondatabase/mcp-server-neon
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/oauth/consent-tools.ts
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/sentry/tool-span.ts
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/tools/definitions.ts
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/tools/grant-filter.ts
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/tools/listed-schema.ts
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/tools/mcp-tool-names.json
- github.com/neondatabase/mcp-server-neon/blob/HEAD/mcp/tools/neon-tools.ts
- neon.com/docs/cli/mcp
- neon.com/docs/ai/connect-mcp-clients-to-neon
- neon.com/docs/manage/api-keys
- neon.com/docs/ai/neon-mcp-server
- neon.com/docs/cli/login
- neon.com/docs/cli/api-keys