Notion MCP サーバー
Notion統合のためのモデルコンテキストプロトコル(MCP)サーバー実装。Notion APIとの連携のための標準化されたインターフェースを提供します。Claude Desktopおよびその他のMCPクライアントと互換性があります。
特徴
Notionデータベースの一覧表示とクエリ
ページの作成と更新
Notionワークスペース全体を検索
データベースの詳細を取得し、子をブロックする
httpx による完全な async/await サポート
Pydantic v2 モデルによる型安全
詳細なログ記録による適切なエラー処理
MCP 1.6.0との互換性
インストール
リポジトリをクローンします。
仮想環境を作成し、依存関係をインストールします (uv を使用)。
あるいは、標準の venv を使用します。
プロジェクト ルートに
.env
ファイルを作成します。
使用法
サーバーをテストします (エラーなしで実行されるはずです)。
Claude Desktop で使用するには、
claude_desktop_config.json
ファイル (macOS では~/Library/Application Support/Claude/claude_desktop_config.json
にあります) を調整します。
/Users/username/
実際のホーム ディレクトリ パスに置き換えてください。
発達
プロジェクト構造
テストの実行
構成
サーバーにはNotion統合トークンが必要です。設定方法は次のとおりです。
https://www.notion.so/my-integrationsにアクセスしてください。
適切な機能(必要に応じて読み取り/書き込み)を備えた新しい統合を作成します
統合トークンをコピーする
プロジェクトのルート ディレクトリの
.env
ファイルに追加します。
Notionデータベースを統合して共有する(データベースの「共有」メニューから)
貢献
リポジトリをフォークする
機能ブランチを作成します(
git checkout -b feature/amazing-feature
)変更をコミットします (
git commit -m 'Add some amazing feature'
)ブランチにプッシュする (
git push origin feature/amazing-feature
)プルリクエストを開く
ライセンス
MITライセンス - 自己責任で使用してください
トラブルシューティング
よくある問題
接続エラー: Notion APIキーが正しいこと、インターネットにアクセスできることを確認してください
権限エラー: 統合に、アクセスしようとしているデータベースへのアクセス権が付与されていることを確認してください
Claude デスクトップ統合: Claude デスクトップが接続しない場合は、設定パスが正しいことと、サーバーが stdout にログ出力せずに実行されていることを確認してください。
謝辞
Claude Desktop やその他の MCP クライアントと連携するように構築されています
NotionのAPIを使用(最新の互換バージョン2022-02-22)
MCP 1.6.0 との互換性を維持
danhilseさんに特別な感謝を申し上げます。私は彼のnotion-mcp-serverプロジェクトを参考にしました。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Notion の API と対話するための標準化されたインターフェースを提供するモデル コンテキスト プロトコル サーバー。これにより、ユーザーはデータベースの一覧表示、ページの作成、および Notion ワークスペース全体の検索を実行できます。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that enables Claude and other LLMs to interact with Notion workspaces, providing capabilities like searching, retrieving, creating and updating pages, as well as managing databases.Last updated -102383
- AsecurityFlicenseAqualityA Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.Last updated -122381
- -securityAlicense-qualityA Model Context Protocol server that provides a standardized interface for AI models to access, query, and modify content in Notion workspaces.Last updated -2384MIT License
- -securityAlicense-qualityA Model Context Protocol server that synchronizes Markdown files with Notion pages without using LLM tokens, enabling direct interaction with Notion databases and pages through API calls.Last updated -48MIT License