
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MkDocs 구동 사이트에 대한 검색 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 Lunr를 사용하여 기존 MkDocs 검색 구현에 의존합니다. Js 검색 엔진.
개요
MkDocs 구동 사이트에 대한 검색 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 Lunr를 사용하여 기존 MkDocs 검색 구현에 의존합니다. Js 검색 엔진. 설치 지침을 따르십시오. Claude Desktop 사용자 용 Model Context Protocol Quickstart를 따르십시오. 다음과 같이 섹션 tothe MCP 구성 파일을 추가해야합니다. 이 프로젝트는 출판 된 mkdocs 문서 사이트를 통해 검색 할 수있는 MCP 서버를 구현합니다. lunr.js를 사용하여 효율적인 로컬 검색 기능을 사용하고 사용자가 요약하고 제시 할 수있는 결과를 제공합니다. - LLMs와 통합을위한 MCP-compliant 서버 - lunr를 사용하여 로컬 검색.
개요(AI 번역)
MkDocs 구동 사이트에 대한 검색 기능을 제공하는 모델 Context Protocol (MCP) 서버. 이 서버는 Lunr를 사용하여 기존 MkDocs 검색 구현에 의존합니다. Js 검색 엔진.
Claude 데스크탑 Quickstart
설치 지침을 따르십시오. Claude Desktop 사용자 용 Model Context Protocol Quickstart를 따르십시오. 다음과 같이 섹션 tothe MCP 구성 파일을 추가해야합니다.
개요
이 프로젝트는 출판 된 mkdocs 문서 사이트를 통해 검색 할 수있는 MCP 서버를 구현합니다. lunr.js를 사용하여 효율적인 로컬 검색 기능을 사용하고 사용자가 요약하고 제시 할 수있는 결과를 제공합니다.
특징
- LLMs와의 통합을 위한 MCP-compliant 서버
- lunr.js 인덱스를 사용하여 로컬 검색
- 버전별 문서 검색 기능
- MkDocs Material HTML to Markdown 변환 구조 JSON 응답
- 언어 감지 및 컨텍스트로 코드 예 추출
- 다국어 문서에 대한 탭보기 지원
- Mermaid 도표 보전
- 자동 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"
]
}
}
}