Docy MCP Server: Real-Time Technical Documentation Access
Enable your AI with Docy MCP server to access real-time technical documentation, no outdated info, broken links, or rate limits for precise coding help.
npx -y @oborchers/mcp-server-docyOverview
Docy MCP Server is a lightweight server that implements the Model Context Protocol (MCP) to provide AI models with reliable, real-time access to technical documentation. By indexing and serving documentation from local files, Git repositories, and HTTP endpoints, it removes dependence on stale crawled data and external rate-limited APIs. This makes it practical to power assistant workflows that need up-to-date, link-safe answers about code, APIs, and internal docs.
Designed for developers and platform engineers, the server exposes a simple HTTP interface and optional CLI tools to ingest, index, and serve documentation. It fits into CI, chatbots, IDE integrations, or any LLM-based assistant that must reference authoritative docs during inference.
Features
- Implements Model Context Protocol (MCP) for serving structured context to models
- Live document ingestion from:
- Local file systems
- Git repositories (GitHub/GitLab)
- Remote HTTP/markdown endpoints
- Link resolution and sanitization to avoid broken references
- Optional vector/text indexing for fast, semantic retrieval
- Docker and CLI-first deployment, configurable with environment variables or YAML
- Simple HTTP API to query context, list sources, and check health
- Self-hosted to avoid third-party rate limits and to keep internal docs private
Installation / Configuration
Clone the repository and run with Docker or from source.
Clone the repo:
Run with Docker:
# Build and run locally
Run with docker-compose:
version: "3.8"
services:
docy:
image: oborchers/mcp-server-docy:latest
ports:
- "8080:8080"
environment:
- MCP_PORT=8080
- DOCY_INDEX_PATH=/data/index
volumes:
- ./docs:/data/docs
Example environment variables (table):
| Variable | Description | Default |
|---|---|---|
| MCP_PORT | HTTP port to bind | 8080 |
| DOCY_INDEX_PATH | Path to store indexes | ./data/index |
| DOCY_SOURCES | Comma-separated ingestion sources | (none) |
| DOCY_LOG_LEVEL | Logging level (info/debug) | info |
Example YAML source configuration (sources.yaml):
sources:
- type: git
url: https://github.com/your-org/your-repo.git
branch: main
path: docs/
- type: filesystem
path: /var/docs/internal
- type: http
url: https://example.com/openapi.yaml
After configuring sources, trigger ingestion:
# If the project includes a CLI
Available Resources
Typical HTTP endpoints (adjust to your deployment):
| Endpoint | Method | Description |
|---|---|---|
| /health | GET | Health check |
| /mcp/context | POST | Request MCP-compliant context for a query |
| /documents | POST | Upload or register new documents/sources |
| /sources | GET/POST | List or add ingestion sources |
| /search | POST | Full-text or vector semantic search over indexed docs |
Example MCP-style request (curl):
Example response (abridged):
Use Cases
- IDE assistant: An extension calls /mcp/context with the current file and cursor context to fetch the most recent API docs and examples, enabling precise autocomplete and in-editor help.
- ChatOps and support bots: A chat assistant uses the server to retrieve definitive docs and code snippets when answering questions from developers, avoiding stale references.
- CI documentation checks: Integrate the server into CI to validate that documentation links in PRs resolve and that code examples match the latest API surface.
- Private knowledge base for LLMs: Host internal RFCs, runbooks, and API guides behind your VPC and let LLMs query them without exposing content externally or hitting rate limits.
Getting Help & Contributing
- Repository: https://github.com/oborchers/mcp-server-docy
- Common contribution paths:
- Add new source adapters (e.g., Confluence, S3)
- Improve indexing (incremental updates, semantic embeddings)
- Add authentication/ACLs for production deployments
If you need a quick start, run the Docker image locally and point DOCY_SOURCES to a