服务与工具
Neon
Neon Serverless Postgres:项目、分支、SQL 执行(需鉴权)
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…