1つのデータベースだけでなく、Notionワークスペース全体を参照します
Markdown ベースの Notion は、単一のROOT_PAGE
変数を使用して MCP をナビゲートし、トークンの必要性を排除します。
- Notion MCP サーバー:
notion-texonom
- Notion ページは
text/markdown
mimeType ノートに変換されます。 - 親子関係と参照関係を考慮し、グラフの距離に基づいて関連ページを検索して取得します。
Notionベースのノートを管理および操作するためのModel Context Protocol(MCP)サーバー。このTypeScriptベースのサーバーは、Notionページを効率的に操作するためのリソース、ツール、プロンプトを統合することで、MCPの概念を実証しています。
特徴
リソース
- ノートにアクセス: UUID スラッグを持つ
note://
URI として Notion ページを一覧表示および取得します。 - メタデータ: 各リソースには、タイトル、説明、および Markdown 形式のコンテンツが含まれます。
- MIME タイプ: コンテンツは
text/markdown
形式でアクセスできます。
ツール
- ノートの検索:
search_notes
ツールを使用して、クエリ文字列を使用して Notion ページを検索します。- 入力: 関連するページをフィルタリングするためのクエリ テキスト。
- 出力: 一致するメモの Markdown コンテンツ。
プロンプト
- ノートの要約: Notion の個々のページの要約を生成します。
- 利用可能なプロンプト:
summarize_note
: URI で特定のメモを要約します。suggest_refactor
: 構造的な改善を提案します。suggest_fix
: メモの内容に対する潜在的な修正を特定します。suggest_enhance
: メモを改善するための強化策を提案します。
- 入力: Notion ページ URI。
- 出力: 要約と拡張のための構造化されたメッセージ。
- 利用可能なプロンプト:
発達
設定
依存関係をインストールします:
プロジェクトをビルドします。
自動リビルドを使用した開発の場合:
構成
Notion でサーバーを構成するには:
- 環境変数を設定します。
ROOT_PAGE
: Notion ワークスペースのルート ページ ID。
Claude Desktopのインストール
このサーバーを Claude Desktop で使用するには、次の構成を追加します。
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
構成例:
デバッグ
MCPサーバーのトラブルシューティングとデバッグには、MCPインスペクターを使用します。インスペクターを起動するには、次のコマンドを実行します。
Inspector は、stdio ベースのサーバー通信を検査するためのブラウザベースのインターフェースを提供します。
主要技術
- Notion 統合:
@texonom/nclient
と@texonom/cli.
- MCP SDK: サーバー操作用に
@modelcontextprotocol/sdk
を実装します。
リモート展開
サーバーはリモート通信にSSEServerTransport
を使用するようになり、サーバーの共有利用が可能になりました。必要な依存関係がインストールされ、サーバーがリモート展開用に正しく構成されていることを確認してください。
使用方法
SSEServerTransport
を使用してサーバーを実行するには、次のコマンドを使用します。
/some/folder
フォルダーへの適切なパスに置き換えてください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
この TypeScript ベースの MCP サーバーを使用すると、ユーザーは Model Context Protocol (MCP) を使用してテキスト ノートを作成および要約することで、シンプルなノート システムを管理できます。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityThis TypeScript-based MCP server enables users to manage and summarize text notes, providing tools for note creation and summarization prompts.Last updated -15989TypeScript
- AsecurityAlicenseAqualityThis TypeScript-based MCP server enables users to manage a simple notes system with capabilities to create and summarize notes through structured prompts and resources.Last updated -50TypeScriptMIT License
- -securityFlicense-qualityA TypeScript-based MCP server that enables users to manage text notes with features like note creation and summary generation using a Model Context Protocol.Last updated -JavaScript
- AsecurityAlicenseAqualityThis TypeScript-based MCP server allows users to manage and interact with a note system through Model Context Protocol, enabling note creation and summarization with URIs and metadata.Last updated -1JavaScriptMIT License