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
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 READMEapi— API reference with signatures and parametersarchitecture— components, data flow, and diagramstutorial— 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
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
- 📖 Usage Guide — step-by-step setup for every app, all options, troubleshooting
- 🤝 Contributing · 🔒 Security policy · 🗂 Design docs
License
MIT — free for any use.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3011664d58c531749460fcc1e1dff2045bc3ae99928e6504b9e91c956be43c4
|
|
| MD5 |
f5340fa707faeb5893382f3af55ff3b2
|
|
| BLAKE2b-256 |
c900a08d6cb7bb89778a96e933062942169f8e3f81ebdc6b34f2da947a9cb750
|
Provenance
The following attestation bundles were made for ai_doc_creator-2.3.1.tar.gz:
Publisher:
publish.yml on dharmikraval1/ai-document-creator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_doc_creator-2.3.1.tar.gz -
Subject digest:
d3011664d58c531749460fcc1e1dff2045bc3ae99928e6504b9e91c956be43c4 - Sigstore transparency entry: 2171575320
- Sigstore integration time:
-
Permalink:
dharmikraval1/ai-document-creator@8400e4a0432a8f0017df78eb8973e9465bf3f051 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/dharmikraval1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8400e4a0432a8f0017df78eb8973e9465bf3f051 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a9f5a35fd7bd656203f9a5ecdbef47a364751de5c85dd4c9a00d6c672e2ae52
|
|
| MD5 |
2eaee73e496f8297e12fa68f10885cd1
|
|
| BLAKE2b-256 |
ddbb82d570c9f9ab5ed1173afb9a85f437e3c270c353adfede039c2f0c6cc468
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_doc_creator-2.3.1-py3-none-any.whl -
Subject digest:
7a9f5a35fd7bd656203f9a5ecdbef47a364751de5c85dd4c9a00d6c672e2ae52 - Sigstore transparency entry: 2171575323
- Sigstore integration time:
-
Permalink:
dharmikraval1/ai-document-creator@8400e4a0432a8f0017df78eb8973e9465bf3f051 -
Branch / Tag:
refs/tags/v2.3.1 - Owner: https://github.com/dharmikraval1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8400e4a0432a8f0017df78eb8973e9465bf3f051 -
Trigger Event:
release
-
Statement type: