Manages a personal todo list stored in Notion through the Notion API, letting an assistant view, add and update tasks.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add notion-badhansen --env NOTION_TOKEN='<NOTION_TOKEN>' --env PAGE_ID='<PAGE_ID>' -- npx -y @smithery/cli install @Badhansen/notion-mcp --client claude~/.codex/config.toml
[mcp_servers.notion-badhansen]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@Badhansen/notion-mcp", "--client", "claude"]
env = { NOTION_TOKEN = "<NOTION_TOKEN>", PAGE_ID = "<PAGE_ID>" }
# codex mcp add notion-badhansen --env NOTION_TOKEN='<NOTION_TOKEN>' --env PAGE_ID='<PAGE_ID>' -- npx -y @smithery/cli install @Badhansen/notion-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"notion-badhansen": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Badhansen/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"PAGE_ID": "<PAGE_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"notion-badhansen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Badhansen/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"PAGE_ID": "<PAGE_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"notion-badhansen": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Badhansen/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"PAGE_ID": "<PAGE_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"notion-badhansen": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Badhansen/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"PAGE_ID": "<PAGE_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"notion-badhansen": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@Badhansen/notion-mcp",
"--client",
"claude"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"PAGE_ID": "<PAGE_ID>"
}
}
}
}需要的环境变量
NOTION_TOKENPAGE_ID
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。