Doc Monitor MCPのロゴ

Doc Monitor MCP

コミュニティ
iamakash-06

Advanced Documentation Monitoring & RAG Server for AI Agents

公開者iamakash-06
リポジトリDoc-Monitor-MCP
言語Python
フォーク
2
スター
9
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Doc Monitor MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには9件のスターと2件のフォークがあります。

Advanced Documentation Monitoring & RAG Server for AI Agents


doc-monitor is an intelligent Model Context Protocol (MCP) server that continuously monitors documentation, detects changes, and provides advanced Retrieval Augmented Generation (RAG) capabilities for AI agents and coding assistants. It automatically crawls web documentation, tracks versions, analyzes change impact, and maintains a searchable knowledge base to help developers stay current with evolving APIs and documentation.

🚀 Key Features

  • 🔍 Smart Documentation Monitoring: Continuously track documentation changes and analyze their impact
  • 📊 Version Control: Automatic versioning of documentation with detailed change tracking
  • 🧠 Impact Analysis: AI-powered analysis of breaking changes and API modifications
  • 🌐 Multi-Format Support: Handle web pages, sitemaps, OpenAPI specs, and text files
  • ⚡ High-Performance Crawling: Parallel processing with memory-adaptive dispatching
  • 🎯 Semantic Search: Vector-based RAG queries with advanced filtering
  • 🔧 MCP Integration: Standards-compliant Model Context Protocol server
  • 🐳 Production Ready: Docker support with comprehensive database schema

🏗️ Architecture

Core Technologies:

  • Python 3.12+ with asyncio for high-performance concurrent operations
  • Crawl4AI for intelligent web crawling and content extraction
  • Supabase with pgvector for vector storage and semantic search
  • OpenAI Embeddings (text-embedding-3-small) for content vectorization
  • FastMCP for Model Context Protocol server implementation

Database Schema:

  • crawled_pages: Document chunks with version tracking and vector embeddings
  • document_changes: Detailed change history with impact analysis
  • monitored_documentations: Active monitoring configuration and metadata

📦 Installation

Docker (Recommended)

bash
git clone https://github.com/iamakash-06/doc-monitor.git
cd doc-monitor
docker build -t doc-monitor .

Local Development

bash
git clone https://github.com/iamakash-06/Doc-Monitor-MCP.git
cd Doc-Monitor-MCP
pip install uv
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv pip install -e .

⚙️ Configuration

Create a .env file in the project root:

env
# Server Configuration
HOST=0.0.0.0
PORT=8051
TRANSPORT=sse

# OpenAI API
OPENAI_API_KEY=your_openai_api_key

# Supabase Database
SUPABASE_URL=your_supabase_project_url
SUPABASE_SERVICE_KEY=your_supabase_service_key

# Optional: Contextual Embeddings (requires additional OpenAI model access)
MODEL_CHOICE=gpt-4o-mini

🗄️ Database Setup

  1. Create a new Supabase project at supabase.com
  2. Navigate to the SQL Editor in your dashboard
  3. Execute the complete SQL schema from crawled_pages.sql:
bash
# Copy the entire contents of crawled_pages.sql and run in Supabase SQL Editor

This creates the required tables, indexes, functions, and RLS policies.

▶️ Running the Server

Docker

bash
docker run --env-file .env -p 8051:8051 doc-monitor

Local

bash
uv run src/doc_fetcher_mcp.py

The server will start and be available at http://localhost:8051 (SSE) or via stdio transport.

🛠️ MCP Tools API Reference

Documentation Monitoring

monitor_documentation

Start monitoring a documentation URL with automatic change detection.

json
{
  "name": "monitor_documentation",
  "arguments": {
    "url": "https://api.example.com/docs",
    "notes": "Critical API documentation - monitor for breaking changes"
  }
}

Supported URL Types:

  • Regular web pages (with recursive internal link crawling)
  • Sitemaps (XML format)
  • OpenAPI specifications (JSON/YAML)
  • Text/Markdown files

check_document_changes

Check a specific URL for changes and update the knowledge base.

json
{
  "name": "check_document_changes", 
  "arguments": {
    "url": "https://api.example.com/docs"
  }
}

check_all_document_changes

