Skip to main content
Glama
tiny-notion-mcp

tiny-notion-mcp

tiny-notion-mcp

公式Notion MCPと比較して、トークン使用量を最小限に抑えた軽量なNotion MCPサーバーです。

Notion APIの生のJSONを返す代わりに、すべてのツールが最も有用な最小限の表現を返します。ページはプレーンなMarkdownとして、検索結果はヒットごとに1行で返されます。実際、これにより読み取り中心のワークフローにおけるトークン消費量が大幅に削減されます。

ツール

ツール

説明

notion_search

タイトルでページを検索します。結果をTOON形式で1行ずつ返します。

notion_read

ページをMarkdownとして読み取ります。

notion_write

既存のページにMarkdownを追記します。

notion_create_page

親ページの下にサブページを作成します(オプションでコンテンツを含めることも可能)。

TOON形式

検索結果とページ作成のレスポンスには、コンパクトな TOON (Title | Object | Optional Notes) 形式を使用します:

Page title | page-id | https://notion.so/... | parent:<parent-id>

これにより、検索レスポンスが数百トークンのJSONではなく、結果ごとに1行に収まります。

Related MCP server: MCP Notion Server (@suncreation)

サポートされているブロックタイプ

読み取り (notion_read)

ブロックタイプ

Markdown出力

段落

プレーンテキスト

見出し 1 / 2 / 3

# / ## / ###

箇条書きリスト

- item

番号付きリスト

1. item, 2. item, …

コードブロック

```lang … ```

テーブル

パイプ区切りの行

子ページ

[Subpage: title](id)

インライン書式(太字、斜体、太字斜体、取り消し線、下線、インラインコード、リンク)はMarkdownとして保持されます。

書き込み (notion_write)

書き込み時も同じブロックタイプがサポートされています。Markdownは解析され、Notionのネイティブブロックとしてターゲットページに追記されます。

未実装(v2)

以下のブロックタイプはNotionでは認識されますが、まだ処理されません。読み取り時には無視され、書き込むこともできません:

  • 区切り線 (---)

  • 引用ブロック

  • To-do / チェックボックスリスト

  • コールアウトブロック

  • トグルリスト

  • 目次

  • ファイル、画像、動画

既知の制限事項

  • 異なるリストタイプ間の空の段落ブロックは往復できません。 ページに箇条書きリストと番号付きリストを分ける明示的な空の段落がある場合、その区切りは読み取り→書き込みのサイクルで失われます。Markdownがブロック間に挿入する "\n\n" は視覚的には同等ですが、書き込み時にNotionの空の段落ブロックを生成するわけではありません。これはフラットなMarkdown表現の固有の制限であり、v2形式が設計されるまで維持されます。

  • テーブルヘッダーフラグは往復できません。 Notionのテーブルは列ヘッダー行なしで作成できます (has_column_header: false)。現在のライターは標準的なMarkdownテーブルがヘッダーを前提としているため、常に has_column_header: true を設定します。書き戻されたテーブルは見た目は同じですが、ヘッダーフラグが設定された状態になります。

要件

  • Python 3.12以上

  • 使用したいページに対する読み取り/書き込み権限を持つNotionインテグレーション・トークン

インストール

# From source
git clone https://github.com/your-username/tiny-notion-mcp
cd tiny-notion-mcp
pip install .

または uv を使用して直接インストールします:

uv tool install .

設定

Notionインテグレーション・トークンを環境変数として設定します:

export NOTION_TOKEN=secret_...

NOTION_API_KEY もエイリアスとして受け入れられます。

Claude Desktop / Claude Code

MCP設定にサーバーを追加します:

{
  "mcpServers": {
    "tiny-notion-mcp": {
      "command": "tiny-notion-mcp",
      "env": {
        "NOTION_TOKEN": "secret_..."
      }
    }
  }
}

uv を使用して分離された環境にインストールした場合は、フルパスを使用してください:

{
  "mcpServers": {
    "tiny-notion-mcp": {
      "command": "uv",
      "args": ["run", "--", "tiny-notion-mcp"],
      "env": {
        "NOTION_TOKEN": "secret_..."
      }
    }
  }
}

開発

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

テストはスタブ化された NotionClient を使用しており、実際のAPI呼び出しは行いません。

設計目標

  • トークンの効率性を最優先。 すべてのレスポンスは、アクション可能であることを維持しつつ、可能な限り小さくします。

  • 中間ファイルなし。 すべてのコンテンツは文字列としてインラインで返されます。一時ファイルやファイルパスの参照は使用しません。

  • Notionアカウントなしでテスト可能。 NotionClient インターフェースが注入されるため、コアロジックを分離してテストできます。

Available Tools

9 tools
notion_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_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

    A4.2/5.0

    Scored across 9 tools

    Disambiguation5/5

    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).

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    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
      Not graded
      quality
      B
      maintenance
      A lightweight, read-only MCP server for Notion that enables searching, reading pages, and querying databases with token-efficient output and smart caching.
      29 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Notion MCP server that enables searching, exporting, and importing pages as markdown using browser credentials without admin or OAuth setup.
      91 npm
      2
      MIT