Skip to main content
Glama
notion-mcp-slim
by TakoYunYi

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 build

Configuration

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 start

Supported Tools

Tool

Description

API-post-search

Search pages and databases

API-retrieve-a-page

Get page information

API-get-block-children

Get block children (supports recursion)

API-post-page

Create a page

API-patch-page

Update a page

API-retrieve-a-page-property

Get page property

replace-page-content

Replace entire page content

API-retrieve-a-block

Get a single block

API-update-a-block

Update a block

API-delete-a-block

Delete a block

API-patch-block-children

Append child blocks

API-post-database-query

Query a database

API-retrieve-a-database

Get database schema

API-create-a-database

Create a database

API-update-a-database

Update a database

API-get-user

Get user information

API-get-users

List all users

API-get-self

Get current bot information

API-retrieve-a-comment

Get comments

API-create-a-comment

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:watch

Security 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

MIT License

Available Tools

20 tools
API-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

    C2.5/5.0

    Scored across 20 tools

    Disambiguation4/5

    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.

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An 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.
      19
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A lightweight Notion MCP server that minimizes token usage by returning Markdown instead of raw JSON, enabling efficient read/write operations on Notion pages.
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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 npm
      2
      MIT