Notion MCP サーバー
Notion API に接続し、Claude の Machine Context Protocol (MCP) を通じて機能を公開するサーバー。
特徴
タイトルまたはコンテンツでNotionページを検索
ページの詳細とコンテンツを取得する
Notionデータベースのクエリ
Notionで新しいページを作成する
設定
このリポジトリをクローンします:
依存関係をインストールします:
ルート ディレクトリに次の内容の
.env
ファイルを作成します。
Notion API キーを取得します:
https://www.notion.so/my-integrationsにアクセス���てください。
新しい統合を作成する
「内部統合トークン」をコピーします
このトークンを
NOTION_API_KEY
として.env
ファイルに追加します。
Notion 統合をワークスペースに接続します。
Notionワークスペース内のページまたはデータベースに移動します
右上の「…」メニューをクリックします
「接続を追加」を選択
統合を見つけて追加する
サーバーの実行
開発モードでサーバーを起動します。
または本番モードでは:
サーバーは、 .env
ファイルで指定されたポート (デフォルト: 3000) で実行されます。
APIエンドポイント
通常のHTTPエンドポイント
POST /api/notion/search
Notionでページを検索する
本文:
{ "query": "search term" }
/api/notion/page にPOSTする
IDでページを取得する
本文:
{ "page_id": "page-id-here" }
POST /api/notion/database/query
データベースをクエリする
本文:
{ "database_id": "database-id-here", "filter": {}, "sorts": [] }
/api/notion/page/create をPOSTする
新しいページを作成する
本文:
{ "parent": {}, "properties": {}, "children": [] }
MCP統合
サーバーは、利用可能な関数を記述する MCP マニフェストを/mcp/manifest.json
で公開します。
MCP 関数を呼び出すには、次の構造の POST リクエストを/api/notion/mcp/invoke
に送信します。
利用可能なMCP機能
search_pages - タイトルまたはコンテンツでNotionページを検索
get_page - IDでNotionページを取得する
query_database - Notionデータベースをクエリする
create_page - Notionで新しいページを作成する
ライセンス
マサチューセッツ工科大学
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 に接続し、Claude の Machine Context Protocol を通じて機能を公開し、Notion ページとデータベースの検索、取得、クエリ、作成を可能にするサーバー。
Related MCP Servers
- AsecurityAlicenseAqualityMCP Server for the Notion API, enabling Claude to interact with Notion workspaces.Last updated -18329825MIT License
- 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 -103053
- -securityAlicense-qualityA Model Context Protocol server that provides a standardized interface for interacting with Notion's API, enabling users to list databases, create pages, and search across their Notion workspace.Last updated -110MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.Last updated -12011