Skip to main content
Glama

Notion MCP Server

by snowan

Notion MCP サーバー

Notion API に接続し、Claude の Machine Context Protocol (MCP) を通じて機能を公開するサーバー。

特徴

  • タイトルまたはコンテンツでNotionページを検索
  • ページの詳細とコンテンツを取得する
  • Notionデータベースのクエリ
  • Notionで新しいページを作成する

設定

  1. このリポジトリをクローンします:
git clone https://github.com/yourusername/notion-mcp-server.git cd notion-mcp-server
  1. 依存関係をインストールします:
npm install
  1. ルート ディレクトリに次の内容の.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_here
  1. Notion API キーを取得します:
    • https://www.notion.so/my-integrationsにアクセスしてください。
    • 新しい統合を作成する
    • 「内部統合トークン」をコピーします
    • このトークンをNOTION_API_KEYとして.envファイルに追加します。
  2. 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で新しいページを作成する

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

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 ページとデータベースの検索、取得、クエリ、作成を可能にするサーバー。

  1. 特徴
    1. 設定
      1. サーバーの実行
        1. APIエンドポイント
          1. 通常のHTTPエンドポイント
          2. MCP統合
        2. 利用可能なMCP機能
          1. ライセンス

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              MCP Server for the Notion API, enabling Claude to interact with Notion workspaces.
              Last updated -
              18
              1,466
              802
              TypeScript
              MIT License
            • A
              security
              F
              license
              A
              quality
              A 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 -
              10
              947
              3
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A 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 -
              111
              Python
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              A 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 -
              12
              1
              11
              JavaScript
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/snowan/notion-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server