Integrations
Provides a standardized interface for interacting with Notion's API, allowing users to list and query databases, create and update pages, and search across a Notion workspace.
Notion MCP サーバー
Notion統合のためのモデルコンテキストプロトコル(MCP)サーバー実装。Notion APIとの連携のための標準化されたインターフェースを提供します。Claude Desktopおよびその他のMCPクライアントと互換性があります。
特徴
- Notionデータベースの一覧表示とクエリ
- ページの作成と更新
- Notionワークスペース全体を検索
- データベースの詳細を取得し、子をブロックする
- httpx による完全な async/await サポート
- Pydantic v2 モデルによる型安全
- 詳細なログ記録による適切なエラー処理
- MCP 1.6.0との互換性
インストール
- リポジトリをクローンします。
Copy
- 仮想環境を作成し、依存関係をインストールします (uv を使用)。
Copy
あるいは、標準の venv を使用します。
Copy
- プロジェクト ルートに
.env
ファイルを作成します。
Copy
使用法
- サーバーをテストします (エラーなしで実行されるはずです)。
Copy
- Claude Desktop で使用するには、
claude_desktop_config.json
ファイル (macOS では~/Library/Application Support/Claude/claude_desktop_config.json
にあります) を調整します。
Copy
/Users/username/
実際のホーム ディレクトリ パスに置き換えてください。
発達
プロジェクト構造
Copy
テストの実行
Copy
構成
サーバーにはNotion統合トークンが必要です。設定方法は次のとおりです。
- https://www.notion.so/my-integrationsにアクセスしてください。
- 適切な機能(必要に応じて読み取り/書き込み)を備えた新しい統合を作成します
- 統合トークンをコピーする
- プロジェクトのルート ディレクトリの
.env
ファイルに追加します。
Copy
- 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
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Notion の API と対話するための標準化されたインターフェースを提供するモデル コンテキスト プロトコル サーバー。これにより、ユーザーはデータベースの一覧表示、ページの作成、および Notion ワークスペース全体の検索を実行できます。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that integrates with Notion's API to manage personal todo lists, allowing users to view, add, and update tasks directly from Claude.Last updated -3PythonMIT License
- -securityFlicense-qualityA 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 -2752TypeScript
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated -462Python
- -securityFlicense-qualityA 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 -275JavaScript