Operate Notion with a single Markdown document — read, create, and update pages in one call.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add better-notion --env NOTION_API_KEY='<NOTION_API_KEY>' -- npx -y better-mcp-notion~/.codex/config.toml
[mcp_servers.better-notion]
command = "npx"
args = ["-y", "better-mcp-notion"]
env = { NOTION_API_KEY = "<NOTION_API_KEY>" }
# codex mcp add better-notion --env NOTION_API_KEY='<NOTION_API_KEY>' -- npx -y better-mcp-notion~/.cursor/mcp.json
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": [
"-y",
"better-mcp-notion"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"better-notion": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"better-mcp-notion"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": [
"-y",
"better-mcp-notion"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": [
"-y",
"better-mcp-notion"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"better-notion": {
"command": "npx",
"args": [
"-y",
"better-mcp-notion"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}需要的环境变量
NOTION_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。