Skip to main content

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.

Metadata

Release files for ai-doc-creator 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-doc-creator 2.3.1
File Size Uploaded Provenance
ai_doc_creator-2.3.1.tar.gz 51.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-doc-creator 2.3.1
File Interpreter ABI Platform
ai_doc_creator-2.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 89.9 kB

Release files / ai_doc_creator-2.3.1.tar.gz

Download URL ai_doc_creator-2.3.1.tar.gz
Size 51.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d3011664d58c531749460fcc1e1dff2045bc3ae99928e6504b9e91c956be43c4
BLAKE2b-256 checksum
How to use checksums
c900a08d6cb7bb89778a96e933062942169f8e3f81ebdc6b34f2da947a9cb750
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Release files / ai_doc_creator-2.3.1-py3-none-any.whl

Download URL ai_doc_creator-2.3.1-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a9f5a35fd7bd656203f9a5ecdbef47a364751de5c85dd4c9a00d6c672e2ae52
BLAKE2b-256 checksum
How to use checksums
ddbb82d570c9f9ab5ed1173afb9a85f437e3c270c353adfede039c2f0c6cc468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

Security for ai-doc-creator 2.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ai_doc_creator-2.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page