Scan all monitored documentation for changes.

json
{
  "name": "check_all_document_changes",
  "arguments": {}
}

Search & Retrieval

perform_rag_query

Semantic search across all documentation with optional filtering.

json
{
  "name": "perform_rag_query",
  "arguments": {
    "query": "How to authenticate API requests",
    "source": "api.example.com",
    "match_count": 10,
    "endpoint": "/auth",
    "method": "POST"
  }
}

Management & Analytics

list_monitored_documentations

Get all actively monitored documentation sources.

get_available_sources

List all unique domains/sources in the knowledge base.

get_document_history

View complete change history for a specific URL.

delete_documentation_from_monitoring

Remove a URL from active monitoring.

🔌 Integration Examples

Claude Desktop (SSE Transport)

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "doc-monitor": {
      "transport": "sse",
      "url": "http://localhost:8051/sse"
    }
  }
}

Stdio Transport

json
{
  "mcpServers": {
    "doc-monitor": {
      "command": "uv",
      "args": ["run", "src/doc_fetcher_mcp.py"],
      "env": {
        "TRANSPORT": "stdio",
        "OPENAI_API_KEY": "your_openai_api_key", 
        "SUPABASE_URL": "your_supabase_url",
        "SUPABASE_SERVICE_KEY": "your_supabase_service_key"
      }
    }
  }
}

🎯 Use Cases

API Documentation Monitoring

bash
# Monitor critical API documentation
monitor_documentation("https://api.stripe.com/docs")

# Check for breaking changes
check_document_changes("https://api.stripe.com/docs") 

# Search for specific functionality
perform_rag_query("payment methods", source="api.stripe.com")

Documentation Change Analysis

The system automatically:

  • 🔍 Detects Changes: Content additions, modifications, and deletions
  • 📈 Analyzes Impact: Identifies breaking changes and API modifications
  • 🚨 Provides Recommendations: Actionable insights for maintaining compatibility
  • 📋 Tracks History: Complete audit trail of all documentation evolution

🔧 Advanced Configuration

Memory and Performance

The server includes adaptive memory management:

python
CHUNK_SIZE = 5000          # Token limit per chunk
MAX_CONCURRENT = 10        # Parallel crawling limit  
MAX_DEPTH = 3             # Recursive crawling depth
MEMORY_THRESHOLD_PERCENT = 70.0  # Memory usage limit

Contextual Embeddings

Enable enhanced retrieval with contextual embeddings by setting MODEL_CHOICE:

env
MODEL_CHOICE= text-embedding-3-large # Enables context-aware chunk processing

📄 License

MIT License - see LICENSE for details.

🆘 Support


doc-monitor — Intelligent documentation monitoring and RAG for the AI-powered development workflow.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "iamakash-06-doc-monitor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "doc-fetcher"
      ]
    }
  }
}

Doc Monitor MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Doc Monitor MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Doc Monitor MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Doc Monitor MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "iamakash-06-doc-monitor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "doc-fetcher"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてDoc Monitor MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Doc Monitor MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Doc Monitor MCPを使ってこのタスクを手伝ってもらえますか?
Doc Monitor MCP
はい、読みました。
Doc Monitor MCPで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

Doc Monitor MCPがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックしてください。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にお使いのサーバーURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にお使いのサーバーURLを貼り付けてください。
  2. Doc Monitor MCPの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックしてください。
  2. MCPコネクタの一覧に戻ってください。
  3. Doc Monitor MCPの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でDoc Monitor MCPのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でDoc Monitor MCPのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Doc Monitor MCPを使ってこのタスクを手伝ってもらえますか?
Doc Monitor MCP
はい、読みました。
Doc Monitor MCPで調べた結果をお伝えします。

よくある質問

Doc Monitor MCP MCPサーバーは何に使いますか?

Doc Monitor MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでDoc Monitor MCP MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでDoc Monitor MCPを利用できます。

TypingMindでDoc Monitor MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。Doc Monitor MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Doc Monitor MCP MCPをTypingMindに接続するにはどうすればよいですか?

Doc Monitor MCPは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでDoc Monitor MCP MCPのどのようなツールを利用できますか?

Doc Monitor MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Doc Monitor MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Doc Monitor MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