Mkdocs Mcp

io.github.ubaumann由 GitHub 帳號 ubaumann 發布v0.1.2更新於 Oct 24, 2026

An MCP server that provides serves MkDocs as resources.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

一個實驗性的 MkDocs 外掛,執行本機 MCP 伺服器,把 MkDocs 專案的文件頁面當作資源提供給助理。

可以做什麼
  • 把已設定的 MkDocs 專案頁面以 MCP 資源形式提供給助理。
  • 依外掛的 naming_style 設定,以來源檔名、目標 URL 或頁面標題命名資源。
  • 預設以來源 Markdown 提供頁面內容,關閉 prefer_markdown 時則把建置後的 HTML 轉成 Markdown。
  • 可選擇把所有頁面合併成單一資源,或依資料夾分別合併。
  • 由於無法覆寫 mkdocs serve,需透過 mkdocs_mcp 指令碼完成建置並啟動伺服器。
適用情境
適合以 MkDocs 維護文件、並希望助理在撰寫或修改時直接讀取這些頁面的情況,不必把內容貼進對話。此專案仍屬概念驗證,較適合實驗而非正式文件流程。
執行需求
以 stdio 本機程序執行,透過 mkdocs_mcp 指令碼啟動(例如 uv run mkdocs-mcp -mt stdio)。需要 MkDocs 專案路徑,可用 --mkdocs-project-path 選項或 MKDOCS_PROJECT_PATH 環境變數指定,並在專案的 mkdocs.yml 中加入 mcp 外掛。README 使用 uv 管理相依套件與虛擬環境。
安裝前請注意
專案自稱處於早期概念驗證階段,行為與設定可能變動。它會讀取並建置所指的 MkDocs 專案,請審慎設定專案路徑。未宣告任何身分驗證;它是本機 stdio 程序,而非遠端端點。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mkdocs Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mkdocs-mcp

MkDocs Plugin to Serve MCP
A proof-of-concept — feedback welcome!


mkdocs-mcp is an experimental plugin designed to integrate an MCP server into the MkDocs workflow. Due to limitations in MkDocs, the native mkdocs serve command cannot be overridden. Instead, this project provides the mkdocs_mcp script to handle the build process and launch the MCP server.

Quick Start

Requirements

This project uses uv for dependency management and virtual environments.

Running the MCP Server

To start the MCP server:

bash
uv run mkdocs-mcp -mt stdio

Use the --mkdocs-project-path option to specify the path to your MkDocs project if it's not in the current directory. The environment variable MKDOCS_PROJECT_PATH can also be set for this purpose.

MkDocs Configuration

Make sure to include mcp in your mkdocs.yml plugin list:

yaml
plugins:  - mcp:      naming_style: src_file  # "src_file"(default), "dst_url" or "title"      prefer_markdown: True  # By default the source markdown is used, set to False to convert the output HTML to markdown      combine_all_pages: False  # Aggregate all pages into one file      combine_by_folder: False  # Aggregate each folder

Using Claude Desktop with WSL

If you're working with Claude Desktop and WSL, configure your claude_desktop_config.json as follows (adjust paths as needed):

json
{  "mcpServers": {    "mkdocs": {      "command": "wsl.exe",      "args": [        "bash",        "-c",        "/home/urs/.cargo/bin/uv run --directory /home/urs/projects/mkdocs-mcp mkdocs-mcp -mt stdio"      ]    }  }}

Inspecting the MCP Server

For development and debugging, you can directly inspect the MCP server:

bash
uv run mcp dev src/mkdocs_mcp/__main__.py

Notes

  • This project is still in the early proof-of-concept stage.
  • Contributions and feedback are highly encouraged!

Thanks for checking out mkdocs-mcp!


GitHub MCP Registry mcp-name: io.github.ubaumann/mkdocs-mcp

來源:README.md,提交 46c9534

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分