Cover image
Try Now
2025-04-14

MKDOCS插件可为MCP服务

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

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:

uv run python src/mkdocs_mcp/ -mt stdio

MkDocs Configuration

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

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

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):

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

Inspecting the MCP Server

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

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!

相关推荐

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • lasso-security
  • 基于插件的网关,可协调其他MCP,并允许开发人员在IT企业级代理上构建。

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

    Reviews

    3.3 (4)
    Avatar
    user_dYMIPPpR
    2025-04-26

    I've been using mkdocs-mcp by ubaumann and it has significantly improved my documentation workflow. It's simple to use and highly customizable, making it a great tool for developers. The welcome information is clear, and starting with the provided URL is straightforward. If you need efficient documentation management, I highly recommend mkdocs-mcp!

    Avatar
    user_EZbT1zwS
    2025-04-26

    I've been using mkdocs-mcp for a while now and I'm highly impressed by its functionality. Created by ubaumann, this tool has significantly streamlined my documentation process. The interface is user-friendly and the customization options are excellent. If you're looking for a reliable documentation generator, mkdocs-mcp is definitely worth considering!

    Avatar
    user_eX0WbuTM
    2025-04-26

    I've been using mkdocs-mcp for a while now and I'm thoroughly impressed. The integration with MkDocs is seamless and it makes managing my documentation project a breeze. Kudos to ubaumann for creating such a reliable and user-friendly tool. Highly recommended!

    Avatar
    user_sNya19w4
    2025-04-26

    As an ardent user of mkdocs-mcp, I can confidently say this tool is a game-changer. Its seamless integration and intuitive design, crafted by ubaumann, make documentation a breeze. It significantly enhances my productivity and the quality of my projects. Highly recommend it to anyone who needs efficient and effective documentation solutions!