MCP Server Neon (mcp-server-neon-e90dd0bf)

MCP数据服务

提供方 m-howard · 包名 @smithery/cli@latest

数据服务 stdio · 本地进程 OAuth 授权 社区 / 第三方
查看接入方式

Neon MCP Server 是一个开源工具,允许用户通过自然语言与 Neon Postgres 数据库进行交互。它基于模型上下文协议(MCP),作为自然语言请求与 Neon API 之间的桥梁,简化了数据库管理任务,如创建项目、分支、运行查询和执行数据库迁移。

一句话选型结论

按资料字段整理

MCP Server Neon (mcp-server-neon-e90dd0bf) 属于数据服务类 MCP 服务器,stdio · 本地进程,OAuth 授权,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类数据服务 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式本地部署
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

数据服务
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

适用场景

数据库管理自然语言交互

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
npx -y @smithery/cli@latest install neon --client <client_name>

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
数据库查询

用自然语言查库、取数,不用手写 SQL。

数据同步与清洗

把多来源数据拉到一处做整理。

报表取数

按口径快速拉出统计结果。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
MCP Server Neon (mcp-server-neon-e90dd0bf)当前 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Memory 9d25f64e 9 未标注 未标注 无 2026-05-17
Getzep MCP 9 stdio · 本地进程 本地部署 有 2026-05-17
anything-llm 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Prisma MCP Server 未标注 stdio · 本地进程 本地部署 有 2026-05-17
Astr Bot 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

数据服务
字段来自项目仓库与公开索引,中文说明由本站标注
提供方m-howard上游标注的维护方 m-howard
分类数据服务本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时@smithery/cli@latest · Node.js本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

10.1 KB
来自项目仓库与上游目录的原文,未做删改

Neon MCP Server

Neon MCP Server is an open-source tool that lets you interact with your Neon Postgres databases in natural language.

The Model Context Protocol (MCP) is a new, standardized protocol designed to manage context between large language models (LLMs) and external systems. This repository offers an installer and an MCP Server for Neon.

Neon's MCP server acts as a bridge between natural language requests and the Neon 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.

Some of the key features of the Neon MCP server include:

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

For example, in Claude Desktop, or any MCP Client, you can use natural language to accomplish things with Neon, such as:

  • Let&#x27;s create a new Postgres database, and call it &quot;my-database&quot;. Let&#x27;s then create a table called users with the following columns: id, name, email, and password.
  • I want to run a migration on my project called &quot;my-project&quot; that alters the users table to add a new column called &quot;created_at&quot;.
  • Can you give me a summary of all of my Neon projects and what data is in each one?

> [!NOTE]
> 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 and Neon API keys.

Setting up Neon MCP Server

You have two options for connecting your MCP client to Neon:

  1. Remote MCP Server (Preview): 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.

  2. Local MCP Server: Run the Neon MCP server locally on your machine, authenticating with a Neon API key.

Prerequisites

  • An MCP Client application.
  • A Neon account.
  • Node.js (>= v18.0.0) and npm: Download from nodejs.org.

For Local MCP Server setup, you also need a Neon API key. See Neon API Keys documentation for instructions on generating one.

Option 1. Remote Hosted MCP Server (Preview)

Connect to Neon's managed MCP server using OAuth for authentication. This is the easiest setup, requires no local installation of this server, and doesn't need a Neon API key configured in the client.

  • Add the following "Neon" entry to your client's MCP server configuration file (e.g., mcp.json, mcp_config.json):json { &quot;mcpServers&quot;: { &quot;Neon&quot;: { &quot;command&quot;: &quot;npx&quot;, &quot;args&quot;: [&quot;-y&quot;, &quot;mcp-remote&quot;, &quot;https://mcp.neon.tech/sse&quot;] } } }

  • Save the configuration file.

  • Restart or refresh your MCP client.
  • An OAuth window will open in your browser. Follow the prompts to authorize your MCP client to access your Neon account.

