Skip to main content

Prerequisites

  1. Start by setting up a new internal integration in Notion: https://www.notion.so/profile/integrations
  2. Export your new Notion key: export NOTION_API_KEY=ntn_****
  3. Connect your relevant Notion pages to the integration. To do this, you’ll need to visit that page, and click on the 3 dots, and select “Connect to integration”.
  4. Install dependencies: uv pip install agno mcp openai

Run the Example