home / mcp / doc bot mcp server
Provides live, searchable project docs and API references to AI assistants via MCP for enhanced coding guidance.
Configuration
View docs{
"mcpServers": {
"afterxleep-doc-bot": {
"command": "npx",
"args": [
"@afterxleep/doc-bot@latest"
]
}
}
}You can empower AI assistants with your project’s knowledge by running doc-bot as an MCP server. It indexes your docs, surfaces relevant guidance contextually, and updates your documentation as patterns evolve, so your AI helpers stay accurate and helpful.
Install and run doc-bot as an MCP server so your AI assistants can access your project documentation. The server works with any MCP-compatible assistant and focuses on smart search, contextual guidance, and live doc updates. You interact with it by configuring your MCP client to connect to the local or remote server, then asking your assistant questions like “What are the coding standards for this project?” or “Show me the auth flow.” The integration lets the AI surface targeted docs and API references without overloading the prompt.
Prerequisites: Node.js and npm (or a compatible Node runtime) must be installed on your machine.
1. Add doc-bot to your MCP client configuration using the stdio (local) setup shown below.
{
"mcpServers": {
"doc-bot": {
"command": "npx",
"args": ["@afterxleep/doc-bot@latest"]
}
}
}Create a project documentation folder named doc-bot at the root of your project and add markdown files to seed your knowledge base. For example, you can include coding standards, API patterns, testing guides, and architecture notes.
Example project structure you can start with:
your-project/
├── doc-bot/
│ ├── coding-standards.md
│ ├── api-patterns.md
│ ├── testing-guide.md
│ └── architecture.md
├── src/
└── package.jsonDocument files use frontmatter to describe the doc’s metadata, including title, description, keywords, and file patterns that determine when they apply.
---
title: "React Component Guidelines"
description: "Standards for building React components"
keywords: ["react", "components", "frontend", "jsx"]
---
# React Component Guidelines
- Use functional components with hooks
- Follow PascalCase naming
- Keep components under 200 lines
- Write tests for all componentsdoc-bot enables agents to update the documentation when new patterns or changes are discovered. You can also leverage Docsets to access official API references for frameworks and libraries from installed documentation databases.
Once the server is running, ask your AI assistant to fetch relevant docs or to read a specific file’s documentation. For example, request the coding standards or a particular API reference to verify compatibility with your current task.
Get documentation guidance for the current project task
Search all project and API documentation for relevant results
Retrieve documentation for a specific file or path
Open a full documentation document by name or title
List all available documentation in the project store
Add or update documentation entries when new patterns emerge
Reload documentation from disk to ensure the latest content is used
Explore API documentation and related classes/methods
Install a new API docset for official references
Remove an installed API docset
List all installed API docsets