DevInsight MCP
DevInsight MCP is a read-only MCP server that lets Claude inspect, analyze, and grade local Git repositories through six tools, one resource, and one prompt.
repo_stats— language and line-count breakdown per repo (total files, total lines, per-extension stats sorted by size)find_todos— scan forTODO/FIXME/HACK/XXXcomments, capped bymax_results(default 100)git_log_summary— summarize the last N commits with author, date, message, and lines added/removedfind_large_files— flag source files above a line threshold (default 300), largest firstrepo_health— produce a 0–100 health score from README/LICENSE/tests/git checks plus TODO density and oversized files, with actionable recommendationstech_stack— fingerprint languages, frameworks, databases, package managers, CI/CD, and deployment from manifest and config filesResource
repo://tree/{path}— browse a repository's directory treePrompt
review_todos— have Claude review and prioritize a project's TODOsScanning auto-skips noise (
.git,node_modules, virtualenvs, build caches, lock files, binaries), and the server never writes, deletes, or executes anything except a fixedgit log
Allows Claude to inspect, analyze, and grade local Git repositories, including language stats, TODO tracking, git history, large-file detection, repo health scoring, and tech stack fingerprinting.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DevInsight MCP Check the health of this repository."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DevInsight MCP
A lightweight Model Context Protocol (MCP) server that gives Claude the ability to inspect, analyze, and grade local Git repositories.
Built with Anthropic's official Python MCP SDK, DevInsight demonstrates all three MCP primitives — Tools, Resources, and Prompts — through practical developer workflows: language stats, TODO tracking, git history, large-file detection, an overall repo health score, and technology-stack fingerprinting.
Demo

