Repo Analyzer MCP Server
Provides detailed Dockerfile creation guidance based on repository analysis, including language detection, port identification, and dependency management.
Analyzes Git repositories to understand their structure, dependencies, and programming languages for generating Dockerfile recommendations.
Supports analysis of private GitHub repositories using authentication via GitHub Personal Access Token.
Integrates with VS Code and GitHub Copilot to provide repository analysis and Dockerfile guidance directly within the development environment.
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., "@Repo Analyzer MCP Serveranalyze this Node.js repo and suggest a Dockerfile"
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.
Repo Analyzer MCP Server (Local)
An MCP server that analyzes Git repositories and provides Dockerfile creation guidance. Runs locally using stdio transport.
Features
Analyzes repository structure and dependencies
Detects primary programming language
Identifies exposed ports
Handles monorepo detection
Supports private GitHub repositories (with GITHUB_TOKEN)
Provides detailed Dockerfile recommendations
Related MCP server: ProjectBrain
Prerequisites
Python >= 3.10
Git command-line tool in PATH
(Optional) GitHub Personal Access Token for private repos
Installation
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# or
.venv\Scripts\activate # WindowsInstall dependencies:
pip install -e .Usage
With MCP Inspector
mcp-inspector python src/repo_analyzer_mcp/server.pyWith VS Code / GitHub Copilot
Add to VS Code settings (JSON) or create .vscode/mcp.json:
{
"mcp.servers": {
"repo-analyzer-local": {
"type": "stdio",
"command": "/path/to/venv/python",
"args": ["/path/to/src/repo_analyzer_mcp/server.py"],
"env": {
"GITHUB_TOKEN": "${env:GITHUB_TOKEN}"
},
"displayName": "Repo Analyzer (Local)"
}
}
}Replace /path/to/ with actual paths on your system.
Environment Variables
GITHUB_TOKEN: GitHub Personal Access Token (required for private repos)
This server cannot be deployed
Maintenance
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Repository knowledge graph MCP server for codebase understanding and debugging.
Related MCP Servers
- AlicenseCqualityDmaintenanceAn MCP server that analyzes local or remote GitHub repositories, providing intelligent code context and structure to AI coding assistants.1013MIT
- AlicenseBqualityDmaintenanceLocal MCP server providing project cognition capabilities for AI coding agents, including context packs, impact analysis, and git diff review through stdio communication.103MIT
- AlicenseNot gradedqualityDmaintenanceA secure, git-aware MCP server for working with local repositories, enabling file management, shell commands, and full git operations within allowed directories.91 npm1GPL 3.0
- AlicenseNot gradedqualityCmaintenanceA production-grade MCP server for local git repositories that provides tools for code search, git history analysis, complexity metrics, test discovery, and dependency management.MIT