KosmoKrator

productivity

Notion MCP Integration for OpenAI Agents SDK

Connect Notion to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Notion to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Notion MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

{
  "mcpServers": {
    "kosmokrator-notion2": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=notion2",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=notion2 --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Notion instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Notion Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Notion integration catalog.

MCP toolSource functionTypeDescription
integration__notion2__notion2_list_pages notion2.notion2_list_pages Read Search and list pages in your Notion workspace.
integration__notion2__notion2_get_page notion2.notion2_get_page Read Get detailed information about a Notion page.
integration__notion2__notion2_create_page notion2.notion2_create_page Write Create a new page in Notion.
integration__notion2__notion2_list_databases notion2.notion2_list_databases Read List databases in your Notion workspace.
integration__notion2__notion2_query_database notion2.notion2_query_database Read Query a Notion database with optional filters.
integration__notion2__notion2_list_users notion2.notion2_list_users Read List all users in your Notion workspace.
integration__notion2__notion2_get_current_user notion2.notion2_get_current_user Read Get the currently authenticated Notion user/bot.

Related Notion Pages