A live session driving the DevInsight tools against this very repository — repo stats, TODO scan, and large-file detection.
Related MCP server: MCP Git Explorer
✨ Features
📊 Repository statistics — languages, file counts, line counts
📝 Scan projects for
TODO,FIXME,HACK, andXXX📜 Summarize recent Git commits (author, date, message, +/- lines)
📁 Detect oversized source files that are due for a refactor
🩺 Score overall repository health (README/LICENSE/tests/git, TODO density, file size) with concrete recommendations
🧰 Fingerprint a project's tech stack — languages, frameworks, databases, package managers, CI/CD, deployment
🌳 Browse repositories through an MCP Resource
🤖 Review and prioritize TODOs using an MCP Prompt
Scanning automatically skips noise: .git, .github, node_modules, virtualenvs, build/cache directories, lock files, and binary assets — see Repository Scanning below.
Why DevInsight?
Developers spend a surprising amount of time manually inspecting repositories:
searching for TODOs
checking Git history
counting files
finding oversized modules
judging whether a project is in good shape before diving in
DevInsight exposes these tasks as MCP tools so Claude can perform them for you, directly in conversation.
Instead of manually searching your project, you can simply ask:
"Summarize the last 10 commits."
"Find every TODO and tell me which ones are most important."
"Which files are becoming too large?"
"How healthy is this repo, and what should I fix first?"
"What's the tech stack of this project?"
Installation
Install from PyPI (easiest)
pip install devinsight-mcp
devinsight-mcp # runs the server over stdioOr run it without installing, using uv:
uvx devinsight-mcpFrom source (development)
Clone the repository
git clone https://github.com/AzalHoseinian/devinsight-mcp.git
cd devinsight-mcpCreate a virtual environment
python3 -m venv .venv
source .venv/bin/activateWindows:
.venv\Scripts\activateInstall dependencies
pip install -r requirements.txtRun the tests
pip install pytest
python -m pytest -qTry it with the MCP Inspector
The easiest way to test the server standalone is with the official MCP Inspector:
mcp dev server.pyThe Inspector lets you invoke every Tool, inspect Resources, test Prompts, and debug raw responses — all in the browser, no client app required.
Claude Desktop Setup
Add DevInsight to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Easiest (uses uvx):
{
"mcpServers": {
"devinsight": {
"command": "uvx",
"args": ["devinsight-mcp"]
}
}
}From a clone:
{
"mcpServers": {
"devinsight": {
"command": "/absolute/path/to/devinsight-mcp/.venv/bin/python3",
"args": [
"/absolute/path/to/devinsight-mcp/server.py"
]
}
}
}If you installed the command with pip install . or pip install devinsight-mcp, you can point Claude Desktop at it instead:
{
"mcpServers": {
"devinsight": {
"command": "/absolute/path/to/devinsight-mcp/.venv/bin/devinsight-mcp"
}
}
}Using the virtual environment's Python interpreter (rather than a bare python) ensures Claude Desktop finds the mcp package regardless of what's active in your shell.
Fully quit and reopen Claude Desktop afterwards — it only reads this file on startup. Then try:
Use
repo_statson ~/projects/my-app
or
Review all TODOs in this repository.
Security notes
DevInsight is read-only: it never writes, deletes or executes anything from the repositories it scans. The only external command it runs is git log with a fixed argument list.
It can, however, read any path you give it that your user account can read, so only connect it to clients you trust. It does not follow symlinked directories when drawing the tree, and it skips lock files and binaries in statistics.
Available Tools
Primitive | Name | Purpose |
Tool |
| Language and line-count breakdown |
Tool |
| Find TODO / FIXME / HACK / XXX comments |
Tool |
| Summarize recent Git activity |
Tool |
| Detect files exceeding a configurable size |
Tool |
| Overall 0-100 health score with recommendations |
Tool |
| Detect languages, frameworks, databases, package managers, CI/CD, deployment |
Resource |
| Render the repository tree |
Prompt |
| Ask Claude to prioritize TODOs |
Usage examples
repo_stats(path="~/projects/my-app")
→ { "total_files": 142, "total_lines": 18734,
"by_extension": { ".ts": {...}, ".tsx": {...}, ... } }
find_todos(path=".", max_results=50)
→ [ { "file": "src/api.ts", "line_number": 42,
"tag": "TODO", "text": "handle retry backoff" }, ... ]
git_log_summary(path=".", count=5)
→ { "commits": [ { "hash": "a1b2c3d4", "author": "...",
"date": "2026-07-10", "message": "...",
"insertions": 12, "deletions": 3 }, ... ] }
find_large_files(path=".", threshold_lines=300)
→ [ { "file": "src/legacy/parser.py", "lines": 812 }, ... ]
repo_health(path=".")
→ { "score": 78,
"checks": { "has_git": true, "has_readme": true,
"has_license": true, "has_tests": false },
"recommendations": [ "Add a test suite ..." ] }
tech_stack(path=".")
→ { "languages": ["Python"], "frameworks": ["FastAPI"],
"databases": ["PostgreSQL"], "package_managers": ["pip"],
"ci_cd": ["GitHub Actions"], "deployment": ["Docker"] }Repository Scanning
Statistics tools (repo_stats, find_todos, find_large_files, repo_health) walk the repo while pruning directories as they go — ignored subtrees are never descended into.
Ignored directories: .git, .github, node_modules, venv, .venv, env, __pycache__, dist, build, .next, .nuxt, .svelte-kit, .idea, .vscode, target, coverage, htmlcov, .pytest_cache, .mypy_cache, .cache
Excluded from statistics: lock files (package-lock.json, pnpm-lock.yaml, yarn.lock, poetry.lock, Cargo.lock, Gemfile.lock, composer.lock, uv.lock, bun.lockb) and binary assets (.png, .jpg, .jpeg, .gif, .pdf, .zip, .exe, .dll) — these are real project content, but noise in line/size stats.
tech_stack looks at these same files directly, since a lock file's mere presence is a useful package-manager signal.
Architecture
Claude Desktop
│
▼
DevInsight MCP Server
│
┌───────────────┼───────────────┐
▼ ▼ ▼
Git Repository File System Git HistoryProject Structure
devinsight-mcp/
├── devinsight_mcp.py # implementation (installed as the `devinsight-mcp` command)
├── server.py # thin launcher for `mcp dev server.py`
├── tests/
├── .github/workflows/test.yml
├── pytest.ini
├── requirements.txt
├── pyproject.toml
├── README.md
├── docs/
│ ├── demo.gif
│ ├── demo.tape
│ └── demo_cli.py
└── .gitignoreRoadmap
Repository statistics
TODO scanner
Git history summaries
Large file detection
Repository tree resource
TODO review prompt
Overall repo health score
Tech stack detection
Test suite and CI
Optional allowlist of readable root directories
Lint summary tool
GitHub Issues integration
Dependency vulnerability analysis
Pull request insights
Tech Stack
Python
Anthropic MCP Python SDK
Git
Claude Desktop
Model Context Protocol (MCP)
Contributing
Contributions, suggestions, and feedback are welcome.
If you'd like to improve DevInsight, feel free to open an issue or submit a pull request.
License
MIT — see LICENSE.
Available Tools
6 toolsfind_large_filesA
Flag source files that are unusually large — often a signal they're due for a refactor or split.
Args: path: Filesystem path to the repo root. threshold_lines: Minimum line count to be flagged (default 300). top_n: Max number of files to return, largest first (default 10).
Returns: List of {file, lines} dicts, sorted largest first.
Inputs: path, top_n, threshold_lines. Returns: result
find_todosA
Scan a repo for TODO / FIXME / HACK / XXX comments.
Args: path: Filesystem path to the repo root. max_results: Cap on how many matches to return (default 100).
Returns: List of {file, line_number, tag, text} dicts, one per match found.
Inputs: path, max_results. Returns: result
git_log_summaryA
Summarize the most recent git commits in a repo: author, date, message, and how many lines were added/removed.
Args: path: Filesystem path to the repo root (must be a git repo). count: How many recent commits to include (default 10).
Returns: Dict with a list of commits, or an error if this isn't a git repo.
Inputs: path, count.
repo_healthA
Give a repository an overall health score with supporting evidence.
Checks for a README, a LICENSE, a test suite, and Git version control, plus TODO density and oversized files, then rolls it all into a single 0-100 score with concrete recommendations.
Args: path: Filesystem path to the repo root. large_file_threshold: Line count above which a file counts as "large".
Returns: Dict with score, component checks, counts, largest_files, and a list of recommendations for the lowest-scoring areas.
Inputs: path, large_file_threshold.
repo_statsA
Get a language and size breakdown for a local repository.
Args: path: Filesystem path to the repo root (default: current directory).
Returns: Dict with total_files, total_lines, and a per-extension breakdown (files + lines), sorted by line count descending.
Inputs: path.
tech_stackA
Detect a project's technology stack from its manifest and config files.
Looks for common manifests (pyproject.toml, requirements.txt, package.json, Dockerfile, docker-compose.yml, GitHub Actions workflows, Cargo.toml, go.mod, composer.json, build.gradle, and more), and inspects package.json / requirements.txt contents for known frameworks and databases.
Args: path: Filesystem path to the repo root.
Returns: Dict with sorted lists for languages, frameworks, databases, package_managers, ci_cd, and deployment, plus the manifest files that were found.
Inputs: path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct aspect of repository analysis—large files, TODOs, git log, health, stats, and tech stack. There is no functional overlap between tools.
All names use snake_case and are descriptive, but there is a mix: two start with 'find_' (verb) while the rest start with nouns like 'git_log_', 'repo_', 'tech_'. This is a minor inconsistency.
Six tools form a well-scoped set for a repository insights server. Each tool provides a distinct, valuable capability without being excessive or insufficient.
The set covers core areas: file analysis, TODOs, git history, overall health, stats, and tech stack. Missing features like complexity or dependency analysis are not critical gaps given the tool count.
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
GitHub repo search, stats, language breakdown and comparison as agent tools.
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and security.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with git repositories by providing real-time access to repository status, branch information, commit history, and file changes. Allows users to query their git workspace through natural language commands.-
- AlicenseAqualityDmaintenanceEnables Claude to explore and analyze remote Git repositories, providing structured file contents and token estimates.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables Claude to analyze GitHub repositories with tools for health scoring, contributor analysis, issue tracking, code search, and more.MIT
- FlicenseNot gradedqualityDmaintenanceProvides GitHub repository analysis tools for Claude, including repo summaries, commit history, issue tracking, contributor stats, and code quality assessment. Enables natural language queries about code quality, contributor activity, and repository comparisons.-