$git clone https://github.com/neondatabase/mcp-server-neonNeon MCP Server is an open-source tool that lets you interact with your Neon Postgres databases in natural language.
| 1 | <picture> |
| 2 | <source media="(prefers-color-scheme: dark)" srcset="https://neon.com/brand/neon-logo-dark-color.svg"> |
| 3 | <source media="(prefers-color-scheme: light)" srcset="https://neon.com/brand/neon-logo-light-color.svg"> |
| 4 | <img width="250px" alt="Neon Logo fallback" src="https://neon.com/brand/neon-logo-dark-color.svg"> |
| 5 | </picture> |
| 6 | |
| 7 | # Neon MCP Server |
| 8 | |
| 9 | [](https://cursor.com/en-US/install-mcp?name=Neon&config=eyJ1cmwiOiJodHRwczovL21jcC5uZW9uLnRlY2gvbWNwIn0%3D) |
| 10 | [](https://kiro.dev/launch/mcp/add?name=Neon&config=%7B%22url%22%3A%20%22https%3A//mcp.neon.tech/mcp%22%7D) |
| 11 | |
| 12 | **Neon MCP Server** is an open-source tool that lets you interact with your Neon Postgres databases in **natural language**. |
| 13 | |
| 14 | [](https://opensource.org/licenses/MIT) |
| 15 | |
| 16 | The Model Context Protocol (MCP) is a [standardized protocol](https://modelcontextprotocol.io) designed to manage context between large language models (LLMs) and external systems. This repository provides a remote MCP Server for [Neon](https://neon.com). |
| 17 | |
| 18 | Neon's MCP server acts as a bridge between natural language requests and the [Neon API](https://neon.com/docs/reference/api). Built upon MCP, it translates your requests into the necessary API calls, enabling you to manage tasks such as creating projects and branches, running queries, and performing database migrations seamlessly. |
| 19 | |
| 20 | Some of the key features of the Neon MCP server include: |
| 21 | |
| 22 | - **Natural language interaction:** Manage Neon databases using intuitive, conversational commands. |
| 23 | - **Simplified database management:** Perform complex actions without writing SQL or directly using the Neon API. |
| 24 | - **Accessibility for non-developers:** Empower users with varying technical backgrounds to interact with Neon databases. |
| 25 | - **Database migration support:** Leverage Neon's branching capabilities for database schema changes initiated via natural language. |
| 26 | |
| 27 | For example, in Claude Code, or any MCP Client, you can use natural language to accomplish things with Neon, such as: |
| 28 | |
| 29 | - `Let's create a new Postgres database, and call it "my-database". Let's then create a table called users with the following columns: id, name, email, and password.` |
| 30 | - `I want to run a migration on my project called "my-project" that alters the users table to add a new column called "created_at".` |
| 31 | - `Can you give me a summary of all of my Neon projects and what data is in each one?` |
| 32 | |
| 33 | > [!WARNING] |
| 34 | > **Neon MCP Server Security Considerations** |
| 35 | > The Neon MCP Server grants powerful database management capabilities through natural language requests. **Always review and authorize actions requested by the LLM before execution.** Ensure that only authorized users and applications have access to the Neon MCP Server. |
| 36 | > |
| 37 | > The Neon MCP Server is intended for local development and IDE integrations only. **We do not recommend using the Neon MCP Server in production environments.** It can execute powerful operations that may lead to accidental or unauthorized changes. |
| 38 | > |
| 39 | > For more information, see [MCP security guidance →](https://neon.com/docs/ai/neon-mcp-server#mcp-security-guidance). |
| 40 | |
| 41 | ## Setting up Neon MCP Server |
| 42 | |
| 43 | There are a few options for setting up the Neon MCP Server: |
| 44 | |
| 45 | 1. **Quick Setup with API Key (Cursor, VS Code, and Claude Code):** Run [`neon@latest init`](https://neon.com/docs/cli/init) to automatically configure Neon's MCP Server, [agent skills](https://github.com/neondatabase/agent-skills), and VS Code extension with one command. |
| 46 | 2. **Remote MCP Server (OAuth Based Authentication):** Connect to Neon's managed MCP server using OAuth for authentication. This method is more convenient as it eliminates the need to manage API keys. Additionally, you will automatically receive the latest features and improvements as soon as they are released. |
| 47 | 3. **Remote MCP Server (API Key Based Authent |