mcp-server-neon  by neondatabase

MCP server for natural language interaction with Neon Postgres databases

Created 9 months ago
462 stars

Top 65.6% 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

2 days ago

Responsiveness

1+ week

Pull Requests (30d)
12
Issues (30d)
1
Star History
42 stars in the last 30 days

Explore Similar Projects

Starred by Simon Willison Simon Willison(Coauthor of Django), Jared Palmer Jared Palmer(Ex-VP AI at Vercel; Founder of Turborepo; Author of Formik, TSDX), and
2 more.

cli by planetscale

0%
626
CLI tool for PlanetScale database management
Created 4 years ago
Updated 6 days ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems") and Gabriel Almeida Gabriel Almeida(Cofounder of Langflow).

sqlchat by sqlchat

0.3%
5k
Chat-based SQL client using natural language
Created 2 years ago
Updated 2 months ago
Starred by Chaoyu Yang Chaoyu Yang(Founder of Bento), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
3 more.

DB-GPT by eosphoros-ai

0.2%
17k
AI-native data app development framework with agentic workflow
Created 2 years ago
Updated 1 week ago
Feedback? Help us improve.