Skip to main content
Glama
tiny-notion-mcp

tiny-notion-mcp

tiny-notion-mcp

Ein leichtgewichtiger Notion-MCP-Server, der den Token-Verbrauch im Vergleich zum offiziellen Notion-MCP minimiert.

Anstatt rohes Notion-API-JSON zurückzugeben, liefert jedes Tool die kleinstmögliche nützliche Darstellung: Seiten werden als einfaches Markdown zurückgegeben, Suchergebnisse als eine Zeile pro Treffer. In der Praxis reduziert dies den Token-Verbrauch bei leseintensiven Workflows erheblich.

Tools

Tool

Beschreibung

notion_search

Suche nach Seiten anhand des Titels. Gibt eine Zeile pro Ergebnis im TOON-Format zurück.

notion_read

Seite als Markdown lesen.

notion_write

Markdown an eine bestehende Seite anhängen.

notion_create_page

Unterseite unter einer übergeordneten Seite erstellen, optional mit Inhalt.

TOON-Format

Suchergebnisse und Antworten bei der Seitenerstellung verwenden das kompakte TOON-Format (Title | Object | Optional Notes):

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

Dies hält Suchantworten bei einer Zeile pro Ergebnis, anstatt Hunderte von JSON-Token zu verbrauchen.

Related MCP server: MCP Notion Server (@suncreation)

Unterstützte Blocktypen

Lesen (notion_read)

Blocktyp

Markdown-Ausgabe

Absatz

Klartext

Überschrift 1 / 2 / 3

# / ## / ###

Aufzählungszeichen

- item

Nummerierte Liste

1. item, 2. item, …

Code-Block

```lang … ```

Tabelle

Pipe-getrennte Zeilen

Unterseite

[Subpage: title](id)

Inline-Formatierungen (fett, kursiv, fett-kursiv, durchgestrichen, unterstrichen, Inline-Code, Links) bleiben als Markdown erhalten.

Schreiben (notion_write)

Dieselben Blocktypen werden beim Schreiben unterstützt. Markdown wird geparst und als native Notion-Blöcke an die Zielseite angehängt.

Noch nicht implementiert (v2)

Die folgenden Blocktypen werden von Notion erkannt, aber noch nicht verarbeitet. Sie werden beim Lesen stillschweigend übersprungen und können nicht geschrieben werden:

  • Trennlinien (---)

  • Blockzitate

  • To-do / Checkbox-Listen

  • Callout-Blöcke

  • Toggle-Listen

  • Inhaltsverzeichnisse

  • Dateien, Bilder und Videos

Bekannte Einschränkungen

  • Leere Absatzblöcke zwischen verschiedenen Listentypen werden nicht korrekt hin- und herkonvertiert. Wenn eine Seite einen expliziten leeren Absatz hat, der beispielsweise eine Aufzählungsliste von einer nummerierten Liste trennt, geht dieser Trenner bei einem Lese-Schreib-Zyklus verloren. Das "\n\n", das Markdown bereits zwischen Blöcken einfügt, ist visuell äquivalent, erzeugt aber beim Schreiben keinen leeren Notion-Absatzblock. Dies ist eine inhärente Einschränkung einer flachen Markdown-Darstellung und wird bestehen bleiben, bis ein v2-Format entworfen wurde.

  • Tabellen-Header-Flag wird nicht korrekt hin- und herkonvertiert. Notion-Tabellen können ohne Spaltenüberschriftenzeile erstellt werden (has_column_header: false). Der aktuelle Writer setzt immer has_column_header: true, da Standard-Markdown-Tabellen einen Header implizieren. Zurückgeschriebene Tabellen sehen identisch aus, haben aber das Header-Flag gesetzt.

Anforderungen

  • Python 3.12+

  • Ein Notion-Integrationstoken mit Lese-/Schreibzugriff auf die Seiten, die Sie verwenden möchten

Installation

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

Oder installieren Sie direkt mit uv:

uv tool install .

Konfiguration

Setzen Sie Ihr Notion-Integrationstoken als Umgebungsvariable:

export NOTION_TOKEN=secret_...

NOTION_API_KEY wird als Alias akzeptiert.

Claude Desktop / Claude Code

Fügen Sie den Server zu Ihrer MCP-Konfiguration hinzu:

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

Wenn Sie mit uv in eine isolierte Umgebung installiert haben, verwenden Sie den vollständigen Pfad:

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

Entwicklung

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

# Run tests
pytest

Tests verwenden einen Stub NotionClient und führen keine echten API-Aufrufe durch.

Designziele

  • Token-Effizienz steht an erster Stelle. Jede Antwort ist so klein wie möglich, während sie dennoch handlungsfähig bleibt.

  • Keine Zwischendateien. Alle Inhalte werden inline als Strings zurückgegeben — keine temporären Dateien, keine Dateipfad-Referenzen.

  • Testbar ohne Notion-Konto. Das NotionClient-Interface wird injiziert, sodass die Kernlogik isoliert getestet werden kann.

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