SuperAPI AI Directory

mcp-server-neon

Neon MCP Server is an official open-source tool from Neon, based on the Model Context Protocol (MCP), that lets users interact with Postgres databases on Neon through natural language. It acts as a bridge between natural language requests and the Neon API, converting requests into the necessary API calls, and supports tasks such as creating projects and branches, running queries, and performing database migrations. Key features include natural language interaction, simplified database management, accessibility for non-developers, and branch-based database migration support. This tool is recommended only for local development and IDE integration, and is not recommended for use in production environments.

Open website

About this tool

Neon MCP Server is an official open-source tool from Neon, based on the Model Context Protocol (MCP), that lets users interact with Lakebase Postgres databases on Neon through natural language. MCP is a standardized protocol for managing context between large language models (LLMs) and external systems. This repository provides the remote MCP Server for Neon.

Purpose The Neon MCP Server acts as a bridge between natural language requests and the Neon API. Built on MCP, it converts requests into the necessary API calls, enabling users to manage tasks such as creating projects and branches, running queries, and performing database migrations.

Main capabilities

  • Natural language interaction: Manage Neon databases using intuitive conversational commands.
  • Simplified database management: Perform complex operations without writing SQL or directly using the Neon API.
  • Accessibility for non-developers: Enable users with different technical backgrounds to interact with Neon databases.
  • Database migration support: Leverage Neon's branching capabilities to initiate database schema changes through natural language.

Usage In Claude Code or any MCP client, you can complete Neon operations using natural language, for example:

  • Create a new Postgres database named "my-database", then create a table named users with the columns id, name, email, and password.
  • Run a migration on the project named "my-project" to modify the users table to add a new column named created_at.
  • Provide a summary of all Neon projects and their respective data.

Setup options

  1. Quick setup using an API Key (Cursor, VS Code, and Claude Code): Run neon@latest init to automatically configure Neon's MCP Server, agent skills, and the VS Code extension.
  2. Remote MCP Server (OAuth-based authentication): Connect to Neon's hosted MCP server, use OAuth authentication, with no need to manage API Keys, and automatically get the latest features.
  3. Remote MCP Server (API-based Key authentication): Use API Key authentication to connect to the Neon-hosted MCP server, suitable for remote proxy scenarios where OAuth is unavailable.

Prerequisites

  • An MCP client application.
  • A Neon account.
  • Node.js (>= v18.0.0).
  • If IP Allow is enabled, add 34.192.103.46 and 23.22.233.166 to the allowlist (mcp.neon.tech static IPs).
  • Development requires Node.js 22+ (pnpm is provided via Corepack; run corepack enable to activate it).

Scopes and read-only mode Neon MCP provides the OAuth scopes read and write. Read-only mode restricts the available tools and disables write operations such as creating projects or branches or running migrations. Read-only tools include listing projects, describing schemas, querying data, and viewing performance metrics. Read-only mode can be set via the default MCP URL (editable consent) or a parameterized MCP URL (fixed consent).

URL query parameters for access control Configure the authorization context (scope category, project scope, read-only mode, fixed Postgres role) via query parameters on the MCP server URL. API Key requests apply these parameters on every request. OAuth tokens store the authorization confirmed or edited at authorization time.

Security considerations The Neon MCP Server grants powerful database management capabilities through natural language requests. Always review and authorize the operations requested by the LLM before execution. Ensure that only authorized users and applications can access the Neon MCP Server. This tool is intended only for local development and IDE integration and is not recommended for production use, as it may perform powerful operations that cause unintended or unauthorized changes.

Applicable scenarios Suitable for local development and IDE integration, such as MCP clients including Cursor, VS Code, Claude Code, Claude Desktop, Cline, Windsurf, Zed, and others.

Limitations

  • Recommended only for local development and IDE integration; not recommended for production environments.
  • In read-only mode, run_sql_transaction is unavailable; use run_sql to execute statements one at a time.
  • Fixed roles apply only to SQL connections; management API tools still operate with the API Key or OAuth token's own permissions.
  • The SSE transport is deprecated; Streamable HTTP is recommended.