Arch-Master MCP
Generates production-ready module structures for Python FastAPI applications, supporting hexagonal, layers, and clean architecture patterns.
Generates production-ready module structures for NestJS applications, supporting hexagonal, layers, and clean architecture patterns.
Generates production-ready module structures for Java Spring applications, supporting hexagonal, layers, and clean architecture patterns.
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., "@Arch-Master MCPscaffold a NestJS hexagonal module for users"
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.
Arch-Master MCP
Multi-stack scaffolding engine exposed as a Model Context Protocol (MCP) server.
Generates production-ready module structures for NestJS, Java Spring, and Python FastAPI — directly from any MCP-compatible AI client.
Zero-token boilerplate. Designed for projects that are just getting started — instead of asking the AI to write every file (which burns thousands of tokens), the AI simply calls a tool and the entire module structure is generated locally on your machine in milliseconds.
What it does
Arch-Master MCP exposes two tools over stdio:
Tool | Description |
| Generates all architecture files for a named module in the chosen stack/pattern |
| Returns a markdown table of every supported stack and its available patterns |
No files are uploaded to the AI. All generation runs locally — only the file list is returned to the client.
Why this matters for new projects
When starting a project from scratch, the AI would normally write every file from scratch — entity, repository, service, controller, module, interfaces, mappers — burning thousands of output tokens per module. Arch-Master flips this: the AI decides what to generate, the MCP generates how.
Approach | Tokens per module (approx.) |
AI writes each file manually | ~2 000 – 5 000 tokens |
| ~50 – 100 tokens |
Related MCP server: trace-mcp
Supported stacks & patterns
Stack | Patterns | Base path |
|
|
|
|
|
|
|
|
|
Quick start
1. Install dependencies
pnpm install2. Build
pnpm build
# output → dist/3. Register in your MCP client (e.g. Claude Desktop)
{
"mcpServers": {
"arch-master": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/absolute/path/to/arch-master-mcp"
}
}
}Development
pnpm test # unit tests (Jest)
pnpm test:cov # coverage report
pnpm build # compile TypeScript → dist/Project structure
src/
├── index.ts # MCP server entry point (tool registration)
├── core/
│ ├── generator.ts # File creation engine
│ └── template-engine.ts # {{Variable}} template renderer
├── handlers/
│ └── scaffold.handler.ts # Tool request handlers
├── strategies/
│ ├── index.ts # Strategy registry (single source of truth)
│ ├── hexagonal/ # Hexagonal pattern templates per stack
│ ├── layers/ # Layered pattern templates per stack
│ └── clean/ # Clean architecture templates per stack
├── types/
│ └── mcp-types.ts # Shared TypeScript interfaces
└── utils/
└── file-system.ts # fs helpersExtending
New stack: add an entry in
src/strategies/index.tsand its pattern files undersrc/strategies/<pattern>/.New pattern for an existing stack: add a pattern file and wire it in
src/strategies/index.ts.The
src/index.tsentry point is generic — it never needs to change.
Technical stack
Runtime: Node.js 20+ / TypeScript (ESM,
NodeNextmodule resolution)MCP SDK:
@modelcontextprotocol/sdkValidation: Zod
Build: NestJS CLI →
dist/Package manager: pnpm
This server cannot be deployed
Maintenance
Related MCP Connectors
A full backend your AI coding agent can set up over MCP
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that exposes structured Functional Requirements Documents (FRDs) to enable AI assistants like GitHub Copilot to automatically generate complete NestJS boilerplate architectures. It orchestrates the multi-phase creation of production-ready APIs including core CRUD, database integration, JWT authentication, and unit testing.1MIT
- AlicenseAqualityAmaintenanceFramework-aware code intelligence MCP server that builds a cross-language dependency graph from source code. 53 integrations (Laravel, Django, Rails, Spring, NestJS, Next.js, and more) across 68 languages. 100+ tools for navigation, impact analysis, refactoring, security scanning, session memory, and CI/PR reports — up to 97% token reduction.297,155 npm198MIT
- AlicenseAqualityDmaintenanceA unified MCP server for scaffolding project structures across multiple frameworks including Spring Boot, React, Vue, Next.js, FastAPI, Django, Flask, Express, and more.24 npm1MIT
- AlicenseAqualityCmaintenanceGenerates production-ready MCP servers with dual-mode (MCP + CLI) architecture, tests, and documentation. Includes progressive disclosure tools for AI agents and best practices guidance.743 PyPIApache 2.0