
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
MkDocs の任意のサイトに検索機能を提供するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーは、Lunr を使用して既存の MkDocs の検索実装に依存しています。 Jsの検索エンジン.
概要
MkDocs の任意のサイトに検索機能を提供するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーは、Lunr を使用して既存の MkDocs の検索実装に依存しています。 Jsの検索エンジン。 インストール手順に従って、Claudeデスクトップユーザーのモデルコンテキストプロトコルクイックスタートに従ってください。 セクションのtothe MCP設定ファイルを次のように追加する必要があります。 このプロジェクトでは、公開された mkdocs のドキュメント サイトから検索するために、大言語モデル (LLM) を有効にする MCP サーバーを実装しています。 これは、効率的なローカル検索機能のためにlunr.jsを使用し、ユーザーにまとめて提示できる結果を提供します。 - LLM と統合するための MCP-compliant サーバー - lunr を使用してローカル検索.
概要(AI 翻訳)
MkDocs の任意のサイトに検索機能を提供するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーは、Lunr を使用して既存の MkDocs の検索実装に依存しています。 Jsの検索エンジン。
クロードデスクトップクイックスタート
インストール手順に従って、Claudeデスクトップユーザーのモデルコンテキストプロトコルクイックスタートに従ってください。 セクションのtothe MCP設定ファイルを次のように追加する必要があります。
概要
このプロジェクトでは、公開された mkdocs のドキュメント サイトから検索するために、大言語モデル (LLM) を有効にする MCP サーバーを実装しています。 これは、効率的なローカル検索機能のためにlunr.jsを使用し、ユーザーにまとめて提示できる結果を提供します。
##特徴
- LLMと統合するためのMCP準拠サーバー
- lunr.js インデックスを使用してローカル検索
- バージョン固有のドキュメント検索機能
- MkDocs 構造化された JSON 応答との Markdown の転換への物質的な HTML
- 言語検出とコンテキストによるコード例抽出
- タブビューは、複数の言語文書のサポート
- 人魚図保存
- 自動URL解像度(絶対的)
- 検索インデックスと変換されたドキュメントのインテリジェントキャッシュ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MkDocs MCP Search Server
A Model Context Protocol (MCP) server that provides search functionality for any MkDocs powered site. This server relies on the existing MkDocs search implementation using the Lunr.Js search engine.
Claude Desktop Quickstart
Follow the installation instructions please follow the Model Context Protocol Quickstart For Claude Desktop users. You will need to add a section tothe MCP configuration file as follows:
{
"mcpServers": {
"my-docs": {
"command": "npx",
"args": [
"-y",
"@serverless-dna/mkdocs-mcp",
"https://your-doc-site",
"Describe what you are enabling search for to help your AI Agent"
]
}
}
}
Overview
This project implements an MCP server that enables Large Language Models (LLMs) to search through any published mkdocs documentation site. It uses lunr.js for efficient local search capabilities and provides results that can be summarized and presented to users.
Features
- MCP-compliant server for integration with LLMs
- Local search using lunr.js indexes
- Version-specific documentation search capability
- MkDocs Material HTML to Markdown conversion with structured JSON responses
- Code example extraction with language detection and context
- Tab view support for multi-language documentation
- Mermaid diagram preservation
- Automatic URL resolution (relative to absolute)
- Intelligent caching for both search indexes and converted documentation
Installation
# Install dependencies
pnpm install
# Build the project
pnpm build
Usage
The server can be run as an MCP server that communicates over stdio:
npx -y @serverless-dna/mkdocs-mcp https://your-doc-site.com
Available Tools
Search Tool
The server provides a searchMkDoc tool with the following parameters:
search: The search query stringversion: Optional version string (only for versioned sites)
Sample Response:
{
"query": "logger",
"version": "latest",
"total": 3,
"results": [
{
"title": "Logger",
"url": "https://docs.example.com/latest/core/logger/",
"score": 1.2,
"preview": "Logger utility for structured logging...",
"location": "core/logger/"
},
{
"title": "Configuration",
"url": "https://docs.example.com/latest/core/logger/#config",
"score": 0.8,
"preview": "Configure the logger with custom settings...",
"location": "core/logger/#config",
"parentArticle": {
"title": "Logger",
"location": "core/logger/",
"url": "https://docs.example.com/latest/core/logger/"
}
}
]
}
Features:
- Confidence-based filtering (configurable threshold)
- Advanced scoring with title matching and boosting
- Parent article context for section results
インストール
npx -y @serverless-dna/mkdocs-mcp https://your-doc-site Describe what you are enabling search for to help your AI Agent設定
{
"mcpServers": {
"my-docs": {
"command": "npx",
"args": [
"-y",
"@serverless-dna/mkdocs-mcp",
"https://your-doc-site",
"Describe what you are enabling search for to help your AI Agent"
]
}
}
}