Use Notion MCP to retrieve Notion databases and pages, and convert them into highly AI-readable Markdown format.
Supported Tasks
- Convert the entire structure of a Notion database into Markdown
- Output the list of pages in the database in table format
- Output the details of individual pages in Markdown format
- Visualize the database schema
- Format search results in Markdown format
Available MCP Tools
Data Retrieval
mcp__Notion__notion-search- Search all of Notion (semantic search)mcp__Notion__notion-fetch- Retrieve a specific page or database
Data Writing (as needed)
mcp__Notion__notion-create-pages- Create a new pagemcp__Notion__notion-update-page- Update a page
Markdown Conversion Patterns
1. Converting Database Structure to Markdown
# Database: [Database Name]
## スキーマ
| プロパティ名 | タイプ | 説明 |
|------------|--------|------|
| Name | title | タイトルプロパティ |
| Status | select | ステータス選択 |
| Date | date | 日付 |
## ページ一覧
| Name | Status | Date | ... |
|------|--------|------|-----|
| ページ1 | 進行中 | 2026-01-06 | ... |
| ページ2 | 完了 | 2026-01-05 | ... |
2. Converting Individual Pages to Markdown
# [Page Title]
## メタデータ
- **作成日**: 2026-01-06
- **最終更新**: 2026-01-06
- **作成者**: User Name
- **ステータス**: draft/current
## プロパティ
- **Status**: 進行中
- **Date**: 2026-01-06
- **Tags**: tag1, tag2
## コンテンツ
[ページの本文をNotion-flavored Markdownで表示]
3. Converting Search Results to Markdown
## 検索結果: "{query}"
### ページ
| タイトル | タイプ | 最終更新 | URL |
|---------|--------|----------|-----|
| ... | ... | ... | ... |
### Databases
| タイトル | 説明 | URL |
|---------|------|-----|
| ... | ... | ... |
Data Retrieval Workflow
Retrieving an Entire Database
mcp__Notion__notion-fetchRetrieve by specifying the database ID with- Analyze the schema and data sources
- Retrieve the list of pages from each data source
- Convert to Markdown format
Page Search and Retrieval
mcp__Notion__notion-searchSearch by keyword with- Extract the page URL or ID from the search results
mcp__Notion__notion-fetchRetrieve details with- Convert to Markdown format
Retrieving Details of Individual Pages
- Specify the page URL or ID
mcp__Notion__notion-fetchRetrieve with- Use Notion-flavored Markdown as-is or format it
Structuring Rules
- Place metadata at the beginning - Creation date, update date, author, etc.
- Make properties explicit - Clearly display database properties
- Handling null values - Empty properties are
[未設定]displayed as - Date formatting - Convert from ISO format to a readable format
- Use of tables - List data must always be in table format
- Maintain hierarchical structure - Express the importance of information through heading levels
- Preserve URLs - Make the original Notion URL referenceable
Handling Notion-Specific Elements
Property type
- title: Display as plain text
- rich_text: Preserve Markdown formatting
- number: Display as a number
- select/multi_select: Display as tags or a list
- date: Display in YYYY-MM-DD format
- checkbox: Display as ✓/✗ or [x]/[ ]
- url: Markdown link format
- email: Markdown link format
- phone: Plain text
- files: List of file names and URLs
- people: List of usernames
- relation: Links to related pages
- rollup: Display the aggregation result
- formula: Display the calculation result
Block Elements
- paragraph: Normal paragraph
- heading: Expressed with # ## ###
- bulleted_list: - List
- numbered_list: 1. List
- to_do: - [ ] Checklist
- toggle: Collapsible section
- quote: > quote
- code: ```Language code block
- table: Markdown table
- database: Database reference
Precautions During Conversion
- Notion-flavored Markdown: Preserve Notion's extended Markdown syntax
- Handling custom tags:
<custom data-type="...">Appropriate conversion of tags - Handling placeholders: Make template placeholders explicit
- Mention: Properly represent @user, @page, etc.
- URL extraction: Can extract page ID from Notion URL
- Draft vs Published: Specify the page status
URL format
Page URL
- Standard format:
https://notion.so/workspace/Page-Title-{page-id} - ID extraction: the last 32 characters (excluding hyphens) are the page ID
DatabaseURL
- Standard format:
https://notion.so/workspace/{database-id} - With view:
https://notion.so/workspace/{database-id}?v={view-id}
Usage examples
Example 1: Retrieving an entire Database
「Task ManagementデータベースをMarkdown形式で出力して」
→ Database fetch + Schema解析 + ページ一覧取得 + Markdown変換
Example 2: Page search and conversion
「Notionで"ミーティング議事録"を検索してMarkdown化して」
→ Search + Fetch + Markdown変換
Example 3: Retrieving details of a specific page
「このNotionページをMarkdown形式で: https://notion.so/...」
→ Page fetch + Markdown変換
Example 4: List of pages in a Database
「プロジェクトデータベースの全ページをテーブルで表示」
→ Database fetch + ページ一覧取得 + Markdownテーブル生成
Best practices
- Step-by-step retrieval: First retrieve the Database schema, then retrieve details
- Using URLs: Passing a Notion URL as-is automatically extracts the ID
- Using search: If the title is unknown, start with search
- Cache: Save retrieved data to files appropriately
- Batch processing: Improve efficiency for multiple pages with parallel retrieval
References
- Notion MCP Server Documentation
- Notion-flavored Markdown Specification
- Notion API Reference
- Database Schema Types