
archmcp
by dejo1307·★ 30·Score 44
archmcp is an MCP server that generates compact architectural snapshots of repositories to provide AI agents with structured codebase overviews.
Overview
archmcp is a local MCP server that creates architectural snapshots of repositories before AI agents begin exploring code. It exposes pre-generated architectural summaries as MCP resources and provides tools for on-demand snapshot generation and querying. The server processes code through a pipeline that walks files, extracts facts based on language-specific parsers, stores them in a graph index, and renders them as LLM-friendly context. Currently supports Go, Kotlin, Python, TypeScript, Swift, Ruby, and OpenAPI specifications with language-specific awareness for frameworks like Next.js, Android, FastAPI, Rails, and more.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose archmcp when you work with multiple codebases across different languages and want your AI coding assistant to understand architectural relationships before exploring code.
When NOT to choose this
Don't choose archmcp if you only work with a single small project or need real-time code analysis as you type, as it's designed for upfront architectural analysis rather than continuous monitoring.
Tools this server exposes
12 tools extracted from the READMEgenerate_snapshotGenerate an architectural snapshot of a repository
query_factsQuery architectural facts with optional filters
analyze_architectureAnalyze architectural patterns and potential issues
get_insightsRetrieve architectural insights and recommendations
append_snapshotAppend another repository to the current architectural snapshot
get_dependenciesGet dependency information for a specific module or symbol
get_symbolsRetrieve all symbols (classes, functions, etc.) in the codebase
impact_analysisAnalyze the impact of changing a specific module or symbol
get_routesGet all API routes and their handlers
get_call_chainGet the call chain between two symbols
get_storageGet database/storage models and their relationships
get_layer_violationsCheck for architectural layer violations
Comparable tools
Installation
Prerequisites
- Go 1.22+
- C compiler (for tree-sitter CGo bindings)
Build
go build -o archmcp ./cmd/archmcpOr install globally:
go install ./cmd/archmcpConnect to your MCP client
Add to your MCP client configuration. For example, in Cursor's mcp.json:
{
"mcpServers": {
"archmcp": {
"command": "/path/to/archmcp",
"args": ["/path/to/mcp-arch.yaml"]
}
}
}Or if installed via go install:
{
"mcpServers": {
"archmcp": {
"command": "archmcp"
}
}
}FAQ
- What is archmcp?
- archmcp is an MCP server that generates architectural snapshots of repositories, providing AI agents with structured overviews of modules, symbols, dependencies, and patterns before they start exploring code.
- Does archmcp replace traditional code exploration tools?
- No, archmcp is designed to run before traditional tools. It provides upfront structural context that makes tools like grep, file search, and code reading more effective by helping the AI know where to look.
Compare archmcp with
Last updated · Auto-generated from public README + GitHub signals.