notion
Notion workspace integration. Use when user wants to read/write Notion pages, search databases, create tasks, or sync content with Notion.
Install
mkdir -p .claude/skills/notion && curl -L -o skill.zip "https://mcp.directory/api/skills/download/334" && unzip -o skill.zip -d .claude/skills/notion && rm skill.zipInstalls to .claude/skills/notion
About this skill
Notion
Integrate with Notion workspaces to read and write content.
When to Use
Use this skill when the user wants to:
- Read or search Notion pages
- Create or update pages and databases
- Query Notion databases
- Sync content to/from Notion
- Create tasks or notes in Notion
- Search across workspace
Setup
1. Create Notion Integration
- Go to https://www.notion.so/my-integrations
- Click "New integration"
- Give it a name and select workspace
- Copy the "Internal Integration Token"
2. Share Pages with Integration
For each page/database you want to access:
- Open the page in Notion
- Click "Share" (top right)
- Invite your integration
3. Store API Key
export NOTION_API_KEY="secret_xxxxx"
Or in .env:
NOTION_API_KEY=secret_xxxxx
Installation
npm install @notionhq/client
Or Python:
pip install notion-client
JavaScript Usage
const { Client } = require('@notionhq/client');
const notion = new Client({ auth: process.env.NOTION_API_KEY });
// Search pages
const response = await notion.search({
query: 'Meeting Notes',
filter: { property: 'object', value: 'page' }
});
// Get page
const page = await notion.pages.retrieve({ page_id: 'PAGE_ID' });
// Create page
const newPage = await notion.pages.create({
parent: { database_id: 'DATABASE_ID' },
properties: {
Name: { title: [{ text: { content: 'New Page' } }] }
}
});
// Update page
await notion.pages.update({
page_id: 'PAGE_ID',
properties: {
Status: { select: { name: 'Done' } }
}
});
Common Patterns
Query Database
const response = await notion.databases.query({
database_id: 'DATABASE_ID',
filter: {
property: 'Status',
select: { equals: 'In Progress' }
},
sorts: [
{ property: 'Created', direction: 'descending' }
]
});
for (const page of response.results) {
console.log(page.properties.Name.title[0].text.content);
}
Read Page Content
const blockId = 'PAGE_ID';
const response = await notion.blocks.children.list({ block_id: blockId });
for (const block of response.results) {
if (block.type === 'paragraph') {
const text = block.paragraph.rich_text[0]?.plain_text;
console.log(text);
}
}
Create Page with Content
const page = await notion.pages.create({
parent: { page_id: 'PARENT_PAGE_ID' },
properties: {
title: { title: [{ text: { content: 'Meeting Notes' } }] }
},
children: [
{
object: 'block',
type: 'heading_2',
heading_2: {
rich_text: [{ type: 'text', text: { content: 'Agenda' } }]
}
},
{
object: 'block',
type: 'bulleted_list_item',
bulleted_list_item: {
rich_text: [{ type: 'text', text: { content: 'Item 1' } }]
}
}
]
});
Append Blocks
await notion.blocks.children.append({
block_id: 'PAGE_ID',
children: [
{
object: 'block',
type: 'paragraph',
paragraph: {
rich_text: [{ type: 'text', text: { content: 'New paragraph' } }]
}
}
]
});
Python Usage
from notion_client import Client
notion = Client(auth=os.environ["NOTION_API_KEY"])
# Query database
results = notion.databases.query(
database_id="DATABASE_ID",
filter={"property": "Status", "select": {"equals": "Done"}}
)
# Create page
new_page = notion.pages.create(
parent={"database_id": "DATABASE_ID"},
properties={
"Name": {"title": [{"text": {"content": "New Task"}}]},
"Status": {"select": {"name": "To Do"}}
}
)
Database Properties
Common property types:
properties: {
// Text
Name: { title: [{ text: { content: 'Title' } }] },
// Rich text
Description: { rich_text: [{ text: { content: 'Text' } }] },
// Number
Count: { number: 42 },
// Select
Status: { select: { name: 'In Progress' } },
// Multi-select
Tags: { multi_select: [{ name: 'urgent' }, { name: 'bug' }] },
// Date
DueDate: { date: { start: '2024-01-15' } },
// Checkbox
Done: { checkbox: true },
// URL
Link: { url: 'https://example.com' },
// Email
Email: { email: 'user@example.com' },
// Phone
Phone: { phone_number: '+1234567890' }
}
Block Types
// Paragraph
{ type: 'paragraph', paragraph: { rich_text: [{ text: { content: 'Text' } }] } }
// Heading
{ type: 'heading_1', heading_1: { rich_text: [{ text: { content: 'Title' } }] } }
// Bulleted list
{ type: 'bulleted_list_item', bulleted_list_item: { rich_text: [{ text: { content: 'Item' } }] } }
// Code
{ type: 'code', code: { rich_text: [{ text: { content: 'code' } }], language: 'javascript' } }
// Divider
{ type: 'divider', divider: {} }
// To-do
{ type: 'to_do', to_do: { rich_text: [{ text: { content: 'Task' } }], checked: false } }
Common Issues
Unauthorized: Integration not shared with page
Solution: Share page with integration via Share menu
Rate limiting: Too many requests
// Add delays between requests
await new Promise(resolve => setTimeout(resolve, 300));
Page not found: Wrong ID or no access
Solution: Verify page_id and sharing permissions
Best Practices
- Cache database structure to reduce API calls
- Use pagination for large result sets
- Handle rate limits with exponential backoff
- Validate property types before writing
- Use search sparingly (it's slow)
- Batch operations when possible
- Store IDs in config, not hardcoded
Example: Sync Tasks
async function syncTasks(tasks) {
const database_id = 'YOUR_DATABASE_ID';
for (const task of tasks) {
await notion.pages.create({
parent: { database_id },
properties: {
Name: { title: [{ text: { content: task.title } }] },
Status: { select: { name: task.status } },
DueDate: { date: { start: task.dueDate } }
}
});
// Rate limiting
await new Promise(resolve => setTimeout(resolve, 300));
}
}
Resources
- Notion API: https://developers.notion.com
- JS SDK: https://github.com/makenotion/notion-sdk-js
- Python SDK: https://github.com/ramnes/notion-sdk-py
- API Reference: https://developers.notion.com/reference
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
rust-coding-skill
UtakataKyosui
Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.