Bidirectional sync between Cortex sessions and Notion — query databases, create and update pages, search workspaces, and sync agent memories to Notion documents.
cortex plugin install cortex-plugin-notionOr install from local development:
git clone https://github.com/CortexPrism/cortex-plugin-notion.git
cd cortex-plugin-notion
cortex plugin install .- Go to Notion Integrations
- Click New integration
- Name it "CortexPrism" and select your workspace
- Copy the Internal Integration Secret (starts with
secret_)
For each database you want Cortex to access:
- Open the database in Notion
- Click
...→ Connections → Add your CortexPrism integration
| Setting | Type | Default | Description |
|---|---|---|---|
notionToken |
string (secret) | — | Notion integration token from my-integrations page |
defaultDatabaseId |
string | — | Default database ID for operations |
Query a Notion database with filters and sorts.
{
"database_id": "abc123...",
"filter": "{\"property\":\"Status\",\"select\":{\"equals\":\"In Progress\"}}",
"page_size": 50
}Retrieve a Notion page with all block content.
{
"page_id": "abc123...",
"include_children": true
}Create a new page in a database or as a standalone page.
{
"parent_id": "abc123...",
"parent_type": "database",
"title": "Meeting Notes: Q2 Planning",
"content": "# Q2 Planning Meeting\n\n- Discussed roadmap priorities\n- Decided on feature freeze date"
}Update an existing page's properties and/or content.
{
"page_id": "abc123...",
"properties": "{\"Status\":{\"select\":{\"name\":\"Done\"}}}",
"content": "\n## Action Items\n- [x] Review architecture doc\n- [ ] Schedule follow-up",
"mode": "append"
}Search across the Notion workspace.
{
"query": "Q2 roadmap",
"filter_type": "page",
"page_size": 20
}List all databases accessible to the integration.
{ "page_size": 50 }Sync Cortex session memories to a Notion database.
{
"database_id": "abc123...",
"memories": "[{\"title\":\"Auth service refactor\",\"content\":\"Refactored the auth service to use JWT...\",\"tags\":[\"backend\",\"security\"]}]"
}> Find all open tasks in the Sprint Board and create a summary
1. notion_query_database → { database_id: "sprint-db", filter: { Status: "In Progress" } }
→ Returns 8 matching tasks
2. notion_create_page → { title: "Sprint Status Summary", content: "..." }
→ Summary page created in wiki database
| Capability | Purpose |
|---|---|
network:fetch |
Notion API access for database queries, page management, and search |
deno task test
deno fmt && deno lint
# Test with your Notion token
cortex plugin call cortex-plugin-notion notion_search '{"query":"test"}'MIT