如何将 Neon 远程 MCP 连接到 Kiro

约 1 分钟即可把 Neon 的远程 MCP 服务端接入 Kiro。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~742 tok23 tools
Streamable HTTPhttps://mcp.neon.tech/mcp

Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:

{
  "mcpServers": {
    "neon": {
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}

接入步骤

  1. 打开 MCP 配置 — Kiro → MCP 面板,或编辑工作区 .kiro/settings/mcp.json。
  2. 添加服务端 — 写入 "neon": { "url": https://mcp.neon.tech/mcp }。
  3. 完成认证 — 首次调用时客户端会打开 Neon 的 OAuth 授权页面——点击允许后工具即可用。
  4. 验证 — 在 在线 Inspector 中粘贴 https://mcp.neon.tech/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(23)

ToolSafetyDescriptionParameters
list_projects
~27 tok
🟢 ReadList Neon projects.—
list_shared_projects
~32 tok
🟢 ReadList projects shared with you.—
create_project
~28 tok
🟠 WriteCreate a Neon project.—
delete_project
~28 tok
🔴 DestructiveDelete a Neon project.—
describe_project
~29 tok
🟢 ReadDescribe a Neon project.—
get_connection_string
~33 tok
🟢 ReadGet a Postgres connection string.—
run_sql
~31 tok
🟠 WriteRun a SQL statement in a Neon database.—
run_sql_transaction
~36 tok
🟠 WriteRun multiple SQL statements in one transaction.—
describe_table_schema
~31 tok
🟢 ReadDescribe a table's schema.—
get_database_tables
~32 tok
🟢 ReadList tables in a Neon database.—
create_branch
~28 tok
🟠 WriteCreate a Neon branch.—
describe_branch
~29 tok
🟢 ReadDescribe a Neon branch.—
delete_branch
~28 tok
🔴 DestructiveDelete a Neon branch.—
prepare_database_migration
~36 tok
🟠 WritePrepare a schema migration on a branch.—
complete_database_migration
~34 tok
🔴 DestructiveComplete a prepared migration.—
explain_sql_statement
~35 tok
🟢 ReadGet the execution plan of a SQL statement.—
prepare_query_tuning
~34 tok
🟢 ReadPrepare query tuning recommendations.—
complete_query_tuning
~32 tok
🟠 WriteApply prepared query tuning.—
list_slow_queries
~31 tok
🟢 ReadList slow queries in a project.—
provision_neon_auth
~33 tok
🟠 WriteProvision Neon Auth for a project.—
get_project_id_from_uri
~34 tok
🟢 ReadResolve a project ID from a Neon URI.—
list_organizations
~30 tok
🟢 ReadList Neon organizations.—
list_branch_computes
~31 tok
🟢 ReadList computes of a branch.—

更多连接指南