Autodocument MCP Server

MCP server for automatic documentation generation using OpenRouter

Local serverstdio

What is the Autodocument MCP Server?

MCP server for automatic documentation generation using OpenRouter.

What Autodocument does

An MCP (Model Context Protocol) server that automatically generates documentation for code repositories by analyzing directory structures and code files using OpenRouter API.

Key capabilities

  • Smart Directory Analysis — Recursively analyzes directories and files in a code repository
  • Git Integration — Respects .gitignore patterns to skip ignored files
  • AI-Powered Documentation — Uses OpenRouter API (with Claude 3.7 by default) to generate comprehensive documentation
  • Test Plan Generation — Automatically creates test plans with suitable test types, edge cases, and mock requirements
  • Code Review — Performs senior developer-level code reviews focused on security, best practices, and improvements
  • Bottom-Up Approach — Starts with leaf directories and works upward, creating a coherent documentation hierarchy
  • Intelligent File Handling —
  • Creates documentation.md, testplan.md, and review.md files at each directory level

Requirements

Practical notes

  • Maintained by PARS-DOE.

Recorded tools

  • generate_documentation — Generates comprehensive documentation for a code repository: { "path": "/path/to/your/project", "openRouterApiKey": "your-api-key-here", // Optional "model": "anthropic/claude-3-7-sonnet", // Optional "updateExisting": t
  • autotestplan — Generates test plans for functions and components in a code repository: { "path": "/path/to/your/project", "openRouterApiKey": "your-api-key-here", // Optional "model": "anthropic/claude-3-7-sonnet", // Optional "updateE
  • autoreview — Generates a senior developer-level code review for a repository: { "path": "/path/to/your/project", "openRouterApiKey": "your-api-key-here", // Optional "model": "anthropic/claude-3-7-sonnet", // Optional "updateExisting

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_documentation

How to install the Autodocument MCP Server

{
  "mcpServers": {
    "autodocument": {
      "command": "node",
      "args": [
        "/path/to/autodocument/build/index.js"
      ],
      "env": {
        "OPENROUTER_API_KEY": "YOUR_OPENROUTER_API_KEY"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
OPENROUTER_API_KEYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Autodocument to Prerequisites.”
  • “Use Autodocument to generate documentation.”
  • “Use Autodocument to autotestplan.”

Frequently asked questions

MCP server for automatic documentation generation using OpenRouter Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.