mcp-docs
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., "@mcp-docssearch for deployment instructions"
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.
mcp-docs
Generic MCP server that exposes Markdown documentation to LLMs, enabling them to search and answer questions about any software documentation.
The server identity (name, instructions, category labels) is driven entirely by the docs/ directory — which is a separate repository cloned alongside this one.
Requirements
Python 3.14+
Setup
1. Clone the documentation repository
The docs/ directory must exist before the server can start. Clone the documentation repository into it:
git clone <docs-repo-url> docs2. Install dependencies
uv sync3. Configure environment variables (optional)
Copy .env.example to .env and set MCP_DOCS_DIR if your documentation directory lives outside docs/:
cp .env.example .envVariable | Default | Description |
|
| Absolute or relative path to the documentation directory |
docs/ directory structure
The server auto-discovers categories from subdirectories. The only required file is config.toml at the root of docs/.
docs/
├── config.toml # required — project identity
├── <category>/
│ ├── <topic>.md
│ └── ...
└── <category>/
└── ...config.toml
[project]
name = "my-project"
instructions = """
System instructions for the LLM. Describe what this documentation covers
and how the model should use the available tools.
"""
[categories]
folder-name = "Human-readable label"[project]is required.nameidentifies the server;instructionsguides the LLM.[categories]is optional. Any subdirectory not listed gets a title-cased label automatically (my-folder→My Folder).Files inside
img/subdirectories are never served.
Usage
Run the server (stdio mode)
uv run main.pyDevelopment with MCP Inspector
uv run mcp dev main.pyOpens the MCP Inspector in the browser. To connect to a running SSE or Streamable HTTP server, start it first and point the inspector to the printed endpoint:
uv run main.py --transport sse
uv run main.py --transport streamable-httpConfigure with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"my-project": {
"command": "uv",
"args": ["--directory", "/path/to/mcp-docs", "run", "main.py"],
"env": { "MCP_DOCS_DIR": "/path/to/your/docs" }
}
}
}Configure with Claude Code
claude mcp add my-project -- uv --directory /path/to/mcp-docs run main.pyTo pass MCP_DOCS_DIR when using Claude Code, add it to the server environment:
claude mcp add my-project -e MCP_DOCS_DIR=/path/to/your/docs -- uv --directory /path/to/mcp-docs run main.pyContainers
Build da imagem
# Docker
docker build -f .containers/Dockerfile -t mcp-docs:latest .
# Podman
podman build -f .containers/Dockerfile -t mcp-docs:latest .Executar localmente com docker-compose
Certifique-se de que o diretório docs/ existe e está populado antes de iniciar:
docker compose up
# ou com Podman
podman compose upO servidor ficará disponível em http://localhost:8080/mcp.
Executar o container manualmente
# Docker
docker run --rm -p 8080:8080 -v ./docs:/docs:ro mcp-docs:latest
# Podman
podman run --rm -p 8080:8080 -v ./docs:/docs:ro mcp-docs:latestDeploy no Kubernetes
Os arquivos de deployment e service estão em .containers/. Edite image: em deployment.yaml para apontar para o seu registry antes de aplicar.
kubectl apply -f .containers/deployment.yaml
kubectl apply -f .containers/service.yamlO Deployment referencia um PersistentVolumeClaim chamado mcp-docs-pvc para montar os arquivos de documentação em /docs. Crie e popule o PVC com a documentação antes de aplicar o Deployment.
Testando com o MCP Inspector
Com o container rodando localmente (via docker compose up ou manualmente), o endpoint Streamable HTTP estará em http://localhost:8080/mcp.
Abra o MCP Inspector:
npx @modelcontextprotocol/inspectorNo inspector, selecione o transport Streamable HTTP.
Informe a URL:
http://localhost:8080/mcpClique em Connect.
Teste as ferramentas disponíveis:
list_docs,read_doc,search_docs.
Capabilities
Tools
Tool | Description |
| List available documentation files, optionally filtered by category |
| Read the full content of a documentation file |
| Full-text search across all documentation |
Resources
URI | Description |
| Full index of all available documentation files |
| Content of a specific documentation file |
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
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/gmantovani2005/mcp-docs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server