Skip to main content
Glama
tiny-notion-mcp

tiny-notion-mcp

tiny-notion-mcp

공식 Notion MCP에 비해 토큰 사용량을 최소화한 경량 Notion MCP 서버입니다.

원시 Notion API JSON을 반환하는 대신, 모든 도구가 가장 유용한 최소한의 표현을 반환합니다. 페이지는 일반 Markdown으로, 검색 결과는 결과당 한 줄로 반환됩니다. 실제로 이는 읽기 중심의 워크플로우에서 토큰 소비량을 크게 줄여줍니다.

도구

도구

설명

notion_search

제목으로 페이지를 검색합니다. 결과당 한 줄씩 TOON 형식으로 반환합니다.

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 토큰 대신 결과당 한 줄로 유지됩니다.

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에서 인식되지만 아직 처리되지 않습니다. 읽기 시 무시되며 쓰기가 불가능합니다:

  • 구분선 (---)

  • 인용구

  • 할 일 / 체크박스 목록

  • 콜아웃 블록

  • 토글 목록

  • 목차

  • 파일, 이미지 및 비디오

알려진 제한 사항

  • 서로 다른 목록 유형 사이의 빈 단락 블록은 왕복(round-trip)되지 않습니다. 페이지에 글머리 기호 목록과 번호 매기기 목록을 구분하는 명시적인 빈 단락이 있는 경우, 읽기 → 쓰기 주기를 거치면 해당 구분자가 손실됩니다. 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