tiny-notion-mcp
Provides tools for searching, reading, writing, and creating pages in Notion, returning results in compact formats to minimize token usage.
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., "@tiny-notion-mcp search for pages about 'project roadmap'"
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.
Why?
The official Notion MCP server returns raw Notion API JSON — deeply nested, metadata-heavy payloads that consume thousands of tokens per response. In LLM-powered workflows, token usage directly translates to latency, cost, and context pressure.
tiny-notion-mcp takes a different approach: every tool returns the smallest useful representation.
Official MCP | tiny-notion-mcp | |
Read format | Notion API JSON | Plain Markdown |
Search format | JSON objects | 1 line per result (TOON) |
Database queries | JSON | Markdown table |
Inline formatting | Raw annotations | Rendered Markdown |
Pagination | Manual cursor |
|
In practice this cuts token consumption by ~60-90% on read-heavy workflows, while remaining fully compatible with the MCP protocol.
Related MCP server: Markdown-To-Notion
Architecture
flowchart LR
subgraph Client["MCP Client (Claude, Cursor, etc.)"]
direction TB
C1["notion_search(query)"]
C2["notion_read(page_id)"]
C3["notion_write(markdown)"]
C4["notion_query_database(db_id)"]
C5["notion_create_page(...)"]
C6["notion_update_page(...)"]
C7["notion_get_blocks(...)"]
C8["notion_delete_block/delete_page(...)"]
end
subgraph Server["tiny-notion-mcp (stdio)"]
SERVER["MCP Server"]
CORE["Core Logic\n• Markdown ↔ Notion blocks\n• Inline formatting\n• Table handling\n• Pagination"]
end
subgraph Notion["Notion API"]
API["notion-client SDK"]
end
C1 & C2 & C3 & C4 & C5 & C6 & C7 & C8 -->|"JSON-RPC"| SERVER
SERVER --> CORE
CORE --> API
API --> NotionAPI["api.notion.com"]The server uses an abstract NotionClient interface, making the core logic fully testable without a Notion account. A production implementation wraps the notion-client SDK; tests use a lightweight mock.
Tools
Tool | Description |
| Search pages by title. Returns TOON format — one line per hit. |
| Read a page as Markdown. Supports pagination via |
| List block IDs and types on a page. Used to find insertion points for |
| Append Markdown to a page. Automatically chunked into batches of 50 blocks. |
| Create a sub-page or database entry, optionally with Markdown content. |
| Update Notion properties on a page (status, dates, relations, etc.). |
| Query a database and return results as a Markdown table with an ID column. |
| ⚠️ Delete a single block (trashed, recoverable for 30 days). |
| ⚠️ Move a page to Notion trash (recoverable for 30 days). |
TOON format
Search results and page creation responses use the compact TOON format:
Page title | page-id | https://notion.so/... | parent:<parent-id>One line per result. No nested JSON. No metadata noise.
Installation
Prerequisites: uv and a Notion integration token.
git clone https://github.com/AyanoT1/tiny-notion-mcp
cd tiny-notion-mcp
uv tool install .Connect to your MCP client
Claude Desktop (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"tiny-notion-mcp": {
"command": "uvx",
"args": ["tiny-notion-mcp"],
"env": {
"NOTION_TOKEN": "ntn_..."
}
}
}
}Cursor / VS Code with an MCP client:
{
"mcpServers": {
"tiny-notion-mcp": {
"command": "uvx",
"args": ["tiny-notion-mcp"],
"env": {
"NOTION_TOKEN": "ntn_..."
}
}
}
}Note: Before using the tools, connect the integration to any Notion pages or databases you want it to access via the Notion UI (⋮ → Connections → Add integration).
Supported block types
Read (Notion → Markdown)
Block type | Markdown output |
Paragraph | Plain text |
Heading 1 / 2 / 3 |
|
Bulleted list |
|
Numbered list |
|
Code block |
|
Divider |
|
To-do item |
|
Block quote |
|
Callout |
|
Table | Pipe-delimited rows with Markdown inline formatting |
Child page |
|
All inline formatting (bold, italic, bold-italic, strikethrough, underline, inline code, links) is preserved in Markdown.
Write (Markdown → Notion)
Markdown is parsed and appended to the target page as native Notion blocks. Large content is automatically split into batches of 50 to respect the Notion API limit. Tables are sent with embedded child rows in a single API call.
Tip: Use
notion_get_blocksto find a block ID, then pass it asafter_block_idtonotion_writeto insert content at a specific position rather than the page end.
Known limitations
Toggle blocks, table of contents, files, images, and videos are silently skipped on read and cannot be written.
Empty paragraph blocks are not round-tripped. Spacer paragraphs in Notion are lost on a read → write cycle. This is inherent to a flat Markdown representation.
Table header flag is not round-tripped. The writer always sets
has_column_header: truebecause standard Markdown tables imply a header.
Design principles
Token efficiency first. Every response is minimal while remaining actionable.
No intermediate files. All content is returned inline as strings — no temp files, no file paths.
Testable without a Notion account. The
NotionClientinterface is injected; core logic is fully isolated.Native Notion types. Markdown is converted to real Notion blocks (headings, lists, tables, code blocks, callouts, quotes, to-dos) — not flat text dumps.
Development
git clone https://github.com/AyanoT1/tiny-notion-mcp
cd tiny-notion-mcp
uv sync --dev
uv run pytestTests use a stub NotionClient and make no real API calls — no Notion account or token required.
To update a local Claude Code installation after making changes:
uv tool install . --force --no-cacheThen reconnect the MCP server from Settings → MCP → ⤓ Reconnect.
Roadmap
Toggle block read/write support
Image and file block support
Table of contents block support
Batch write operations
.envfile support for token configurationPyPI distribution
License
MIT © AyanoT1
Available Tools
9 toolsnotion_create_pageA
Create a new page or database entry. Set parent_type='page_id' (default) for a subpage, or 'database_id' to insert a row into a database. For database entries, pass extra properties (Status, Date, etc.) as Notion property objects via the 'properties' field. Returns TOON format with the new page ID.
Inputs: parent_id (required), title (required), parent_type, properties, +1 more.
notion_delete_blockA
⚠️ DESTRUCTIVE — deletes a single block (moves to Notion's trash, recoverable within 30 days). Use notion_get_blocks to find the block ID first. Deleting a parent block (table, toggle) also deletes all its children.
Inputs: block_id (required).
notion_delete_pageA
⚠️ DESTRUCTIVE — moves a Notion page to trash. The page is recoverable from Notion's trash within 30 days. Only call this when the user explicitly asks to delete a page.
Inputs: page_id (required).
notion_get_blocksA
List all blocks on a page with their IDs. Returns one line per block: block-id | block_type | text_preview. If the response ends with 'MORE: ', pass that cursor as start_cursor to get the next batch. Use the block-id with notion_write's after_block_id to insert content after a specific block.
Inputs: page_id (required), start_cursor.
notion_query_databaseA
Query a Notion database and return results as a markdown table. Each row is one entry; columns match the database properties. An ID column is appended for follow-up reads or writes. If the response ends with 'MORE: ', pass that cursor as start_cursor to get the next batch.
Inputs: database_id (required), limit, start_cursor.
notion_readA
Read a Notion page as markdown. Returns markdown string directly. If the response ends with 'MORE: ', pass that cursor as start_cursor to read the next batch of blocks.
Inputs: page_id (required), start_cursor.
notion_searchA
Search Notion pages. Returns TOON format: Title | ID | URL (one per line)
Inputs: query (required), limit.
notion_update_pageA
Update properties of a Notion page or database entry. Pass a dict of Notion property objects, e.g. {"Status": {"status": {"name": "Done"}}} or {"Date": {"date": {"start": "2026-04-30"}}}.
Inputs: page_id (required), properties (required).
notion_writeA
Append markdown to a Notion page. Converts markdown to blocks. Pass after_block_id to insert the content after a specific block rather than at the end of the page. Use notion_read to find block IDs (each block object has an 'id' field).
Inputs: page_id (required), markdown (required), after_block_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct Notion operation (create page, delete block, query database, etc.) with no overlapping functionality. The descriptions clearly differentiate between similar-sounding tools like notion_read (page as markdown) and notion_get_blocks (list block IDs).
All tools follow a consistent `notion_<verb>_<noun>` pattern using snake_case. The verbs are descriptive and align with the action (create, delete, get, query, read, search, update, write), making the naming predictable and easy to follow.
With 9 tools, the set is well-scoped for a Notion integration. Each tool serves a necessary core function without being excessive. The count is typical for such an API surface, allowing efficient coverage without overwhelming an agent.
The tools cover essential CRUD operations for pages and databases, plus search, block listing, and content writing. Missing are direct block update and database creation, but the existing set handles most common workflows. Minor gaps, but not critical.
Maintenance
Related MCP Connectors
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Related MCP Servers
- AlicenseAqualityAmaintenanceMarkdown-first MCP server for Notion that provides 7 composite action-based tools consolidating 28+ REST API endpoints, enabling AI agents to efficiently manage pages, databases, blocks, and content with automatic pagination and bulk operations.101,730 npm36Apache 2.0
- AlicenseCqualityDmaintenanceAn MCP server that converts Markdown content to Notion API-compatible formats, suitable for content management and development integration.11Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enables LLMs to interact with Notion workspaces via the Notion API, supporting page creation, database management, and content retrieval. It features markdown conversion to optimize token usage and enhanced error handling for more reliable workspace interactions.191MIT
- AlicenseNot gradedqualityBmaintenanceA lightweight, read-only MCP server for Notion that enables searching, reading pages, and querying databases with token-efficient output and smart caching.26 npm5MIT