mcp-repo-mapper
Detects Django framework usage and identifies entry points.
Identifies Dockerfiles as entry point candidates for containerized applications.
Detects Express framework usage and identifies entry points.
Detects FastAPI framework usage and identifies entry points such as FastAPI app instances.
Detects Flask framework usage and identifies entry points.
Detects Spring framework usage and identifies entry points.
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., "@mcp-repo-mapper scan the repository at /home/user/project"
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.
mcp-repo-mapper
mcp-repo-mapper is a FastMCP server for deterministic repository structure mapping. It scans a local codebase and exposes file structure, language counts, Python import dependencies, circular dependency detection, framework detection, entry point candidates, and a cached repo structure resource.
The server does not call an LLM and does not execute user code. It is intended as a grounded structure tool for codebase onboarding agents such as wayfinder.
Codebase Onboarding Stack
mcp-repo-mapper is the structure layer in a three-server MCP tool stack for Project 6 wayfinder, a codebase onboarding agent.
mcp-repo-mappermaps repository structure, languages, entry points, framework evidence, and Python dependency edges.mcp-ast-explorerprovides symbol-grounded Python definition, signature, reference, call-chain, and class-hierarchy lookups.mcp-test-runnerruns local pytest/Jest checks and coverage summaries so agent claims can be verified against execution.
In wayfinder, this server feeds the architecture-mapping step before semantic explanation or test verification begins.
Related MCP server: Weavatrix
Features
scan_repo(path)returns a typed repo scan with files, language breakdown, entry points, Python dependency graph, and detected frameworks.find_circular_deps(path)returns circular dependencies from the static dependency graph.language_breakdown(path)returns language counts by file count and bytes.detect_framework(path)detects FastAPI, Flask, Django, Express, and Spring using registry-based markers.find_entry_points(path)returns ranked entry point candidates such as Python mains, FastAPI apps, package start scripts, Dockerfiles, and Node indexes.repo-structure://{url_hash}returns a cached JSON scan result after a tool call has populated the cache.
Install
uv sync --extra devRun the server locally:
uv run mcp-repo-mapperDevelopment
uv run ruff check .
uv run mypy
uv run pytestResource Flow
Resource reads use a cache populated by tool calls:
Call
scan_repo(path)or another scan-backed tool.Compute the repo hash with the same path.
Read
repo-structure://{url_hash}.
The public resource uses repo-structure://... because URL schemes cannot contain underscores.
Scope And Limitations
Dependency graph support is currently Python-only and based on static
astparsing.Import graph resolution only records modules that exist inside the scanned repo.
Framework detection is heuristic marker matching, not a full build-system analysis.
The resource cache is in-memory and process-local.
The server scans local filesystem paths only.
License
MIT
Available Tools
6 toolsdetect_frameworkD
Inputs: path (required). Returns: result
find_circular_depsD
Inputs: path (required). Returns: result
find_entry_pointsD
Inputs: path (required). Returns: result
healthD
Inputs: no named parameters. Returns: result
language_breakdownD
Inputs: path (required). Returns: result
scan_repoD
Inputs: path (required). Returns: root, files, languages, frameworks, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
All tool names relate to repository analysis, but without descriptions, the overlap is unclear. Tools like scan_repo could encompass others, and health is generic, making it hard for an agent to distinguish precise purposes.
Most tools follow a verb_noun snake_case pattern (e.g., language_breakdown, detect_framework). The single exception is 'health', which is just a noun, causing a minor inconsistency.
Six tools is a reasonable count for a repository analysis server. It covers multiple analytical aspects without being overly numerous or too sparse.
The tool set covers common analysis tasks like language detection, entry points, circular dependencies, and health. However, it may miss basic repository information such as file listing or size, leaving potential gaps.
Maintenance
Related MCP Connectors
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Codebase structural query, delivered per API call as an atom service on Conduit Atoms.
Related MCP Servers
- FlicenseAqualityDmaintenanceAnalyzes any codebase to detect project type, languages, frameworks, entry points, API routes, controllers, services, components, tests, and more.5-
- AlicenseNot gradedqualityBmaintenanceProvides a dependency graph of any local repository with tools for change impact, transitive dependents, health audits, and more, enabling AI coding agents to see structure and refactor safely.4MIT
- AlicenseAqualityDmaintenanceAnalyzes a local codebase and exposes its structure, per-file summaries, dependency graph, and complexity hotspots as tools for MCP clients like Claude.4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to generate Mermaid architecture diagrams, inspect repository structure and module details, and assess changed-module blast radius versus a git ref for local codebases.MIT