Neon MCP Server
MCP server for interacting with Neon Management API and databases
Overview
Neon MCP Server is a server designed for interacting with the Neon Management API and databases using the Model Context Protocol (MCP). It allows users to manage databases and perform operations through natural language commands.
To use the Neon MCP Server, you need to install it via Smithery or run it locally with your Neon API key. After installation, you can issue commands through Claude Desktop to manage your databases.
- Supports various database management commands such as creating, deleting, and describing projects and branches. - Allows running SQL commands and managing database migrations safely. - Integrates with Claude Desktop for natural language processing.
- Creating and managing Postgres databases through natural language.
- Running migrations on database schemas with LLM assistance.
- Listing and describing existing projects and their data.
Add to your AI client
Use these steps to connect Neon MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-neon-neondatabase-labs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-neon-neondatabase-labs": {
"command": "npx",
"args": [
"-y",
"@neondatabase/mcp-server-neon",
"start",
"{NEON_API_KEY}"
]
}
}
}FAQ
**What is the Model Context Protocol (MCP)?**
MCP is a standardized protocol for managing context between large language models and external systems.
**Do I need an API key to use the Neon MCP Server?**
Yes, you need a Neon API key which can be generated through the Neon console.
**Is there a guide for using the Neon MCP Server?**
Yes, there are several guides available for different clients like Claude Desktop and Cline.