notion-mcp-fast: Instructions file for Claude Code

CLAUDE.md

notion-mcp-fast CLAUDE.md is an instructions file for Claude Code from chat-prompt/notion-mcp-fast. It costs 1,013 tokens per session, scanned A, original, MIT.

Instructions for a local MCP server that reads Notion data from the desktop app's local SQLite cache, a small on-disk database, without using Notion's API. They describe tools for pages, databases, workspaces, searching, and summaries.

In plain words
What is it for?
Use it to list, read, and search Notion pages; inspect and query databases; list workspaces; and view cache summaries.
Why use it?
It provides access to cached Notion information without making API calls. The instructions also document the project's structure and development commands.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is chat-prompt/notion-mcp-fast's own configuration. It tells Claude Code how to work on notion-mcp-fast itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything notion-mcp-fast configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chat-prompt/notion-mcp-fast. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chat-prompt/notion-mcp-fast/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/chat-prompt/notion-mcp-fast

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for notion-mcp-fast CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chat-prompt/notion-mcp-fast/claude-md/github.svg)](https://agentmods.dev/instructions/chat-prompt/notion-mcp-fast/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chat-prompt/notion-mcp-fast/claude-md"><img src="https://agentmods.dev/badge/instructions/chat-prompt/notion-mcp-fast/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for notion-mcp-fast CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chat-prompt/notion-mcp-fast/claude-md"><img src="https://agentmods.dev/badge/instructions/chat-prompt/notion-mcp-fast/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,013 This file is loaded in full into every session.
When invoked 1,013 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01013 $0.01013
Opus 5 $0.00507 $0.00507
Sonnet 5 $0.00203 $0.00203
Haiku 4.5 $0.00101 $0.00101

Measured 10d ago against content hash ccdaed9dc3dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

notion-mcp-fast CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

notion-mcp-fast

Notion 데스크톱 앱의 로컬 SQLite 캐시를 읽어 API 호출 없이 Notion 데이터에 접근하는 MCP 서버.

핵심 정보

  • DB 경로: ~/Library/Application Support/Notion/notion.db
  • 캐시 TTL: 5분 (메타데이터만 캐시, 블록 내용은 온디맨드)
  • 사용자 감지: meta_user_id로 가장 많은 블록을 가진 사용자 자동 감지

프로젝트 구조

src/notion_mcp_fast/
├── __init__.py          # 패키지 exports
├── __main__.py          # 진입점
├── server.py            # MCP 도구 9개 (FastMCP)
├── reader.py            # NotionLocalReader (SQLite + TTL 캐싱)
└── block_parser.py      # 리치 텍스트 → 플레인 텍스트 변환

MCP 도구

도구 설명
list_pages 페이지 목록 (workspace, parent_type 필터)
get_page 페이지 상세 + 내용
search_pages 제목 검색
full_text_search 페이지 내용까지 검색
list_databases 데이터베이스 목록
get_database DB 상세 + 스키마
query_database DB 레코드 조회
list_workspaces 워크스페이스 목록
get_summary 캐시 요약 정보

개발 명령어

# 설치
uv sync

# 테스트 실행
uv run python -c "from notion_mcp_fast.reader import NotionLocalReader; print(NotionLocalReader().get_summary())"

# MCP 서버 실행
uv run notion-mcp-fast

핵심 테이블 (SQLite)

테이블 용도 주요 컬럼
block 모든 블록 (페이지 포함) id, type, properties, parent_id, meta_user_id, created_by_id, last_edited_by_id
space 워크스페이스 id, name, icon
collection 데이터베이스 스키마 id, name, schema
notion_user 사용자 id, name, email

페이지 메타데이터

각 페이지는 다음 메타데이터를 포함:

필드 설명 예시
id 페이지 ID 2eaa024d-f4dc-...
title 페이지 제목 SKT Design Camp
created_time 생성 시간 (timestamp) 1737001260000
last_edited_time 수정 시간 (timestamp) 1737877980000
created_by_id 생성자 ID 7af5870b-...
created_by_name 생성자 이름 한가경
last_edited_by_id 최종 수정자 ID 7af5870b-...
last_edited_by_name 최종 수정자 이름 윤누리
parent_id 상위 페이지/DB ID -
parent_table 상위 타입 collection, space, block
icon 아이콘 이모지 또는 URL
cover 커버 이미지 URL -

블록 타입별 렌더링

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 107 lines · 1,013 tokens per session scan A ccdaed9dc3dd

Subscribe to this mod's changes

notion-mcp-fast CLAUDE.md is an instructions file published in the GitHub repository chat-prompt/notion-mcp-fast (11 stars, last pushed 1mo ago), licensed MIT. It adds 1,013 tokens to every session, about $0.0051 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens