CodeGlance MCP Server
An MCP (Model Context Protocol) server that analyzes GitHub repositories using Gemini AI and generates comprehensive documentation — project overviews, architecture guides, file insights, and more.
Works with any MCP-compatible client: Claude Code, Claude Desktop, Cursor, Windsurf, etc.
Quick Start
1. Get a Gemini API Key
Get a free API key from Google AI Studio.
2. Install & Configure
Claude Code
claude mcp add codeglance -e GEMINI_API_KEY=your_key_here -- uvx codeglance-mcp
That's it. Verify with:
claude mcp list
Claude Desktop / Cursor / Other MCP Clients
Add to your MCP config file (claude_desktop_config.json, .cursor/mcp.json, etc.):
{
"mcpServers": {
"codeglance": {
"command": "uvx",
"args": ["codeglance-mcp"],
"env": {
"GEMINI_API_KEY": "your_gemini_api_key_here"
}
}
}
}
Alternative: Install via pip
pip install codeglance-mcp
Then configure your MCP client to run codeglance-mcp as the command instead of uvx codeglance-mcp.
What It Does
When you ask your AI assistant to analyze a repository, CodeGlance:
- Clones the repository (shallow clone for speed)
- Reads key files (README, package.json, config files, entry points)
- Sends the context to Gemini AI with specialized analysis prompts
- Generates 6 documentation files in
codeglance-analysis/guide/
Generated Documentation
| File | Description |
|---|---|
01-overview.md |
5-minute project overview |
02-tree.md |
Annotated directory structure |
03-file-insights.md |
Key files and their purposes |
04-architecture.md |
System architecture deep-dive |
05-quick-start.md |
Getting started guide |
06-master-analysis.md |
Comprehensive technical analysis |
MCP Tools
| Tool | Description |
|---|---|
analyze_repository |
Run full analysis on a GitHub repo |
get_repository_info |
Check if a repo is already cloned |
list_generated_guides |
List generated documentation files |
MCP Prompts
| Prompt | Description |
|---|---|
comprehensive_analysis |
Full analysis workflow |
quick_overview |
Fast overview only |
architecture_review |
Architecture-focused analysis |
security_audit |
Security-focused review |
Configuration
All settings can be customized via environment variables in your MCP config:
| Variable | Default | Description |
|---|---|---|
GEMINI_API_KEY |
(required) | Your Google Gemini API key |
MAX_FILE_SIZE |
5000 |
Max characters per file to analyze |
MAX_FILES_PER_ANALYSIS |
50 |
Max files to include in analysis |
TIMEOUT_SECONDS |
120 |
API request timeout |
MAX_CONCURRENT_REQUESTS |
3 |
Concurrent Gemini API calls |
CACHE_TTL_SECONDS |
3600 |
In-memory cache TTL |
Example with custom settings:
{
"mcpServers": {
"codeglance": {
"command": "uvx",
"args": ["codeglance-mcp"],
"env": {
"GEMINI_API_KEY": "your_key",
"TIMEOUT_SECONDS": "180",
"MAX_CONCURRENT_REQUESTS": "5"
}
}
}
}
Requirements
- Python 3.11+
- Git (for cloning repositories)
- A Gemini API key (free tier works)
Development
git clone https://github.com/lucidopus/codeglance-mcp.git
cd codeglance-mcp
uv sync
# Run locally
GEMINI_API_KEY=your_key uv run codeglance-mcp
License
MIT
Metadata
Release files for codeglance-mcp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codeglance_mcp-0.1.3.tar.gz | 79.8 kB | Without provenance | Details for codeglance_mcp-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codeglance_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for codeglance_mcp-0.1.3-py3-none-any.whl |
Total release size: 132.4 kB
Release files / codeglance_mcp-0.1.3.tar.gz
| Download URL | codeglance_mcp-0.1.3.tar.gz |
|---|---|
| Size | 79.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46deb68d39233743f3d3d3bf7096876e2eb06acb28849743bc9819b5dcb1b5fa
|
|
BLAKE2b-256 checksum How to use checksums |
804a8666c2aa71e7a16dff4c2f4fc56a28e00315982fd44f15a299d86dbb042d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.12
|
Release files / codeglance_mcp-0.1.3-py3-none-any.whl
| Download URL | codeglance_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 52.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
544f776aefe26c86d7e0b79328a54b4ec4f4f4101cdc39aabba77d8b5f6533d1
|
|
BLAKE2b-256 checksum How to use checksums |
ebe919957f55e835701aeef2e841dc7214be010ffd3c0a36c8b42473c17c831d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.12
|
Security for codeglance-mcp 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.