NM

neondatabase/mcp-server-neon

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

659 stars 133 forks 质量 94 趋势 42MIT

MCP 服务器用于与 Neon 管理 API 和数据库交互

概览

是一个开源工具,允许你在 Neon Postgres 数据库中进行交互。 模型上下文协议(MCP)是一种标准化协议,旨在管理大型语言模型(LLM)与外部系统之间的上下文。该仓库为 Neon 提供了一个远程 MCP 服务器。 Neon 的 MCP 服务器作为自然语言请求与 Neon API 之间的桥梁。它基于 MCP 构建,将您的请求转换为必要的 API 调用,使您能够无缝管理创建项目和分支、运行查询以及数据库迁移等任务。 Neon MCP 服务器的一些关键功能包括: - 使用直观的对话式命令管理 Neon 数据库。- 无需编写 SQL 或直接使用 Neon API 即可执行复杂操作。- 赋能不同技术背景的用户与 Neon 数据库交互。- 利用 Neon 的分支功能,通过自然语言发起数据库模式变更。

概述(AI 翻译)

Neon MCP Server 是一个开源工具,允许你用自然语言在 Neon 上与你的 Lakebase Postgres 数据库交互。

模型上下文协议(MCP)是一种标准化协议,旨在管理大型语言模型(LLM)与外部系统之间的上下文。该仓库为 Neon 提供了一个远程 MCP 服务器。

Neon 的 MCP 服务器作为自然语言请求与 Neon API 之间的桥梁。它基于 MCP 构建,将您的请求转换为必要的 API 调用,使您能够无缝管理创建项目和分支、运行查询以及数据库迁移等任务。

Neon MCP 服务器的一些关键功能包括:

  • 自然语言交互: 使用直观的对话命令管理 Neon 数据库。
  • 简化数据库管理: 无需编写 SQL 或直接使用 Neon API 即可执行复杂操作。
  • 非开发者的无障碍: 赋能不同技术背景的用户与 Neon 数据库互动。
  • 数据库迁移支持: 利用 Neon 的分支功能,通过自然语言发起数据库模式变更。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Neon MCP Server

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

The Model Context Protocol (MCP) is a standardized protocol designed to manage context between large language models (LLMs) and external systems. This repository provides a remote 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 Code, or any MCP Client, you can use natural language to accomplish things with Neon, such as:

  • 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.
  • 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".
  • Can you give me a summary of all of my Neon projects and what data is in each one?

[!WARNING]
Neon MCP Server Security Considerations

在 GitHub 查看完整 README

安装

npx neon@latest init
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Neon": { "type": "http", "url": "https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema" } } }