Autodocument MCP Server
An MCP (Model Context Protocol) server that automatically generates documentation for code repositories by analyzing directory structures and code files using OpenRouter API.
Overview
Autodocument is an MCP (Model Context Protocol) server that automatically generates documentation for code repositories by analyzing directory structures and code files using the OpenRouter API.
To use Autodocument, clone the repository, install dependencies, configure your OpenRouter API key, and run the server to generate documentation for your code repository.
- Smart directory analysis that respects .gitignore patterns. - AI-powered documentation generation using OpenRouter API. - Bottom-up approach for coherent documentation hierarchy. - Intelligent file handling with support for updating existing documentation. - Progress reporting to prevent timeouts during long operations.
- Automatically generating documentation for large codebases.
- Integrating with AI assistants like Roo and Cline for enhanced documentation capabilities.
- Maintaining up-to-date documentation as code evolves.
Add to your AI client
Use these steps to connect Autodocument MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"autodocument-pars-doe": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"autodocument-pars-doe": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"autodocument-pars-doe": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"autodocument-pars-doe": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"autodocument-pars-doe": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"autodocument-pars-doe": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-autodocument-pars-doe"
]
}
}
}FAQ
Can Autodocument handle all programming languages?
Yes! Autodocument can analyze any code files as long as they are supported by the OpenRouter API.
Is there a limit to the size of the codebase?
Yes, you can configure size limits using environment variables.
How do I troubleshoot API key issues?
Ensure your OpenRouter API key is set correctly and that your account is active.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2417,"uuid":"4f364602-33d7-4c3f-8cce-a9e8af7bb020","name":"autodocument","title":"Autodocument MCP Server","description":"An MCP (Model Context Protocol) server that automatically generates documentation for code repositories by analyzing directory structures and code files using OpenRouter API.","avatar_url":"https://avatars.githubusercontent.com/u/37148493?v=4","created_at":"2025-03-13T07:49:10.862Z","updated_at":"2025-03-13T08:07:49.333Z","status":"created","author_name":"PARS-DOE","author_avatar_url":"https://avatars.githubusercontent.com/u/37148493?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/PARS-DOE/autodocument","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"CC0-1.0 license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-13 19:36:16\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]