Skip to main content

AI-powered documentation generator for repos and local projects — MCP server + CLI, any LLM provider or keyless via MCP host sampling.

Project description

AI Document Creator

CI PyPI License: MIT

Ask your AI assistant to document any codebase — and get a full set of docs with architecture diagrams, delivered as files or a pull request.

You say:

"Document the repo https://github.com/user/repo and open a PR with the docs."

You get:

  • 📄 A markdown doc for every file — what it does, key functions, how to use it
  • 📖 A polished README for the whole project
  • 📊 Architecture diagrams (Mermaid) — a project map and a module-dependency chart, generated from real imports so they're always accurate
  • 🔀 Delivered where you want: local folder, inline in chat, or a GitHub pull request

Works inside Claude Code, Claude Desktop, Cursor, Codex, Antigravity — any app that supports MCP — plus a plain CLI and a GitHub Action.

Get started in 1 minute

In Claude Code

claude mcp add ai-doc-creator -- uvx --from ai-doc-creator ai-doc-creator-mcp

Then just ask: "Document this project." That's it.

In Claude Desktop, Cursor, or any other MCP app

Add this to the app's MCP settings (Cursor: ~/.cursor/mcp.json):

{
  "mcpServers": {
    "ai-doc-creator": {
      "command": "uvx",
      "args": ["--from", "ai-doc-creator", "ai-doc-creator-mcp"]
    }
  }
}

You need uv and git installed — nothing else.

Don't want to install anything?

Point your MCP app at the hosted server instead — see the Usage Guide.

Do I need an API key?

No. Pick whichever fits you:

You have... What to do
Nothing — just an AI app Ask: "Use start_doc_job to document <repo>, write the docs yourself batch by batch, then finish the job." Your app's own AI writes the docs — free.
An API key (Anthropic/OpenAI/Azure/Bedrock) Add it to the config — fastest, everything generated in one call
Ollama on your machine provider="ollama" — free and fully offline

Pick a documentation style

Add profile to your request (or --profile in the CLI):

  • readme (default) — classic project README
  • api — API reference with signatures and parameters
  • architecture — components, data flow, and diagrams
  • tutorial — a guided walkthrough for newcomers

💡 Diagrams render as pictures on GitHub and in IDE markdown previews. A plain terminal shows their Mermaid source — that's normal.

The CLI (no AI app needed)

pip install ai-doc-creator
export ANTHROPIC_API_KEY=sk-ant-...          # any supported provider
ai-doc-creator --repo https://github.com/user/repo --output docs
ai-doc-creator --path . --profile architecture

Docs that update themselves (GitHub Action)

- uses: dharmikraval1/ai-document-creator@v2
  env:
    ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}

Every push regenerates your docs and opens a PR. Full workflow →

Host your own public server

Deploy to Render

One click. Safe defaults are pre-configured: your API keys are never spent on other people's requests (they bring their own key in a header, or their app's AI writes the docs), rate limiting is on, and auto-deploy tracks main.

Good to know

  • Incremental: re-runs only process files that changed (content-hash cache) — fast and cheap.
  • Your key stays private: keys travel in config/headers only — never in chat messages, logs, or output.
  • Hardened: SSRF guards, request sandboxing, size/time/rate limits. Details in SECURITY.md.

Learn more

License

MIT — free for any use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_doc_creator-2.3.1.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_doc_creator-2.3.1-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_doc_creator-2.3.1.tar.gz.

File metadata

  • Download URL: ai_doc_creator-2.3.1.tar.gz
  • Upload date:
  • Size: 51.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_doc_creator-2.3.1.tar.gz
Algorithm Hash digest
SHA256 d3011664d58c531749460fcc1e1dff2045bc3ae99928e6504b9e91c956be43c4
MD5 f5340fa707faeb5893382f3af55ff3b2
BLAKE2b-256 c900a08d6cb7bb89778a96e933062942169f8e3f81ebdc6b34f2da947a9cb750

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_doc_creator-2.3.1.tar.gz:

Publisher: publish.yml on dharmikraval1/ai-document-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ai_doc_creator-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: ai_doc_creator-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ai_doc_creator-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a9f5a35fd7bd656203f9a5ecdbef47a364751de5c85dd4c9a00d6c672e2ae52
MD5 2eaee73e496f8297e12fa68f10885cd1
BLAKE2b-256 ddbb82d570c9f9ab5ed1173afb9a85f437e3c270c353adfede039c2f0c6cc468

See more details on using hashes here.

Provenance

The following attestation bundles were made for ai_doc_creator-2.3.1-py3-none-any.whl:

Publisher: publish.yml on dharmikraval1/ai-document-creator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page