Notion MCP Server
Notion MCP サーバー
Notion API に接続し、Claude の Machine Context Protocol (MCP) を通じて機能を公開するサーバー。
特徴
タイトルまたはコンテンツでNotionページを検索
ページの詳細とコンテンツを取得する
Notionデータベースのクエリ
Notionで新しいページを作成する
Related MCP server: Notion MCP Server
設定
このリポジトリをクローンします:
git clone https://github.com/yourusername/notion-mcp-server.git
cd notion-mcp-server依存関係をインストールします:
npm installルート ディレクトリに次の内容の
.envファイルを作成します。
NOTION_API_KEY=your_notion_api_key_here
PORT=3000
# Optional: if you want to query a specific database by default
NOTION_DATABASE_ID=your_notion_database_id_hereNotion API キーを取得します:
https://www.notion.so/my-integrationsにアクセスしてください。
新しい統合を作成する
「内部統合トークン」をコピーします
このトークンを
NOTION_API_KEYとして.envファイルに追加します。
Notion 統合をワークスペースに接続します。
Notionワークスペース内のページまたはデータベースに移動します
右上の「…」メニューをクリックします
「接続を追加」を選択
統合を見つけて追加する
サーバーの実行
開発モードでサーバーを起動します。
npm run devまたは本番モードでは:
npm startサーバーは、 .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に送信します。
{
"function_name": "search_pages",
"parameters": {
"query": "search term"
}
}利用可能なMCP機能
search_pages - タイトルまたはコンテンツでNotionページを検索
get_page - IDでNotionページを取得する
query_database - Notionデータベースをクエリする
create_page - Notionで新しいページを作成する
ライセンス
マサチューセッツ工科大学
This server cannot be deployed
Maintenance
Related MCP Connectors
Zotero MCP server for Claude and ChatGPT: search, citations, safe writes, PDF passages and pages.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseDqualityDmaintenanceA 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.103,567 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA 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.111MIT
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server that exposes the official Notion SDK, allowing AI models to interact with Notion workspaces.1746 npm10Apache 2.0
- AlicenseBqualityDmaintenanceA Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.127 npm11MIT