Quick Start
The Notion provider works without configuration. OAuth is triggered automatically when you first access Notion:Configuration
The Notion provider requires no configuration. Add it to your project to enable Notion access:colin.toml
~/.colin/mcp-oauth/.
If you encounter authentication errors, clear your OAuth tokens and re-authenticate:
Template Functions
| Function | Purpose |
|---|---|
page() | Fetch a single page by URL or ID |
search() | Search for pages matching a query |
page()
Fetch a Notion page by its URL or page ID:| Argument | Required | Default | Description |
|---|---|---|---|
url_or_id | Yes | — | Notion page URL or page ID |
watch | No | True | Track for staleness detection |
NotionPageResource with page content and metadata.
search()
Search your Notion workspace for pages matching a query:| Argument | Required | Default | Description |
|---|---|---|---|
query | Yes | — | Search query string |
limit | No | 20 | Maximum number of results to return |
watch | No | True | Track for staleness detection |
NotionSearchResource containing matching pages (up to limit).
Objects
NotionPageResource
Returned bypage() and included in search results:
| Property | Type | Description |
|---|---|---|
content | str | Page content as markdown |
page_id | str | Notion page ID |
title | str | Page title |
url | str | Notion page URL |
last_edited_time | datetime | When the page was last modified |
created_time | datetime | When the page was created |
is_archived | bool | Whether the page is archived |
NotionSearchResource
Returned bysearch():
| Property | Type | Description |
|---|---|---|
content | str | Newline-separated page titles |
query | str | The search query used |
pages | list[NotionPageResource] | Matching pages (with search highlights as content) |
page() to fetch full content:
Dependency Tracking
Bothpage() and search() track dependencies by default. Documents recompile when tracked content changes:
watch=False:
Staleness Detection
The Notion provider useslast_edited_time for staleness detection. When a tracked page is edited in Notion, the document is marked stale and recompiled on the next build.
Examples
Build Agent Skills from Notion Docs
Create agent skills from your team’s documentation:models/onboarding-skill.md
Include a Specific Page
Reference a single page of documentation:models/api-reference.md
Generate Index from Search Results
Create an index of all pages matching a topic:models/product-index.md