Poly Glot
MCP server for Poly-Glot AI β generate professional code comments & documentation in 12 languages directly from Claude, Goose, Cursor, or any MCP-compatible AI client
Ask AI about Poly Glot
Powered by Claude Β· Grounded in docs
I know everything about Poly Glot. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π¦ Poly-Glot AI β AI Code Documentation Platform
AI-powered code documentation for 12 languages β Web, VS Code, CLI, MCP, and GitHub App.
What is Poly-Glot AI?
Poly-Glot AI transforms undocumented code into professionally commented code β instantly.
- 12 programming languages β JS, TS, Python, Java, C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin
- Three comment modes β doc-comments (JSDoc/PyDoc/Javadocβ¦), why-comments (reasoning & intent), or both in one pass
- Bring your own API key β OpenAI, Anthropic, and Google Gemini supported; your key never leaves your machine
- Available everywhere β Web Β· VS Code Β· CLI Β· MCP Β· GitHub Copilot Chat Β· GitHub App
π οΈ Available Tools
| Tool | Description | Install |
|---|---|---|
| π Web App | Paste code, get documented code back | poly-glot.ai β |
| π» VS Code Extension | Cmd+Shift+/ to comment inline | Marketplace β |
| β¨οΈ CLI | Comment files & directories from terminal | npm install -g poly-glot-ai-cli |
| π MCP Server | Use Poly-Glot from Claude, Goose, Cursor, Windsurf | npx poly-glot-mcp (Pro+ only) |
| π GitHub App | Auto-documents every PR with inline review comments | github.com/apps/poly-glot-ai β |
| π€ Copilot Chat | @poly-glot /comment inside VS Code | Included with VS Code extension |
π° Pricing
| Feature | Free | π Pro ($12/mo) | π₯ Team ($29/mo) | π’ Enterprise |
|---|---|---|---|---|
| Web UI generator | β | β | β | β |
| JS, TS, Python, Java | β | β | β | β |
| All 12 languages | π | β | β | β |
| WHY-Comments & Both mode | π | β | β | β |
| CLI tool | β 1 file/mo | β Unlimited | β Unlimited | β Unlimited |
| VS Code Extension (full) | π | β | β | β |
| MCP Server | π | β 200 calls/mo | β 1,000 calls/mo | β Unlimited |
| GitHub App PR reviews | β 25/mo | β Unlimited | β Unlimited | β Unlimited |
| Seats | 1 | 1 | 5 | Custom |
| Shared API key pool | β | β | β | β |
| Team dashboard | β | β | β | β |
| SSO / private deployment | β | β | β | β |
| Support | Community | Priority | Dedicated SLA |
π Authentication & Plans
Every surface requires a free account or higher plan:
- Web UI β sign in required before any generation
- CLI v1.9.0+ β
poly-glot loginrequired; server-side quota enforced - VS Code Extension v1.4.40+ β device fingerprint + session token enforced
- MCP Server β
POLYGLOT_SESSION_TOKENrequired; Pro, Team, or Enterprise only - GitHub App β API key required in
.polyglot.yml
Old CLI versions (v1.0βv1.6) are deprecated on npm and blocked from all server endpoints.
π Quick Start
Web
Go to poly-glot.ai, sign up free, paste code β get docs.
VS Code
# Install from Marketplace
code --install-extension poly-glot-ai.poly-glot
Then Cmd+Shift+/ (Mac) or Ctrl+Shift+/ (Windows/Linux) to generate comments.
CLI
npm install -g poly-glot-ai-cli
poly-glot login # create free account
poly-glot config --provider openai # set your API key
poly-glot comment src/auth.js # comment a file
poly-glot comment --dir src/ --yes # comment entire directory
MCP (Pro+ only)
# Add POLYGLOT_SESSION_TOKEN from your poly-glot.ai account dashboard
# Then add to your MCP client config:
npx poly-glot-mcp
β¨οΈ CLI Full Reference
# Account
poly-glot login # sign in / create free account
poly-glot config # interactive setup
poly-glot config --key sk-... --provider openai # OpenAI
poly-glot config --key sk-ant-... --provider anthropic # Anthropic
poly-glot config --key AIza... --provider google # Google Gemini
poly-glot config --token <session-token> # activate Pro
# Single file
poly-glot comment src/auth.js # doc-comments
poly-glot comment src/auth.js --dry-run # preview without writing
poly-glot comment src/auth.js --diff # show unified diff
poly-glot comment src/auth.js --backup # write + save .orig backup
poly-glot comment src/auth.js --why # why-comments (Pro)
poly-glot comment src/auth.js --both # doc + why (Pro)
# Directory
poly-glot comment --dir src/ --yes # comment entire directory
poly-glot comment --dir src/ --dry-run # preview all files
poly-glot comment --dir src/ --output-dir src-out/ # preserve originals
# Analysis (Pro)
poly-glot bugs src/auth.js # find bugs & edge cases
poly-glot refactor src/utils.ts # before/after refactor diffs
poly-glot test src/auth.js # generate unit tests
poly-glot explain src/utils.ts # deep code analysis
Environment variables (CI/CD)
POLYGLOT_API_KEY=sk-proj-...
POLYGLOT_PROVIDER=openai # openai | anthropic | google
POLYGLOT_MODEL=gpt-4.1-mini
POLYGLOT_MODE=both # comment | why | both
POLYGLOT_LICENSE_TOKEN=<session-token> # Pro license token β skips login in CI
GitHub Actions
- name: Document code with Poly-Glot
env:
POLYGLOT_API_KEY: ${{ secrets.POLYGLOT_API_KEY }}
POLYGLOT_PROVIDER: openai
POLYGLOT_MODEL: gpt-4.1-mini
POLYGLOT_LICENSE_TOKEN: ${{ secrets.POLYGLOT_LICENSE_TOKEN }}
run: |
npm install -g poly-glot-ai-cli
poly-glot comment --dir src/ --output-dir src-commented/ --yes
π MCP Server (Pro+ only)
The MCP server lets Claude Desktop, Goose, Cursor, Windsurf, and any MCP-compatible client call Poly-Glot directly.
Requires: Pro, Team, or Enterprise plan + POLYGLOT_SESSION_TOKEN
{
"mcpServers": {
"poly-glot": {
"command": "npx",
"args": ["-y", "poly-glot-mcp"],
"env": {
"POLYGLOT_PROVIDER": "openai",
"POLYGLOT_API_KEY": "sk-your-key-here",
"POLYGLOT_MODEL": "gpt-4.1-mini",
"POLYGLOT_SESSION_TOKEN": "your-session-token-from-poly-glot.ai"
}
}
}
}
| Plan | MCP calls/month |
|---|---|
| Free | π Not available |
| Pro | 200 |
| Team | 1,000 |
| Enterprise | Unlimited |
π Privacy & Security
- Your code never touches Poly-Glot servers β all AI calls go directly from your machine to OpenAI, Anthropic, or Google
- API keys stored locally β in
~/.config/polyglot/config.json(CLI) or VS Code SecretStorage, never sent to us - Session tokens β server-verified, 30-day TTL, stored in KV
- GitHub App β reads only changed PR files, never stores code
- Zero telemetry by default β opt in with
poly-glot config --telemetry
ποΈ Repo Structure
poly-glot/
βββ index.html # Main website (poly-glot.ai)
βββ dashboard/ # Admin health dashboard (/dashboard)
βββ cli/ # CLI source (poly-glot-ai-cli on npm)
βββ poly-glot-mcp/ # MCP server source (poly-glot-mcp on npm)
βββ vscode-extension/ # VS Code extension source
βββ auth-worker/ # Cloudflare Worker β auth + usage (source copy)
βββ telemetry-worker/ # Cloudflare Worker β CLI telemetry
βββ team-dashboard/ # Team analytics dashboard
βββ .github/workflows/ # CI/CD β publish CLI, MCP, VS Code, purge cache
π¬ Enterprise & Contact
For enterprise plans, custom deployments, SSO, or volume pricing:
π§ hwmoses2@icloud.com π poly-glot.ai
License
MIT Β© Poly-Glot AI
β If Poly-Glot saves you time, a star helps other developers find it. Found a bug? Open an issue β
