Skip to main content
Glama

Notion MCP Server

Official
by makenotion

Notion MCP サーバー

ノーション-MCP-SM

このプロジェクトは、Notion API用のMCP サーバーを実装します。

mcp-デモ

インストール

1. Notionでの統合の設定:

https://www.notion.so/profile/integrationsにアクセスし、新しい内部統合を作成するか、既存の統合を選択します。

Notion統合トークンの作成

Notion APIの公開範囲は限定されています(例えば、MCP経由でデータベースを削除することはできません)。しかし、ワークスペースデータをLLMに公開することで、データへのリスクはゼロではありません。セキュリティを重視するユーザーは、統合機能をさらに設定することをお勧めします。

たとえば、「構成」タブから「コンテンツの読み取り」アクセス権のみを付与することで、読み取り専用の統合トークンを作成できます。

Notion統合トークン機能でコンテンツの読み取りがチェックされていることを示す

2. コンテンツを統合に接続する:

関連するページとデータベースが統合に接続されていることを確認します。

これを行うには、そのページにアクセスし、3 つのドットをクリックして、「統合に接続」を選択する必要があります。

Notion Connectionsへの統合トークンの追加

3. クライアントに MCP 構成を追加する:
npm を使用する場合:

.cursor/mcp.jsonまたはclaude_desktop_config.jsonに次のコードを追加します (MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json )

{ "mcpServers": { "notionApi": { "command": "npx", "args": ["-y", "@notionhq/notion-mcp-server"], "env": { "OPENAPI_MCP_HEADERS": "{\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\" }" } } } }
Docker の使用:

Docker を使用して MCP サーバーを実行するには、次の 2 つのオプションがあります。

オプション 1: 公式 Docker Hub イメージを使用する:

.cursor/mcp.jsonまたはclaude_desktop_config.jsonに以下を追加します。

{ "mcpServers": { "notionApi": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "OPENAPI_MCP_HEADERS", "mcp/notion" ], "env": { "OPENAPI_MCP_HEADERS": "{\"Authorization\":\"Bearer ntn_****\",\"Notion-Version\":\"2022-06-28\"}" } } } }

このアプローチ:

  • 公式Docker Hubイメージを使用
  • 環境変数を介してJSONエスケープを適切に処理します
  • より信頼性の高い構成方法を提供します
オプション 2: ローカルで Docker イメージをビルドする:

Dockerイメージをローカルでビルドして実行することもできます。まず、Dockerイメージをビルドします。

docker-compose build

次に、 .cursor/mcp.jsonまたはclaude_desktop_config.jsonに次のコードを追加します。

{ "mcpServers": { "notionApi": { "command": "docker", "args": [ "run", "--rm", "-i", "-e", "OPENAPI_MCP_HEADERS={\"Authorization\": \"Bearer ntn_****\", \"Notion-Version\": \"2022-06-28\"}", "notion-mcp-server" ] } } }

ntn_****統合シークレットに置き換えることを忘れないでください。統合設定タブから確認することができます。

開発者ポータルの[構成]タブから統合トークンをコピーする

  1. 次の命令を使用して
Comment "Hello MCP" on page "Getting started"

AIはタスクを達成するために、 v1/searchv1/comments 2つのAPI呼び出しを正しく計画します。

  1. 同様に、次の命令を実行すると、「Notion MCP」という名前の新しいページが親ページ「Development」に追加されます。
Add a page titled "Notion MCP" to page "Development"
  1. コンテンツIDを直接参照することもできます
Get the content of page 1a6b35e6e67f802fa7e1d27686f017f2

発達

建てる

npm run build

実行する

npx -y --prefix /path/to/local/notion-mcp-server @notionhq/notion-mcp-server

公開

npm publish --access public

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

AI アシスタントが Notion API と対話し、自然言語コマンドを使用して Notion ワークスペースでコンテンツを検索、読み取り、コメント、作成できるようにする MCP サーバー。

  1. インストール
    1. Notionでの統合の設定:
    2. コンテンツを統合に接続する:
    3. クライアントに MCP 構成を追加する:
    1. 発達

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A high-performance MCP server that integrates Notion into AI workflows, enabling interaction with Notion pages, databases, and comments through a standardized protocol.
        Last updated -
        8
        10
        13
        TypeScript
      • A
        security
        A
        license
        A
        quality
        Notion MCP Server is a MCP server implementation that enables AI assistants to interact with Notion's API.
        Last updated -
        13
        275
        91
        TypeScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables AI assistants to interact with Linear project management systems, allowing users to retrieve, create, and update issues, projects, and teams through natural language.
        Last updated -
        32
        80
        5
        TypeScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        An MCP server that enables AI assistants to control a web browser through natural language commands, allowing them to navigate websites and extract information via SSE transport.
        Last updated -
        505
        Python
        MIT License
        • 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/makenotion/notion-mcp-server'

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