Option 2. Local MCP Server

Run the Neon MCP server on your local machine.

Setup via Smithery:```bash
npx -y @smithery/cli@latest install neon --client <client_name>


You will be prompted to enter your Neon API key. Enter the API key which you obtained from the prerequisites section
Replace `` with the name of your MCP client application. Supported client names include:

- `claude` for Claude Desktop
- `cursor` for Cursor (Installing via `smithery` makes the MCP server a global MCP server in Cursor)
- `windsurf` for Windsurf Editor
- `roo-cline` for Roo Cline VS Code extension
- `witsy` for Witsy
- `enconvo` for Enconvo
- `vscode` for Visual Studio Code

Restart your MCP client after installation.

**Setup via npm**

If your MCP client is not listed here, you can manually add the Neon MCP Server details to your client&#x27;s `mcp_config` file.

Add the following JSON configuration within the `mcpServers` section of your client&#x27;s `mcp_config` file, replacing `` with your actual Neon API key:```json
{
  &quot;mcpServers&quot;: {
    &quot;neon&quot;: {
      &quot;command&quot;: &quot;npx&quot;,
      &quot;args&quot;: [
        &quot;-y&quot;,
        &quot;@neondatabase/mcp-server-neon&quot;,
        &quot;start&quot;,
        &quot;&lt;YOUR_NEON_API_KEY&gt;&quot;
      ]
    }
  }
}

Troubleshooting

If your client does not use JSON for configuration of MCP servers (such as older versions of Cursor), you can use the following command when prompted:```bash
npx -y @neondatabase/mcp-server-neon start <YOUR_NEON_API_KEY>


#### Troubleshooting on Windows

If you are using Windows and encounter issues while adding the MCP server, you might need to use the Command Prompt (`cmd`) or Windows Subsystem for Linux (`wsl`) to run the necessary commands. Your configuration setup may resemble the following:```json
{
  &quot;mcpServers&quot;: {
    &quot;neon&quot;: {
      &quot;command&quot;: &quot;cmd&quot;,
      &quot;args&quot;: [
        &quot;/c&quot;,
        &quot;npx&quot;,
        &quot;-y&quot;,
        &quot;@neondatabase/mcp-server-neon&quot;,
        &quot;start&quot;,
        &quot;&lt;YOUR_NEON_API_KEY&gt;&quot;
      ]
    }
  }
}
``````json
{
  &quot;mcpServers&quot;: {
    &quot;neon&quot;: {
      &quot;command&quot;: &quot;wsl&quot;,
      &quot;args&quot;: [
        &quot;npx&quot;,
        &quot;-y&quot;,
        &quot;@neondatabase/mcp-server-neon&quot;,
        &quot;start&quot;,
        &quot;&lt;YOUR_NEON_API_KEY&gt;&quot;
      ]
    }
  }
}

Guides

  • Neon MCP Server Guide
  • Connect MCP Clients to Neon
  • Cursor with Neon MCP Server
  • Claude Desktop with Neon MCP Server
  • Cline with Neon MCP Server
  • Windsurf with Neon MCP Server
  • Zed with Neon MCP Server

Features

Supported Tools

The Neon MCP Server provides the following actions, which are exposed as "tools" to MCP Clients. You can use these tools to interact with your Neon projects and databases using natural language commands.

Project Management:

  • list_projects: Retrieves a list of your Neon projects, providing a summary of each project associated with your Neon account. Supports limiting the number of projects returned (default: 10).
  • describe_project: Fetches detailed information about a specific Neon project, including its ID, name, and associated branches and databases.
  • create_project: Creates a new Neon project in your Neon account. A project acts as a container for branches, databases, roles, and computes.
  • delete_project: Deletes an existing Neon project and all its associated resources.

