Notion Uploader MCP
Uploads local files (images, documents) to Notion pages as image blocks, file blocks, cover images, or page icons, with optional captions and database property attachment.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Notion Uploader MCPset cover image to cover.png for page abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Notion Uploader MCP
Model Context Protocol (MCP) サーバーで、CursorのチャットからNotionページに画像やファイルをアップロードできます。
機能
ローカルファイルをNotionページにアップロード
複数の添付方法をサポート:
image: ページ内に画像ブロックとして追加
file: ページ内にファイルブロックとして追加
cover: ページのカバー画像として設定
icon: ページのアイコンとして設定
データベースプロパティへの添付
大容量ファイルのマルチパートアップロード対応(20MB以上)
キャプション追加機能
Related MCP server: MCP Notion Upload Server
セットアップ
1. Notion APIトークンの取得
Notion Integrations にアクセス
"New integration" をクリック
インテグレーションを作成し、APIトークンをコピー
アップロード先のNotionページにインテグレーションを招待
2. 依存関係のインストール
cd tools/notion-uploader-mcp
npm install3. ビルド
npm run build4. 環境変数の設定
.envファイルを作成し、Notion APIトークンを設定:
cp .env.example .env
# .envファイルを編集してNOTION_TOKENを設定または、環境変数として設定:
export NOTION_TOKEN=secret_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX5. MCP設定への追加
プロジェクトルートの .mcp.json に以下を追加:
{
"mcpServers": {
"notion-uploader": {
"type": "stdio",
"command": "node",
"args": ["./tools/notion-uploader-mcp/dist/server.mjs"],
"env": {
"NOTION_TOKEN": "${NOTION_TOKEN}"
}
}
}
}使用方法
Cursorのチャットで、upload_to_notion ツールが利用可能になります。
パラメータ
file_path(必須): アップロードするファイルの絶対パスpage_id_or_url(必須): NotionページのIDまたはURLattach_as(オプション): 添付方法"image"(デフォルト): 画像ブロックとして追加"file": ファイルブロックとして追加"cover": ページカバーとして設定"icon": ページアイコンとして設定
property(オプション): データベースのファイルプロパティ名caption(オプション): ファイルのキャプション
使用例
# 画像をページに追加
upload_to_notion(
file_path: "/path/to/image.png",
page_id_or_url: "https://notion.so/your-page-id",
caption: "プロジェクトのスクリーンショット"
)
# ページカバーとして設定
upload_to_notion(
file_path: "/path/to/cover.jpg",
page_id_or_url: "your-page-id",
attach_as: "cover"
)
# データベースプロパティに添付
upload_to_notion(
file_path: "/path/to/document.pdf",
page_id_or_url: "database-page-id",
property: "添付ファイル"
)開発
開発モード
TypeScriptファイルを直接実行:
npm run devビルド
TypeScriptをJavaScriptにコンパイル:
npm run buildトラブルシューティング
NOTION_TOKEN not found: 環境変数が正しく設定されているか確認
Page not found: ページIDが正しいか、インテグレーションが招待されているか確認
Permission denied: インテグレーションに適切な権限があるか確認
ライセンス
プロジェクトのライセンスに従います。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jkkitakita/notion-uploader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server