Skip to main content
Glama

Notion MCP サーバー

公式の Notion SDK を公開し、AI モデルが Notion ワークスペースと対話できるようにする Model Context Protocol (MCP) サーバー。

クイックスタート

1. Notionの統合を設定する

  1. https://www.notion.so/my-integrationsにアクセスしてください。

  2. 新しい統合を作成する

  3. APIキーをコピーする

2. Notionページを統合に接続する

統合によって Notion コンテンツにアクセスするには、ページまたはデータベースを明示的に共有する必要があります。

  1. 統合を通じてアクセスしたいNotionページまたはデータベースに移動します

  2. 右上隅の「共有」ボタンをクリックします

  3. 「ユーザー、グループ、または統合を追加」フィールドで、ドロップダウンリストから統合を選択します。

  4. 「招待」をクリック

  5. アクセス可能にしたいページまたはデータベースごとに繰り返します

**注:**統合は、明示的に共有されたページとデータベースにのみアクセスできます。子ページは親ページからアクセスを自動的に継承します。

3. AIアシスタントに追加する

次のいずれかの構成形式を使用して、この MCP サーバーを Claude Desktop、Cursor AI、または Claude.ai に追加できます。

コマンドライン形式

npx @ramidecodes/mcp-server-notion@latest -y --api-key=your-notion-integration-key

JSON設定フォーマット

{
  "mcpServers": {
    "Notion": {
      "command": "npx",
      "args": [
        "@ramidecodes/mcp-server-notion@latest",
        "-y",
        "--api-key=your-notion-integration-key"
      ]
    }
  }
}

your-notion-integration-key手順 1 の API キーに置き換えます。

セットアップ手順

  • Claude Desktop :設定 > 詳細設定 > モデルコンテキストプロトコル

  • カーソルAI : 設定 > AI > MCPサーバー

  • Claude.ai (Web) : プロフィール > 設定 > APIと統合 > モデルコンテキストプロトコル

Related MCP server: Notion MCP Server

利用可能なツール

サーバーは、Notion と対話するためのツールを提供します。

  • 検索: ページまたはデータベースを検索

  • データベース: データベースエントリのクエリと取得

  • ページ: ページの作成、取得、更新

  • ブロック: コンテンツ ブロック (段落、リストなど) を管理します。

  • ユーザー: ユーザーを一覧表示し、ユーザー情報を取得する

  • コメント: コメントの作成と一覧表示

  • リンクプレビュー: URLのリンクプレビューを作成する

代替設定方法

環境変数の使用

API キーを直接渡す代わりに、 .envファイルを使用することもできます。

  1. 次の内容で.envファイルを作成します。

NOTION_API_KEY=your-notion-integration-key
  1. サーバーを実行します。

npx @ramidecodes/mcp-server-notion@latest -y

環境変数を使用した JSON 構成 (Claude デスクトップ用)

JSON 構成形式で環境変数を使用することもできます。

{
  "mcpServers": {
    "Notion": {
      "command": "npx",
      "args": [
        "@ramidecodes/mcp-server-notion@latest",
        "-y",
        "--api-key=your-notion-integration-key"
      ]
    }
  }
}

コマンドラインオプション

OPTIONS:
  -h, --help              Show help message
  -v, --version           Show version information
  --verbose               Enable verbose logging
  --env-path <path>       Path to .env file
  --api-key <key>         Notion API key
  -y                      Skip confirmation prompts

トラブルシューティング

「クライアントの作成に失敗しました」というエラーが発生した場合:

  • Windowsでは、npxコマンドの前にcmd /cを使用してください。

  • macOS/Linuxでは、npxへのフルパスを使用してみてください。

  • AIアシスタントに追加する前に、ターミナルでコマンドをテストしてください

よくある問題

  • 「リソースにアクセスできません」エラー: 特定のNotionページまたはデータベースを統合と共有していることを確認してください(手順2を参照)

  • 共有メニューに統合が表示されません: ページを更新するか、ブラウザを再起動してください

  • 機能が制限されています: Notionの統合設定で適切な機能が有効になっていることを確認してください

特徴

  • 公式SDKによる完全なNotion APIサポート

  • シームレスなAI統合を実現するMCP準拠

  • Notionのあらゆる操作のための包括的なツール

  • 詳細なメッセージによる堅牢なエラー処理

  • 環境変数による簡単な設定

各ツールの詳細なドキュメントについては、ツールのドキュメントを参照してください。

ライセンス

このプロジェクトは、Apache License 2.0 に基づいてライセンスされています。詳細については、 LICENSEファイルを参照してください。

Available Tools

17 tools
append-blocksD

Inputs: block_id (required), children (required).

create-commentD

Inputs: page_id (required), text (required), discussion_id.

create-pageD

Inputs: parent_type (required), parent_id (required), properties (required), children.

delete-blockD

Inputs: block_id (required).

get-blockD

Inputs: block_id (required).

get-block-childrenD

Inputs: block_id (required), page_size, start_cursor.

get-databaseD

Inputs: database_id (required).

get-meD

Inputs: no named parameters.

get-pageD

Inputs: page_id (required).

get-userD

Inputs: user_id (required).

list-commentsD

Inputs: page_id, block_id, start_cursor, page_size.

list-usersD

Inputs: no named parameters.

query-databaseD

Inputs: database_id (required), filter, sorts, page_size, +1 more.

update-blockD

Inputs: block_id (required), properties (required).

update-pageD

Inputs: page_id (required), properties (required), archived.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.1/5.0

    Scored across 17 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Notion resources and actions. For example, get-block vs get-block-children vs update-block are clearly differentiated, and there's no overlap between operations like create-page, update-page, and get-page.

    Naming Consistency5/5

    All tools follow a consistent verb-noun pattern with kebab-case naming throughout (e.g., create-page, get-block, query-database). The naming convention is perfectly uniform across all 17 tools.

    Tool Count4/5

    17 tools is slightly high but reasonable for a comprehensive Notion API integration. It covers multiple resource types (pages, blocks, databases, users, comments) with appropriate operations, though it might feel slightly heavy compared to more minimal implementations.

    Completeness4/5

    The tool set provides excellent coverage of Notion's core functionality including CRUD operations for pages, blocks, and comments, plus database querying, user management, and search. Minor gaps might include missing operations like deleting pages or databases, but agents can work around these limitations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers