Context-efficient Notion access to pages, databases, blocks, comments and files through a small tool set with token auth.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add notion-server-awkoy --env NOTION_TOKEN='<NOTION_TOKEN>' --env NOTION_PAGE_ID='<NOTION_PAGE_ID>' -- npx -y notion-mcp-server~/.codex/config.toml
[mcp_servers.notion-server-awkoy]
command = "npx"
args = ["-y", "notion-mcp-server"]
env = { NOTION_TOKEN = "<NOTION_TOKEN>", NOTION_PAGE_ID = "<NOTION_PAGE_ID>" }
# codex mcp add notion-server-awkoy --env NOTION_TOKEN='<NOTION_TOKEN>' --env NOTION_PAGE_ID='<NOTION_PAGE_ID>' -- npx -y notion-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"notion-server-awkoy": {
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"NOTION_PAGE_ID": "<NOTION_PAGE_ID>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"notion-server-awkoy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"NOTION_PAGE_ID": "<NOTION_PAGE_ID>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"notion-server-awkoy": {
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"NOTION_PAGE_ID": "<NOTION_PAGE_ID>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"notion-server-awkoy": {
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"NOTION_PAGE_ID": "<NOTION_PAGE_ID>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"notion-server-awkoy": {
"command": "npx",
"args": [
"-y",
"notion-mcp-server"
],
"env": {
"NOTION_TOKEN": "<NOTION_TOKEN>",
"NOTION_PAGE_ID": "<NOTION_PAGE_ID>"
}
}
}
}Environment variables
NOTION_TOKENNOTION_PAGE_ID
Replace the placeholders with your own credentials and keep them out of version control.