Neon リモートMCPを OpenAI Codex CLI にMCP接続する方法(設定手順)

Neon のリモートMCPサーバーを OpenAI Codex CLI に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

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

Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:

[mcp_servers.neon]
url = "https://mcp.neon.tech/mcp"

接続手順

  1. TOML を編集 — ~/.codex/config.toml に [mcp_servers.neon] と url = "https://mcp.neon.tech/mcp" を追記します。
  2. 資格情報を設定 — 初回呼び出し時に Neon の OAuth 認可画面が開きます。許可するとツールが有効になります。
  3. 検証 — オンライン 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.—

その他の接続ガイド