architecture-discovery-mcp
Enables scanning Java/Maven projects to generate TOGAF-standard architecture deliverables (Excel and PPTX) via natural language commands.
README
Architecture Discovery Engine
Auto-discover enterprise architecture artifacts from Java/Maven source code. Scan your project and generate TOGAF-standard application architecture deliverables in seconds.
What It Does
Point it at a Java/Maven project and get:
- AA-01 Application Module Inventory (Excel)
- AA-02 Function Item Inventory (Excel)
- AA-03 Sub-function Inventory (Excel)
- AA-04 Function Distribution (Excel)
- AA-05 Integration Inventory (Excel)
- AA-07 Application Architecture Diagram (PPTX)
- AA-08 Application Integration Diagram (PPTX)
All generated from static analysis — no runtime required, no code leaves your machine.
Install
pip install architecture-discovery-mcp
Requires Python 3.11+.
Usage
As an MCP Server (recommended)
The engine runs as an MCP server over stdio. Configure it in your AI IDE:
Claude Code (~/.claude.json):
{
"mcpServers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
VS Code (.vscode/settings.json):
{
"mcp": {
"servers": {
"architecture-discovery": {
"command": "architecture-discovery-mcp"
}
}
}
}
Then ask your AI assistant naturally:
"Scan D:/projects/my-java-app and generate the application architecture artifacts"
Available MCP Tools
| Tool | Description |
|---|---|
scan_project_tool |
Scan project structure, return modules/frameworks overview |
generate_app_architecture_tool |
Generate full AA artifact set (Excel + PPTX) |
export_intermediate_data |
Export structured analysis as JSON |
generate_data_architecture |
DA artifacts (coming soon) |
generate_tech_architecture |
TA artifacts (coming soon) |
All tools accept an optional locale parameter ("zh" or "en", default "zh").
As a Python Library
from pathlib import Path
from src.scanner.project_scanner import scan_project
from src.analyzers.module_analyzer import analyze_modules
from src.analyzers.api_analyzer import analyze_apis
from src.analyzers.integration_analyzer import analyze_integrations
from src.generators.app_architecture_generator import generate_app_architecture
from src.generators.aa07_generator import generate_aa07
from src.generators.aa08_generator import generate_aa08
project = scan_project(Path("your-java-project"))
project = analyze_modules(project)
endpoints = analyze_apis(project)
integrations = analyze_integrations(project)
out = Path("output")
generate_app_architecture(project, endpoints, integrations, out, locale="en")
generate_aa07(project, out, locale="en")
generate_aa08(project, integrations, out, locale="en")
Supported Projects
- Java/Maven projects (must have
pom.xml) - Spring Boot / Spring Cloud microservices
- Feign client integration detection
- Nested multi-module projects (e.g. RuoYi-Cloud style)
Internationalization
Artifacts can be generated in Chinese (locale="zh", default) or English (locale="en"). This controls:
- Excel column headers and sheet names
- Cell values (layer names, status labels)
- PPTX slide titles and diagram labels
- Font selection (Microsoft YaHei for Chinese, Calibri for English)
Security
- Runs locally via stdio — no network exposure
- Source code never leaves your machine
- Exported JSON contains only structural metadata (class names, API paths, annotations), not source code
Development
git clone <repo-url>
cd architecture-discovery-engine
pip install -e ".[dev]"
pytest tests/ -v
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.