List databases, create pages and search a Notion workspace through the Notion API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add notion-ccabanillas --env NOTION_API_KEY='<NOTION_API_KEY>' -- npx -y @smithery/cli install @ccabanillas/notion-mcp --client claude~/.codex/config.toml
[mcp_servers.notion-ccabanillas]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@ccabanillas/notion-mcp", "--client", "claude"]
env = { NOTION_API_KEY = "<NOTION_API_KEY>" }
# codex mcp add notion-ccabanillas --env NOTION_API_KEY='<NOTION_API_KEY>' -- npx -y @smithery/cli install @ccabanillas/notion-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"notion-ccabanillas": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@ccabanillas/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"notion-ccabanillas": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@ccabanillas/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"notion-ccabanillas": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@ccabanillas/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"notion-ccabanillas": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@ccabanillas/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"notion-ccabanillas": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@ccabanillas/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>"
}
}
}
}需要的环境变量
NOTION_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。