Branch Management:

  • create_branch: Creates a new branch within a specified Neon project. Leverages Neon's branching feature for development, testing, or migrations.
  • delete_branch: Deletes an existing branch from a Neon project.
  • describe_branch: Retrieves details about a specific branch, such as its name, ID, and parent branch.
  • list_branch_computes: Lists compute endpoints for a project or specific branch, including compute ID, type, size, and autoscaling information.

SQL Query Execution:

  • get_connection_string: Returns your database connection string.
  • run_sql: Executes a single SQL query against a specified Neon database. Supports both read and write operations.
  • run_sql_transaction: Executes a series of SQL queries within a single transaction against a Neon database.
  • get_database_tables: Lists all tables within a specified Neon database.
  • describe_table_schema: Retrieves the schema definition of a specific table, detailing columns, data types, and constraints.
  • list_slow_queries: Identifies performance bottlenecks by finding the slowest queries in a database. Requires the pg_stat_statements extension.

Database Migrations (Schema Changes):

  • prepare_database_migration: Initiates a database migration process. Critically, it creates a temporary branch to apply and test the migration safely before affecting the main branch.
  • complete_database_migration: Finalizes and applies a prepared database migration to the main branch. This action merges changes from the temporary migration branch and cleans up temporary resources.

Query Performance Tuning:

  • explain_sql_statement: Analyzes a SQL query and returns detailed execution plan information to help understand query performance.
  • prepare_query_tuning: Identifies potential performance issues in a SQL query and suggests optimizations. Creates a temporary branch for testing improvements.
  • complete_query_tuning: Finalizes and applies query optimizations after testing. Merges changes from the temporary tuning branch to the main branch.

Neon Auth:

  • provision_neon_auth: Action to provision Neon Auth for a Neon project. It allows developers to easily setup authentication infrastructure by creating a integration with Stack Auth (@stackframe/stack).

Migrations

Migrations are a way to manage changes to your database schema over time. With the Neon MCP server, LLMs are empowered to do migrations safely with separate "Start" (prepare_database_migration) and "Commit" (complete_database_migration) commands.

The "Start" command accepts a migration and runs it in a new temporary branch. Upon returning, this command hints to the LLM that it should test the migration on this branch. The LLM can then run the "Commit" command to apply the migration to the original branch.

Development

Development with MCP CLI Client

The easiest way to iterate on the MCP Server is using the mcp-client/. Learn more in mcp-client/README.md.```bash
npm install
npm run build
npm run watch # You can keep this open.
cd mcp-client/ && NEON_API_KEY=... npm run start:mcp-server-neon


## Development with Claude Desktop (Local MCP Server)```bash
npm install
npm run build
npm run watch # You can keep this open.
node dist/index.js init $NEON_API_KEY

Then, restart Claude each time you want to test changes.

Testing

To run the tests you need to setup the .env file according to the .env.example file.bash npm run test

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
MCP Server Neon (mcp-server-neon-e90dd0bf) 怎么安装?

在客户端按下面的安装命令接入:npx -y @smithery/cli@latest install neon --client <client_name>。对应的包名是 @smithery/cli@latest。装完在客户端配置里引用同一个包或端点。

MCP Server Neon (mcp-server-neon-e90dd0bf) 怎么在客户端里配置?

它的传输方式未标注,在客户端 MCP 配置里按官方文档填写启动命令和参数,保存后重启客户端生效。

MCP Server Neon (mcp-server-neon-e90dd0bf) 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Server Neon (mcp-server-neon-e90dd0bf) 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

MCP Server Neon (mcp-server-neon-e90dd0bf) 能提供哪些能力?

资料显示能力标签包括 数据分析、自然语言交互、JavaScript、OAuth认证、STDIO。具体工具清单以官方文档为准。

MCP Server Neon (mcp-server-neon-e90dd0bf) 需要什么运行环境?

运行时为 Node.js;属于本地进程,需要在本机装好运行环境。

MCP Server Neon (mcp-server-neon-e90dd0bf) 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。