mcp-server-neon  by neondatabase-labs

MCP server for natural language interaction with Neon Postgres databases

created 8 months ago
390 stars

Top 74.7% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides an open-source Model Context Protocol (MCP) server for Neon, enabling natural language interaction with Neon Postgres databases. It targets developers and non-developers alike, simplifying complex database management tasks like project creation, querying, and migrations through conversational commands.

How It Works

The Neon MCP server acts as a bridge, translating natural language requests from MCP client applications into Neon API calls. It leverages the MCP protocol for standardized context management between LLMs and external systems. This approach allows users to manage Neon resources and execute database operations without writing SQL or directly interacting with the Neon API, offering a more accessible and intuitive workflow.

Quick Start & Requirements

  • Installation:
    • Remote (Preview): Add to MCP client configuration:
      {
        "mcpServers": {
          "Neon": {
            "command": "npx",
            "args": ["-y", "mcp-remote", "https://mcp.neon.tech/sse"]
          }
        }
      }
      
    • Local: Use Smithery: npx -y @smithery/cli@latest install neon --client <client_name> or npm: npx -y @neondatabase/mcp-server-neon start <YOUR_NEON_API_KEY>.
  • Prerequisites: An MCP Client application, a Neon account, Node.js (>= v18.0.0) and npm. Local setup requires a Neon API key.
  • Setup Time: Minimal for remote; local setup involves API key generation and a single command.
  • Guides: Neon MCP Server Guide, Cursor with Neon MCP Server, Claude Desktop with Neon MCP Server.

Highlighted Details

  • Supports natural language database migrations via prepare_database_migration and complete_database_migration commands, using temporary branches for safety.
  • Offers tools for project and branch management, SQL query execution (single, transactional), schema inspection, and slow query identification.
  • Includes features for query performance tuning with explain_sql_statement and temporary branch testing.
  • Provides Neon Auth provisioning via integration with Stack Auth.

Maintenance & Community

  • Maintained by neondatabase-labs.
  • Guides available for integrating with popular clients like Cursor and Claude Desktop.

Licensing & Compatibility

  • License: Not explicitly stated in the README.
  • Compatibility: Designed for MCP client applications.

Limitations & Caveats

The remote MCP server is in Preview. The project emphasizes the need to review and authorize LLM-requested actions due to the powerful database management capabilities granted.

Health Check
Last commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
20
Issues (30d)
6
Star History
194 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Feedback? Help us improve.