notion-mcp
Unfurls linked arXiv paper URLs to enrich bookmarks with paper metadata and titles.
Unfurls linked GitHub repository URLs to enrich bookmarks with repository metadata and titles.
Syncs a Notion Twitter/X bookmarks database, including nested Tweetsmash thread and quote-tweet blocks, into a local SQLite cache; reads bookmark metadata and writes back the Done Reading? and Tags properties.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@notion-mcp find my bookmarks about MCP servers and summarize the top thread"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
notion-mcp
Turn an overgrown Notion Twitter/X bookmarks database (exported via Tweetsmash or similar) into something you can actually keep up with:
Readwise-style Daily Review Dashboard — a calm, keyboard-driven local web UI showing a capped 5-card daily deck (2 Fresh + 2 Vault Gems + 1 Wildcard), full thread & nested quote-tweet reader, Deep Read queue, and instant full-text search across your entire backlog.
Weekend Push Email Digest (Fri–Sat–Sun) — a short, Outlook-safe HTML brief curated from your unread vault so you steadily chip away at papers, repos, and threads without opening another app.
Local MCP Server (
notion-mcp) — exposes your synced, enriched bookmark vault to coding agents (Claude Code, Codex, Antigravity, Cursor, etc.) so you can ask "what did I bookmark about X?" on demand.
Why a Local SQLite Cache?
Notion's API rate-limits recursive block reads (~3 req/sec) and its built-in search doesn't index nested callout blocks well. notion-mcp syncs your Notion database and nested Tweetsmash callout trees once into a local SQLite + FTS5 database (~/.local/state/notion-mcp/bookmarks.sqlite3), then runs incremental syncs for new saves.
Safe Notion write-back: notion-mcp only ever writes to two existing Notion columns—Done Reading? (Done / Pending) and Tags (multi-select)—so your bookmark exporter never breaks. Local review states (Deep Read, Snooze, Archived), TL;DRs, signal scores, and personal notes live in SQLite.
Related MCP server: socialmemory-mcp
Prerequisites
Python 3.11+ and
uvA Notion database of exported Twitter/X bookmarks (tested with Tweetsmash's default schema)
Optional (for AI TL;DRs & auto-tagging): either the Codex CLI (
codex) or Claude Code CLI (claude)Optional (for weekend push email digests): OpenMail CLI (
openmail)
Setup Guide
1. Create a Notion Internal Integration
Go to notion.so/profile/integrations and click New integration.
Name it anything (e.g.
bookmarks-vault), choose your workspace, and keep Read content and Update content enabled.Copy the Internal Integration Secret (starts with
ntn_orsecret_).Open your bookmarks database in Notion → click
···(top right) → Connections → add your new integration.Copy the 32-character database ID from your database URL:
https://www.notion.so/<workspace>/<DATABASE_ID>?v=<view_id> ^^^^^^^^^^^^ 32 hex chars
2. Clone & Install
git clone https://github.com/deven367/notion-mcp.git
cd notion-mcp
uv sync --extra dev
uv run pytest -q3. Initialize Private Config
Run the bootstrap command to create owner-only (0600) config files in ~/.config/notion-mcp/ (never committed to Git):
uv run notion-mcp initEdit ~/.config/notion-mcp/notion.env and paste your Notion credentials:
NOTION_API_KEY=ntn_...
NOTION_DATABASE_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxSee config.example.toml for all options in ~/.config/notion-mcp/config.toml (deck size, enrichment model, optional OpenMail settings).
4. Sync, Unfurl Links, and Enrich
Start with a small batch (e.g. your 30 newest bookmarks) to verify everything end-to-end:
# 1. Sync all database rows + fetch nested thread blocks for the first 30
uv run notion-mcp sync --limit 30
# 2. Unfurl linked arXiv papers, HuggingFace Papers, GitHub repos, and article titles
uv run notion-mcp unfurl --limit 30
# 3. Generate clean titles, 2-sentence TL;DRs, takeaways, signal scores, and tags
uv run notion-mcp enrich --limit 30
# Or use Claude instead of Codex:
# uv run notion-mcp enrich --provider claude --model claude-opus-5-5 --limit 30Once you're happy with the output, run the full backfill (safe to stop and resume at any time):
make sync
make unfurl
make enrich(Optional) Push the generated tags back into Notion's Tags multi-select column:
make push-tags5. Launch the Readwise-Style Dashboard
make serve
# Opens on http://127.0.0.1:8765Keyboard shortcuts:
Key | Action |
| Move to next / previous card |
| Expand / collapse full post or thread reader |
| Mark Done (syncs |
| Save to Deep Read queue |
| Snooze for 14 days (resurfaces automatically later) |
| Skip / Archive locally |
| Open primary link (paper / repo / article) |
| Open original tweet |
Use the Aa button in the top bar to switch reader typography between Sans (Inter), Serif (Newsreader), and Quattro (iA Writer Quattro), and ◐ to toggle Light/Dark mode.
Connecting the MCP Server
Point any stdio MCP client (Claude Code, Codex, Antigravity, Cursor, etc.) at the installed entrypoint:
{
"mcpServers": {
"notion-bookmarks": {
"command": "/absolute/path/to/notion-mcp/.venv/bin/notion-mcp",
"args": ["mcp"]
}
}
}Exposed MCP Tools
Tool | Description |
| Full-text FTS5 + facet search ( |
| Read a single bookmark in full (entire thread text, external URLs, unfurled metadata, media, personal note) |
| Return today's capped Readwise-style daily review deck |
| List bookmarks saved to your Deep Read queue |
| Update triage state ( |
| Counts by status, kind, year, top tags, and top authors |
| Run an incremental Notion sync on demand |
Weekend Push Email Digests (Optional)
You can preview a themed HTML + Markdown digest locally without configuring email:
uv run notion-mcp digest
# Saves preview to ~/.local/state/notion-mcp/digests/digest-YYYY-MM-DD.htmlDigests adapt by day of week:
Friday: Friday Warmup (fresh saves + quick high-signal hits)
Saturday: Saturday Deep Dive (papers, repos, and technical threads)
Sunday: Sunday Vault Gems (resurfaced older classics + a Weekend Deep Read Spotlight)
To send via OpenMail:
Create
~/.config/notion-mcp/openmail.env(chmod 600) withOPENMAIL_API_KEY=...andOPENMAIL_INBOX_ID=....Set
openmail_envandrecipient_emailin~/.config/notion-mcp/config.toml.Send a test digest:
uv run notion-mcp digest --send
Optional: Linux systemd User Services
Unit templates for keeping the dashboard running and emailing every Fri / Sat / Sun at 08:30 live in deploy/:
mkdir -p ~/.config/systemd/user
cp deploy/notion-mcp-*.service deploy/notion-mcp-*.timer ~/.config/systemd/user/
# Edit paths/PATH in ~/.config/systemd/user/notion-mcp-*.service if needed
systemctl --user daemon-reload
systemctl --user enable --now notion-mcp-web.service
systemctl --user enable --now notion-mcp-digest.timerExpected Notion Database Schema
Built around Tweetsmash's default Notion export schema:
Property | Type | Usage |
|
| Read (raw first-line title) |
|
| Read |
|
| Read |
|
| Read ( |
|
| Read |
|
| Read |
|
| Read & Write ( |
|
| Read & Write (populated via |
Page Body | nested | Read recursively (threads & quote-tweets) |
Missing optional properties degrade gracefully.
License
Available Tools
7 toolsget_bookmarkA
Read a single bookmark in full: thread text, nested quote-tweets, unfurled paper/repo metadata, and notes.
Inputs: page_id (required). Returns: object
get_daily_reviewC
Return today's Readwise-style daily review deck (Fresh + Vault Gems + Quick Hit).
Inputs: count, reshuffle. Returns: object
get_vault_statsA
Return high-level counts of your Notion bookmark vault (by status, kind, year, top tags, top authors).
Inputs: no named parameters. Returns: object
list_deep_readsC
List bookmarks saved to your Deep Read queue.
Inputs: limit. Returns: object
mark_bookmarkB
Update a bookmark's triage state (unread, done, deep_read, snoozed, archived) and optional note.
When state is 'done' (or moved off 'done'), syncs ONLY the 'Done Reading?' column back to Notion.
Inputs: state (required), page_id (required), note, snooze_days, +1 more. Returns: object
search_bookmarksA
Full-text & facet search across all synced Notion bookmarks (including full threads & quote-tweets).
Args: query: Keyword or topic search query (searches titles, TL;DRs, full thread text, linked paper/repo titles, notes). kind: Filter by kind (Paper, Repo, Article, Thread, Talk, Tool, Note). tag: Filter by lowercase tag (e.g. interpretability, llm, cuda-kernels, agents). author: Filter by author name or handle substring. review_state: One of all, unread, done, deep_read, snoozed, archived. year: 4-digit year filter (e.g. 2026, 2025, 2024). min_signal: Minimum signal score (1-5). limit: Max results (1-50).
Inputs: tag, kind, year, limit, +4 more. Returns: object
sync_notionB
Incrementally sync new/edited rows and their thread blocks from Notion into the local SQLite cache.
Inputs: max_block_fetches. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct roles: sync pulls data, search queries the cache, get_bookmark reads one item, mark_bookmark writes triage state, and get_vault_stats aggregates. The one soft overlap is list_deep_reads versus search_bookmarks with review_state='deep_read', which the descriptions do not clarify as a convenience shortcut.
All seven tools follow a consistent snake_case verb_noun pattern (sync_notion, search_bookmarks, get_bookmark, mark_bookmark, get_vault_stats, list_deep_reads, get_daily_review). The noun vocabulary is coherent within the bookmark-vault domain.
Seven tools is well-scoped for a read-oriented Notion bookmark vault: one sync, one search, one detail read, one write, and three convenience views. Nothing feels padded or missing at the count level.
The surface covers the full local workflow: sync, search, detail read, triage write, and stats. The gaps are in write-back (only the 'Done Reading?' column syncs, and notes are not pushed) and no tool for adding new bookmarks or refreshing a single record, but agents can work around these via sync_notion.
Maintenance
Related MCP Connectors
Search and read your saved X (Twitter) bookmarks, likes, images, tags, and threads (read-only).
Search and chat with your X bookmarks, with citations back to the original posts.
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Read-it-later for AI agents. Save links, bookmarks, notes, and videos as Markdown and search them.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceFully local, privacy-first MCP server that turns exported X/Twitter bookmarks into a searchable, enriched knowledge base for Claude Desktop and Claude Code.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables local AI agents to search, read, and manage a user's saved X likes and bookmarks, sync them from a local browser, and attach notes and tags.5 npm1-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to read, search, organize, tag, export, and view your own X bookmarks through your existing browser session. It provides a local cache for offline search and optional gated folder writes for Premium accounts.MIT
- AlicenseNot gradedqualityCmaintenanceEnables clients to index and search reviewed Markdown and text documents with SQLite FTS5, read sources and prompts, manage explicit notes, and query a local Ollama assistant that uses permitted tools.1MIT