Skip to main content

Add your description here

Project description

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

{
  "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:

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_mcp-0.1.2.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_mcp-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: mkdocs_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdocs_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6c804d0d0e682e60653807c5d2593b323361bf88d653d44f5e2dfc49047f34f0
MD5 c2ac9e9e6b37ddc2e0d61d19e031a828
BLAKE2b-256 0025f0e2058739b908534e8869f7bcca06540356435c3d7c6ba85db199a41379

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_mcp-0.1.2.tar.gz:

Publisher: main.yaml on ubaumann/mkdocs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdocs_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf37ada35957e83416318385ac7b03fbccb6a02dcc495b3947fb2f7d4c88d731
MD5 e718bb16c8fa9c166999e90a83aa8502
BLAKE2b-256 fa7cd666f057aeab53cec7946e990d3b9dcb507989247c97917b8fc4b4426386

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_mcp-0.1.2-py3-none-any.whl:

Publisher: main.yaml on ubaumann/mkdocs-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page