Neon MCP Server is an open-source tool that lets you interact with your Neon Postgres databases in natural language.
Lists the first 10 Neon projects in your account, providing a summary of each project. If you can't find a specific project, increase the limit by passing a higher value to the limit parameter.
Fetches detailed information about a specific Neon project, including its ID, name, and associated branches and databases.
Creates a new Neon project in your Neon account. A project acts as a container for branches, databases, roles, and computes.
Deletes an existing Neon project and all its associated resources.
Creates a new branch within a specified Neon project. Leverages Neon's branching feature for development, testing, or migrations.
Deletes an existing branch from a Neon project.
Retrieves details about a specific branch, such as its name, ID, and parent branch.
Lists compute endpoints for a project or specific branch, including compute ID, type, size, and autoscaling information.
Lists all organizations that the current user has access to. Optionally filter by organization name or ID using the search parameter.
Returns your database connection string.
Executes a single SQL query against a specified Neon database. Supports both read and write operations.
Executes a series of SQL queries within a single transaction against a Neon database.
Lists all tables within a specified Neon database.
Retrieves the schema definition of a specific table, detailing columns, data types, and constraints.
Identifies performance bottlenecks by finding the slowest queries in a database. Requires the pg_stat_statements extension.
Initiates a database migration process. Critically, it creates a temporary branch to apply and test the migration safely before affecting the main branch.
Finalizes and applies a prepared database migration to the main branch. This action merges changes from the temporary migration branch and cleans up temporary resources.
Provides detailed execution plans for SQL queries to help identify performance bottlenecks.
Analyzes query performance and suggests optimizations like index creation. Creates a temporary branch for safely testing these optimizations.
Applies or discards query optimizations after testing. Can merge changes from the temporary branch to the main branch.
Provisions Neon Auth for a Neon project. It allows developers to easily set up authentication infrastructure by creating an integration with Stack Auth (@stackframe/stack)
{
"mcpServers": {
"neon": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"<YOUR_NEON_API_KEY>"
]
}
}
}