# Neon (verified)

Manage PostgreSQL projects, branches, and databases with integrated administrative controls. Execute SQL queries, perform safe schema migrations using temporary branches, and optimize performance thr…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add neon

# Browse available tools
npx -y @smithery/cli@latest tool list neon

# Get full schema for a tool
npx -y @smithery/cli@latest tool get neon list_projects

# Call a tool
npx -y @smithery/cli@latest tool call neon list_projects '{}'
```

## Direct MCP Connection

Endpoint: `https://neon.run.tools`

## Tools (28)

- `list_projects` — Lists the first 10 Neon projects in your account. If you can't find the project, increase the limit by passing a higher…
- `list_organizations` — Lists all organizations that the current user has access to. Optionally filter by organization name or ID using the `se…
- `list_shared_projects` — Lists projects that have been shared with the current user. These are projects that the user has been granted access to…
- `create_project` — Create a new Neon project. If someone is trying to create a database, use this tool.
- `delete_project` — Delete a Neon project
- `describe_project` — Describes a Neon project
- `run_sql`
- `run_sql_transaction`
- `describe_table_schema` — Describe the schema of a table in a Neon database
- `get_database_tables` — Get all tables in a Neon database
- `create_branch` — Create a branch in a Neon project
- `prepare_database_migration`
- `complete_database_migration` — Complete a database migration by applying changes to the main branch and cleaning up the temporary branch.
- `describe_branch` — Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions
- `delete_branch` — Delete a branch from a Neon project
- `reset_from_parent` — Resets a branch to match its parent's current state, effectively discarding all changes made on the branch. To avoid da…
- `get_connection_string` — Get a PostgreSQL connection string for a Neon database with all parameters being optional
- `provision_neon_auth`
- `provision_neon_data_api`
- `explain_sql_statement` — Describe the PostgreSQL query execution plan for a query of SQL statement by running EXPLAIN (ANAYLZE...) in the databa…
- `prepare_query_tuning`
- `complete_query_tuning` — Complete a query tuning session by either applying the changes to the main branch or discarding them.
- `list_slow_queries`
- `list_branch_computes` — Lists compute endpoints for a project or specific branch
- `compare_database_schema`
- `search` — Searches across all user organizations, projects, and branches that match the query. Returns a list of objects with id,…
- `fetch` — Fetches detailed information about a specific organization, project, or branch using the ID returned by the search tool…
- `load_resource`

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get neon <tool-name>
```

## Resources

- `https://github.com/neondatabase-labs/ai-rules/blob/main/neon-auth.mdc` — Neon Auth usage instructions
- `https://github.com/neondatabase-labs/ai-rules/blob/main/neon-serverless.mdc` — Neon Serverless usage instructions
- `https://github.com/neondatabase-labs/ai-rules/blob/main/neon-drizzle.mdc` — Neon Drizzle usage instructions
- `https://github.com/neondatabase-labs/ai-rules/blob/main/neon-get-started.mdc` — Neon getting started guide
- `https://github.com/neondatabase-labs/ai-rules/blob/main/neon-js.mdc` — Neon JS SDK usage instructions

## Prompts (1)

- `setup-neon-auth` (projectId, branchId, databaseName) — Interactive guide for setting up Neon Auth in a Vite+React project. Walks through provisioning, package installation, c…
