MkDocs MCP Server
Provides topic-based documentation search for ArgoCD, including a dedicated find_argocd_docs tool.
Provides topic-based documentation search for GitLab, including a dedicated find_gitlab_docs tool.
Provides topic-based documentation search for Terraform, including a dedicated find_terraform_docs tool.
Provides topic-based documentation search for Vault, including a dedicated find_vault_docs tool.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MkDocs MCP Serversearch docs for 'configuration'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MkDocs MCP Server
A generic, configurable Model Context Protocol server that makes any MkDocs documentation site searchable and explorable from MCP clients (Claude CLI, IDEs, …).
Nothing is organization- or project-specific: the docs repo, URLs, tenants, topic taxonomy, and server identity are all supplied via configuration.
Transport: streamable-http
Search: BM25 (
rank-bm25) with an optional self-hosted semantic/hybrid layer (sentence-transformers, fused with Reciprocal Rank Fusion)Source of truth: the docs git repo (with a
search_index.jsonand alocalfallback)Built on established libraries — FastMCP (auth, middleware, transport),
markdown-it-py+python-markdown+python-frontmatter(parsing),pydantic-settings,structlog,prometheus-client.
Quick start (local)
uv pip install -e .
export MKDOCS_MCP_SOURCE_MODE=local
export MKDOCS_MCP_REPO_DIR=/path/to/your/mkdocs-repo
export MKDOCS_MCP_MKDOCS_CONFIG=mkdocs.yml
export MKDOCS_MCP_BASE_URL=https://docs.example.com
export MKDOCS_MCP_AUTH_MODE=none
mkdocs-mcp # serves http://0.0.0.0:8000/mcpHealth: GET /health, readiness: GET /ready, metrics: :9000/metrics.
Related MCP server: mcp-docs
Connect from Claude CLI (HTTP)
{
"mcpServers": {
"mkdocs-docs": {
"type": "http",
"url": "https://mkdocs-mcp.example.com/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}Configuration
All settings are env vars prefixed MKDOCS_MCP_ (see src/mkdocs_mcp/config.py).
Var | Default | Notes |
|
|
|
| — | docs repo to clone (when |
|
| supplies the nav tree |
|
| used for deep-links |
|
| restrict tenant segments (else first path segment) |
| — | YAML topic taxonomy (else vendor-neutral default) |
| k8s/argocd/terraform/vault/gitlab | topics that get a |
|
| needs the |
|
|
|
| — | comma-separated |
|
|
|
Custom topic taxonomy
# topics.yml (MKDOCS_MCP_TOPICS_FILE=/path/topics.yml)
topics:
payments:
paths: ["/payments/"]
keywords: ["checkout", "billing", "invoice"]Tools
Search: search_docs, search_section, semantic_search
Navigation: get_page, get_section, list_categories, list_pages, browse_tree
Knowledge: summarize_page, related_documents, suggest_reading
Discovery: recent_changes, find_runbooks, find_examples
Topics: find_by_topic (+ find_<topic>_docs aliases generated from FEATURED_TOPICS)
Admin: rebuild_index (admin scope), health_check, get_statistics
Auth
Static bearer tokens are verified by FastMCP's StaticTokenVerifier; admin
tokens carry the admin scope, required by rebuild_index. To use JWT or an
OAuth provider (Keycloak, GitHub, Google, …), change build_verifier in
src/mkdocs_mcp/auth.py to the matching FastMCP provider — the tools are
unaffected.
Semantic / hybrid search (optional)
uv pip install -e '.[vectors]'
export MKDOCS_MCP_EMBEDDINGS_ENABLED=true
export MKDOCS_MCP_EMBEDDINGS_MODEL=BAAI/bge-m3 # multilingual, self-hostedEmbeddings run in-process; no external embedding API is used.
Tests
uv pip install -e '.[dev]'
pytest
ruff check src testsContributing
See docs/CONTRIBUTING.md for development setup, validation, pull request expectations, and commit message rules.
Releases
This repository uses Semantic Versioning with semantic-release and
Conventional Commits.
When a branch is merged into main, the release workflow analyzes the commits
since the previous release, calculates the next version, creates the Git tag
automatically, builds Python and Helm package artifacts, publishes a GitHub
release with generated release notes, and pushes a GHCR image. The tag starts
with v (for example, v1.2.3).
The release image is published to ghcr.io/<owner>/<repo> with these tags:
<version>such as1.2.3<major>.<minor>such as1.2sha-<commit-sha>latest
Release notes are grouped into:
FeaturesBug FixesPerformanceRefactoring
Low-signal commit types such as docs:, test:, chore:, ci:, and
build: are hidden from published release notes unless they include a breaking
change.
Use standard Conventional Commit syntax:
feat: add source adapter-> minor releasefix: handle empty search index-> patch releaseperf: reduce indexing allocations-> patch releaserefactor: split parser metadata handling-> no version bump, but shown in release notesfeat!: change configuration names-> major releaseBREAKING CHANGE: configuration names changedin the commit footer -> major release
Deployment
Container + Helm chart for OKD/OpenShift live in charts/mkdocs-mcp/.
See charts/mkdocs-mcp/README.md.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceMCP server for markdown files — search, extract sections, list headings, find code blocks across docs.Last updated6744MIT
- Alicense-qualityDmaintenanceGeneric MCP server that exposes Markdown documentation to LLMs, enabling them to search and answer questions about any software documentation.Last updatedMIT
- AlicenseAqualityDmaintenanceMCP server that fetches and searches the latest stable documentation for any package from PyPI, npm, and crates.io.Last updated5MIT
- Flicense-qualityCmaintenanceMCP server to search and read documentation pages from a WikiJS instance via its GraphQL API.Last updated
Related MCP Connectors
MCP server for accessing curated awesome list documentation
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for doc2mcp documentation, generated by doc2mcp.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ehsanmsb/mkdocs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server