Simple MCP integration that lets Claude read and manage a personal Notion todo list.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add notion-todo --env NOTION_API_KEY='<NOTION_API_KEY>' --env NOTION_DATABASE_ID='<NOTION_DATABASE_ID>' -- python -m notion_mcp~/.codex/config.toml
[mcp_servers.notion-todo]
command = "python"
args = ["-m", "notion_mcp"]
env = { NOTION_API_KEY = "<NOTION_API_KEY>", NOTION_DATABASE_ID = "<NOTION_DATABASE_ID>" }
# codex mcp add notion-todo --env NOTION_API_KEY='<NOTION_API_KEY>' --env NOTION_DATABASE_ID='<NOTION_DATABASE_ID>' -- python -m notion_mcp~/.cursor/mcp.json
{
"mcpServers": {
"notion-todo": {
"command": "python",
"args": [
"-m",
"notion_mcp"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>",
"NOTION_DATABASE_ID": "<NOTION_DATABASE_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"notion-todo": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"notion_mcp"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>",
"NOTION_DATABASE_ID": "<NOTION_DATABASE_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"notion-todo": {
"command": "python",
"args": [
"-m",
"notion_mcp"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>",
"NOTION_DATABASE_ID": "<NOTION_DATABASE_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"notion-todo": {
"command": "python",
"args": [
"-m",
"notion_mcp"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>",
"NOTION_DATABASE_ID": "<NOTION_DATABASE_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"notion-todo": {
"command": "python",
"args": [
"-m",
"notion_mcp"
],
"env": {
"NOTION_API_KEY": "<NOTION_API_KEY>",
"NOTION_DATABASE_ID": "<NOTION_DATABASE_ID>"
}
}
}
}需要的环境变量
NOTION_API_KEYNOTION_DATABASE_ID
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。