notion-mcp-slim
Provides tools for interacting with the Notion API, enabling search, page and block retrieval/creation/update/deletion, database querying and management, user lookup, and comment management, while converting Notion JSON responses into token-efficient Markdown.
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-slim search my Notion for the Q3 planning page"
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-slim
An MCP (Model Context Protocol) proxy server that converts Notion API JSON responses to slim Markdown format, saving approximately 90% of token consumption.
Note: This is an unofficial community project, not affiliated with Notion.
Architecture
Claude ←→ notion-mcp-slim (Proxy) ←→ Notion API
↓
Transformer
(JSON → Markdown)Related MCP server: MCP Notion Server (@suncreation)
Features
Read Operations: Converts JSON to human-readable Markdown format
Write Operations: Slim responses to success/failure + key IDs
UUID Compression: Automatically compresses long UUIDs to short codes
Full API Support: Search, Pages, Blocks, Databases, Users, Comments
Installation
npm install
npm run buildConfiguration
Set environment variable (choose one):
export NOTION_API_KEY="your-notion-api-key"
# or
export NOTION_API_KEY_Claude="your-notion-api-key"Usage
Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"notion-mcp-slim": {
"command": "node",
"args": ["/path/to/notion-mcp-slim/dist/index.js"],
"env": {
"NOTION_API_KEY": "your-notion-api-key"
}
}
}
}Direct Execution
npm startSupported Tools
Tool | Description |
| Search pages and databases |
| Get page information |
| Get block children (supports recursion) |
| Create a page |
| Update a page |
| Get page property |
| Replace entire page content |
| Get a single block |
| Update a block |
| Delete a block |
| Append child blocks |
| Query a database |
| Get database schema |
| Create a database |
| Update a database |
| Get user information |
| List all users |
| Get current bot information |
| Get comments |
| Create a comment |
Token Savings
Metric | Original JSON | Converted Markdown |
Single page tokens | ~14,000 | ~1,400 |
Savings ratio | - | 90% |
Development
# Watch mode compilation
npm run dev
# Run tests
npm test
# Watch mode tests
npm run test:watchSecurity Notes
API Key is stored only in local environment variables, not sent to any third-party services
This tool runs purely locally and does not collect any user data
Please keep your Notion API Key secure and never commit it to version control
Disclaimer
This is an unofficial community project, not affiliated with Notion, Inc.
This software is provided "as is" without any express or implied warranties
Users assume all risks of using this tool, including but not limited to data security risks
The author is not responsible for any direct or indirect data loss, damage, or other losses
Compatibility with future versions of Notion API is not guaranteed
Please read the Notion API Terms of Use before use
License
Available Tools
20 toolsAPI-create-a-commentD
Notion | Create comment
Inputs: parent (required), rich_text (required).
API-create-a-databaseD
Notion | Create a database
Inputs: parent (required), properties (required), title.
API-delete-a-blockC
Notion | Delete a block
Inputs: block_id (required), context_page_id.
API-get-block-childrenC
Notion | Retrieve block children
Inputs: block_id (required), depth, page_size, start_cursor, +1 more.
API-get-selfB
Notion | Retrieve your token's bot user
Inputs: no named parameters.
API-get-userC
Notion | Retrieve a user
Inputs: user_id (required).
API-get-usersC
Notion | List all users
Inputs: page_size, start_cursor.
API-patch-block-childrenC
Notion | Append block children
Inputs: block_id (required), children (required), after, context_page_id.
API-patch-pageC
Notion | Update page properties
Inputs: page_id (required), icon, cover, archived, +2 more.
API-post-database-queryC
Notion | Query a database
Inputs: database_id (required), sorts, filter, archived, +4 more.
API-post-pageD
Notion | Create a page
Inputs: parent (required), properties (required), icon, cover, +1 more.
API-post-searchC
Notion | Search by title
Inputs: sort, query, filter, page_size, +1 more.
API-retrieve-a-blockC
Notion | Retrieve a block
Inputs: block_id (required), context_page_id.
API-retrieve-a-commentC
Notion | Retrieve comments
Inputs: block_id (required), page_size, start_cursor.
API-retrieve-a-databaseC
Notion | Retrieve a database
Inputs: database_id (required).
API-retrieve-a-pageC
Notion | Retrieve a page
Inputs: page_id (required), filter_properties.
API-retrieve-a-page-propertyC
Notion | Retrieve a page property item
Inputs: page_id (required), property_id (required), page_size, start_cursor.
API-update-a-blockD
Notion | Update a block
Inputs: block_id (required), type, archived, context_page_id.
API-update-a-databaseD
Notion | Update a database
Inputs: database_id (required), title, properties, description.
replace-page-contentA
Notion | Replace entire page content (delete all blocks then append new ones). Supported block types: paragraph, heading_1/2/3, bulleted_list_item, numbered_list_item, to_do, toggle, quote, callout, code, divider, table (with table_row as children). Note: link in rich_text must have url property or be omitted entirely (link: null is NOT allowed).
Inputs: page_id (required), children (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool maps to a distinct Notion resource+action (block, page, database, user, comment, search), so boundaries are mostly clear. Minor overlap exists between the composite replace-page-content and the block-level patch/delete tools, and between get-block-children and retrieve-a-block, but descriptions make the intended use apparent.
Most tools follow an 'API-<httpverb>-<resource>' pattern, but the read verbs are inconsistent (get-block-children / get-user / get-users vs retrieve-a-page / retrieve-a-block / retrieve-a-database), and replace-page-content breaks the convention entirely with a different prefix and verb style. It remains readable but is not a predictable pattern.
20 tools is on the heavy side but each corresponds to a real, distinct Notion API endpoint, so the surface is well-scoped rather than padded. A slightly smaller set could be achieved by folding the composite replace-page-content into existing block tools.
Coverage is strong: full block CRUD, page create/retrieve/update, database create/retrieve/update/query, user and comment reads plus comment creation, and a bulk page-content replacement helper. Gaps are minor (no explicit page archive/delete tool, no comment deletion), and most can be worked around via update-page or are unsupported by the upstream API.
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.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
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,672 npm36Apache 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
- AlicenseAqualityDmaintenanceA lightweight Notion MCP server that minimizes token usage by returning Markdown instead of raw JSON, enabling efficient read/write operations on Notion pages.9MIT
- AlicenseNot gradedqualityDmaintenanceA token-optimized MCP server for Notion that reduces context window usage by 73% while preserving full functionality, enabling AI assistants to interact with Notion efficiently.29 npm2MIT