如何将 Notion 远程 MCP 连接到 OpenAI Codex CLI
约 1 分钟即可把 Notion Labs 的远程 MCP 服务端接入 OpenAI Codex CLI。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。
HTTP + SSEhttps://mcp.notion.com/mcp
Legacy SSE endpoint
SSEhttps://mcp.notion.com/sse
Install in Cursor →
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"notion": {
"url": "https://mcp.notion.com/mcp"
}
}
}claude mcp add --transport http notion https://mcp.notion.com/mcp
Install in VS Code →
Or add to .vscode/mcp.json:
{
"servers": {
"notion": {
"type": "http",
"url": "https://mcp.notion.com/mcp"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://mcp.notion.com/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"notion": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.notion.com/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"notion": {
"serverUrl": "https://mcp.notion.com/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": {
"notion": {
"url": "https://mcp.notion.com/mcp"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.notion] url = "https://mcp.notion.com/mcp"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"notion": {
"type": "streamableHttp",
"url": "https://mcp.notion.com/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"notion": {
"httpUrl": "https://mcp.notion.com/mcp"
}
}
}接入步骤
- 编辑 TOML 配置 — 打开
~/.codex/config.toml,加入[mcp_servers.notion]与url = "https://mcp.notion.com/mcp"。 - 配置凭据 — 首次调用时客户端会打开 Notion Labs 的 OAuth 授权页面——点击允许后工具即可用。
- 验证 — 在 在线 Inspector 中粘贴
https://mcp.notion.com/mcp并运行 initialize + tools/list 验证连通性。
🧰 工具预览(18)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| notion-search ~34 tok | 🟢 Read | Search pages and databases in the workspace. | — |
| notion-fetch ~32 tok | 🟢 Read | Fetch a page, database or block content. | — |
| notion-create-pages ~32 tok | 🟠 Write | Create one or more Notion pages. | — |
| notion-update-page ~32 tok | 🟠 Write | Update page properties or content. | — |
| notion-move-pages ~34 tok | 🟠 Write | Move pages between parents or workspaces. | — |
| notion-duplicate-page ~31 tok | 🟠 Write | Duplicate an existing page. | — |
| notion-create-database ~35 tok | 🟠 Write | Create an inline or full-page database. | — |
| notion-update-database ~35 tok | 🟠 Write | Update a database's schema or properties. | — |
| notion-query-database ~35 tok | 🟢 Read | Query a database with filters and sorts. | — |
| notion-create-view ~30 tok | 🟠 Write | Create a database view. | — |
| notion-update-view ~33 tok | 🟠 Write | Update a database view configuration. | — |
| notion-create-comment ~34 tok | 🟠 Write | Add a comment to a page or discussion. | — |
| notion-get-comments ~32 tok | 🟢 Read | List comments on a page or block. | — |
| notion-get-teams ~32 tok | 🟢 Read | List teamspaces in the workspace. | — |
| notion-get-users ~29 tok | 🟢 Read | List workspace users. | — |
| notion-get-user ~31 tok | 🟢 Read | Get details of a workspace user. | — |
| notion-get-self ~33 tok | 🟢 Read | Get the connected bot integration info. | — |
| notion-get-page-property ~32 tok | 🟢 Read | Get a page property value. | — |
更多连接指南
GitHub MCP → OpenAI Codex CLI
连接至 OpenAI Codex CLI →
Linear MCP → OpenAI Codex CLI
连接至 OpenAI Codex CLI →
Figma Dev Mode MCP → OpenAI Codex CLI
连接至 OpenAI Codex CLI →
AWS Knowledge → OpenAI Codex CLI
连接至 OpenAI Codex CLI →
Stripe MCP → OpenAI Codex CLI
连接至 OpenAI Codex CLI →
Claude Skills → OpenAI Codex CLI
连接至 OpenAI Codex CLI →