Skip to main content
Glama
@devheerim/notion-mcp-server

@devheerim/notion-mcp-server

by Henry-Hong

@devheerim/notion-mcp-server

npm version License: MIT

Notion 공식 API를 래핑한 MCP(Model Context Protocol) 서버입니다. 기본 제공되는 Notion MCP를 대체하며, 데이터베이스 쿼리 기능이 훨씬 더 강력합니다.

주요 기능

  • query_database: 필터, 정렬, 페이지네이션을 완벽하게 지원하는 데이터베이스 쿼리

  • 프로퍼티 기반 필터링: 복잡한 AND/OR 조건으로 정밀한 데이터 조회

  • 전체 12개 도구: 페이지 CRUD, 댓글, 사용자 관리 등 포괄적인 기능

Related MCP server: Notion MCP Server

설치

npm install -g @devheerim/notion-mcp-server

설정

1. Notion Integration 토큰 발급

  1. Notion Integrations에서 새 통합 생성

  2. 생성된 Internal Integration Secret 복사 (ntn_ 으로 시작)

2. Notion에서 Integration 연결

접근할 페이지/데이터베이스마다:

  1. 우측 상단 ... > 연결 클릭

  2. 생성한 Integration 선택

3. MCP 클라이언트에 등록

Claude Desktop / Claude Code

claude_desktop_config.json 또는 ~/.claude/settings.json에 추가:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "@devheerim/notion-mcp-server"],
      "env": {
        "NOTION_API_KEY": "ntn_your_token_here"
      }
    }
  }
}

직접 실행

NOTION_API_KEY=ntn_your_token_here notion-mcp-server

도구 목록

도구

설명

query_database

데이터베이스를 필터, 정렬, 페이지네이션으로 쿼리

fetch_page

페이지 상세 정보 및 블록 콘텐츠 조회

search

워크스페이스 전체 검색

create_page

새 페이지 생성

update_page

기존 페이지 수정

create_database

새 데이터베이스 생성

update_database

데이터베이스 스키마 및 속성 수정

create_comment

페이지에 댓글 추가

get_comments

페이지의 모든 댓글 조회

get_users

워크스페이스 사용자 조회

move_pages

페이지를 다른 위치로 이동

duplicate_page

기존 페이지 복제

사용 예시

상태가 "완료"인 작업 조회

query_database:
  database_id: "12345678901234567890123456789012"
  filter:
    property: "Status"
    select:
      equals: "완료"

복합 필터 + 정렬

query_database:
  database_id: "12345678901234567890123456789012"
  filter:
    and:
      - property: "Priority"
        select:
          equals: "높음"
      - property: "Status"
        select:
          equals: "미완료"
  sorts:
    - property: "Created"
      direction: "descending"

날짜 기반 필터 + 페이지네이션

query_database:
  database_id: "12345678901234567890123456789012"
  filter:
    property: "Due Date"
    date:
      before: "2026-02-22"
  page_size: 25

기술 스택

  • TypeScript + Node.js

  • @modelcontextprotocol/sdk - MCP 서버 프레임워크

  • @notionhq/client - Notion 공식 API 클라이언트

  • Zod - 입력 스키마 검증

라이선스

MIT

Available Tools

12 tools
create_commentC

페이지에 댓글을 추가합니다.

Inputs: text (required), page_id (required), discussion_id.

create_databaseC

새 데이터베이스를 생성합니다.

Inputs: title (required), properties (required), parent_page_id (required).

create_pageB

새 페이지를 생성합니다. 데이터베이스 내 항목 또는 독립 페이지 생성 가능.

Inputs: parent_id (required), properties (required), parent_type (required), children.

duplicate_pageC

페이지를 복제합니다.

Inputs: page_id (required), new_title.

fetch_pageB

페이지 또는 데이터베이스의 상세 정보를 조회합니다. 프로퍼티와 콘텐츠(블록)를 함께 반환합니다.

Inputs: page_id (required), max_depth, include_children.

get_commentsC

페이지 또는 블록의 댓글을 조회합니다.

Inputs: block_id (required), page_size, start_cursor.

get_usersB

워크스페이스 사용자 목록을 조회하거나 특정 사용자 정보를 가져옵니다.

Inputs: user_id, page_size, start_cursor.

move_pagesC

페이지를 다른 부모로 이동합니다.

Inputs: page_ids (required), parent_id (required), parent_type (required).

query_databaseC

데이터베이스를 필터, 정렬, 페이지네이션으로 쿼리합니다. 프로퍼티 기반 정밀 필터링이 가능합니다.

Inputs: database_id (required), sorts, filter, page_size, +1 more.

update_databaseB

데이터베이스의 제목, 설명, 프로퍼티 스키마를 수정합니다.

Inputs: database_id (required), title, properties, description.

update_pageC

기존 페이지의 프로퍼티를 업데이트합니다. 아카이브/복원도 가능합니다.

Inputs: page_id (required), icon, cover, archived, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have clearly distinct resource+action targets: search vs query_database vs fetch_page are separable by scope (workspace vs database items vs single page). Minor overlap exists between fetch_page (returns page content/blocks) and query_database, and between update_page's archive behavior and an implied delete, but descriptions disambiguate adequately.

    Naming Consistency4/5

    Consistent snake_case verb_noun pattern throughout (create_page, update_page, create_database, query_database, get_comments). Minor deviations: 'search' is a bare verb with no noun, and read operations mix 'fetch'/'query'/'get' rather than using one retrieval verb.

    Tool Count5/5

    12 tools is well within the ideal 3-15 range and each one maps to a distinct Notion resource or operation. No filler or redundant tools; the surface is tightly scoped to pages, databases, comments, and users.

    Completeness3/5

    Page and database lifecycles are largely covered (create/fetch/update/duplicate/move/query), and comments have create+get. However, there are no block-level content tools (append/update/delete blocks), no database deletion, and no comment deletion/update, which are notable gaps for a Notion authoring surface.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers