服务与工具

Neon

Neon Serverless Postgres:项目、分支、SQL 执行(需鉴权)

devOAuth

29 个可用工具

list_projects

列出您账户中的前 10 个 Neon 项目。如果找不到项目,请通过 `limit` 参数传递更高的值来增加限制。可选择使用 `search` 参数按项目名称或 ID 进行筛选。

compare_database_schema

用于比较两个分支之间数据库模式的工具。输出是一个包含 diff 字段的 JSON 对象。该字段包含统一差异(git 风格补丁)字符串。您必须能够从差异生成零停机迁移并将其应用到父分支。要生成模式差异,您必须指定 database_名称。如果未指定 database_名称,必须回退到默认数据库名称 neondb。您必须考虑 PostgreSQL 版本。两个分支的 PostgreSQL 版本相同。在运…

list_organizations

Lists all organizations that the current user has access to. Optionally filter by organization name or ID using the `search` parameter.

complete_database_migration

Complete a database migration by applying changes to the main branch and cleaning up the temporary branch. <important_notes> You MUST pass ALL values from the `prepare_database_migration` r…

complete_query_tuning

Complete a query tuning session by either applying the changes to the main branch or discarding them. <important_notes> BEFORE RUNNING THIS TOOL: test out the changes in the temporary bra…

create_branch

Create a branch in a Neon project

create_project

Create a new Neon project. If someone is trying to create a database, use this tool.

delete_branch

Delete a branch from a Neon project

delete_project

Delete a Neon project

describe_branch

Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions

describe_project

Describes a Neon project

describe_table_schema

Describe the schema of a table in a Neon database

explain_sql_statement

Describe the PostgreSQL query execution plan for a query of SQL statement by running EXPLAIN (ANAYLZE...) in the database

fetch

Fetches detailed information about a specific organization, project, or branch using the ID returned by the search tool. This tool provides comprehensive information about Neon resources for detailed …

get_connection_string

Get a PostgreSQL connection string for a Neon database with all parameters being optional

get_database_tables

Get all tables in a Neon database

get_doc_resource

<use_case> Fetches a specific Neon documentation page as markdown content. Use the list_docs_resources tool first to discover available page slugs, then pass the slug to this tool. Use th…

list_branch_computes

Lists compute endpoints for a project or specific branch

list_docs_resources

<use_case> Lists all available Neon documentation pages by fetching the index from https://neon.com/docs/llms.txt. Returns a markdown index of documentation page URLs (with .md file endings) a…

list_shared_projects

Lists projects that have been shared with the current user. These are projects that the user has been granted access to collaborate on. Optionally filter by project name or ID using the `search` param…

list_slow_queries

<use_case> Use this tool to list slow queries from your Neon database. </use_case> <important_notes> This tool queries the pg_stat_statements extension to find queries that are ta…

prepare_database_migration

<use_case> This tool performs database schema migrations by automatically generating and executing DDL statements. Supported operations: CREATE operations: - Add new columns (e.g.…

prepare_query_tuning

<use_case> This tool helps developers improve PostgreSQL query performance for slow queries or DML statements by analyzing execution plans and suggesting optimizations. The tool will: …

provision_neon_auth

Provisions Neon Auth for a Neon branch. Neon Auth is a managed authentication service built on Better Auth, fully integrated into the Neon platform. <workflow> The tool will: 1…

provision_neon_data_api

Provisions the Neon Data API for a Neon branch. The Data API enables HTTP-based access to your Postgres database with automatic JWT authentication support. <interactive_behavior> When calle…

reset_from_parent

Resets a branch to match its parent's current state, effectively discarding all changes made on the branch. To avoid data loss, provide a name to preserve the changes in a new branch using `preserveUn…

run_sql

<use_case> Use this tool to execute a single SQL statement against a Neon database. </use_case> <important_notes> If you have a temporary branch from a prior step, you MUST: …

run_sql_transaction

<use_case> Use this tool to execute a SQL transaction against a Neon database, should be used for multiple SQL statements. </use_case> <important_notes> If you have a temporary br…

search

Searches across all user organizations, projects, and branches that match the query. Returns a list of objects with id, title, and url. This tool searches through all accessible resources and provides…