home / mcp / angular toolkit mcp server
Provides Angular project analysis, dependency mapping, and safe refactoring assistance via a configurable MCP server.
Configuration
View docs{
"mcpServers": {
"push-based-angular-toolkit-mcp": {
"command": "npx",
"args": [
"@push-based/angular-toolkit-mcp@latest",
"--workspaceRoot=/absolute/path/to/your/angular/workspace",
"--ds.uiRoot=relative/path/to/ui/components",
"--ds.storybookDocsRoot=relative/path/to/storybook/docs",
"--ds.deprecatedCssClassesPath=relative/path/to/component-options.mjs"
]
}
}
}You can analyze Angular projects, identify deprecated patterns, map dependencies, and perform safe refactoring with this MCP server. It provides automated tooling to inspect components, validate imports, and generate contracts that help you implement breaking changes safely while improving code quality across your Angular workspace.
To use this MCP server, connect it to an MCP client (such as Claude Desktop, Cursor, Copilot, Windsurf, or other compatible clients) and start querying it for component analysis, dependency mapping, and refactoring guidance. You can request reports on deprecated CSS classes, fetch component data and documentation, and generate contracts to validate refactor changes before applying them.
Prerequisites: ensure you have Node.js version 18 or higher installed on your system.
{
"mcpServers": {
"angular-toolkit": {
"command": "npx",
"args": [
"@push-based/angular-toolkit-mcp@latest",
"--workspaceRoot=/absolute/path/to/your/angular/workspace",
"--ds.uiRoot=relative/path/to/ui/components",
"--ds.storybookDocsRoot=relative/path/to/storybook/docs",
"--ds.deprecatedCssClassesPath=relative/path/to/component-options.mjs"
]
}
}
}Prerequisites include Node.js version 18 or higher with ESM support. You can run the MCP server via npx to avoid manual builds.
For users, the recommended setup uses npx to run the MCP server directly from the registry with a workspace root and optional documentation and deprecated CSS mapping paths. The following configuration shows all of the options you may provide.
{
"mcpServers": {
"angular-toolkit": {
"command": "npx",
"args": [
"@push-based/angular-toolkit-mcp@latest",
"--workspaceRoot=/absolute/path/to/your/angular/workspace",
"--ds.uiRoot=relative/path/to/ui/components",
"--ds.storybookDocsRoot=relative/path/to/storybook/docs",
"--ds.deprecatedCssClassesPath=relative/path/to/component-options.mjs"
]
}
}
}If the server does not start, verify all paths are correct and that the server was built if necessary. Check file permissions to ensure the Node.js process can read the configured directories. If a component cannot be found, confirm that the component names in your mapping file match your actual component class names. For path resolution issues, use absolute paths for workspaceRoot and relative paths from the workspace root for other parameters.
The MCP server provides a range of tools to help you analyze Angular projects and manage refactoring safely. You can generate initial contracts before refactoring, perform changes, generate new contracts after the changes, and compare contracts to detect breaking changes.
This MCP server is designed to assist with migration planning, refactoring safety, access to component documentation and examples, and overall code quality improvements across your Angular project.
Optional documentation and CSS mapping parameters may be omitted. If omitted, their related tools will skip lookups or fail gracefully with clear prompts to provide the missing information when required.
If you contribute, follow the standard contribution guidelines for setting up a local development environment, building the MCP, and running the server for testing.
This project is licensed under the MIT License.
Reports deprecated CSS usage for a specific component in a directory and can output statistics to a file.
Reports all deprecated CSS usage across all components in a directory and can output statistics.
Creates balanced work distribution groups from violations reports while preserving directory boundaries.
Reports deprecated CSS classes found in styling files.
Lists deprecated CSS classes for a component.
Lists all available Design System components with their file paths and metadata.
Returns data for a component, including implementation files, documentation files, and import paths.
Maps where given Angular components are imported across modules, specs, templates, and styles.
Generates a static surface contract for a component's template and SCSS.
Compares before/after contracts to detect breaking changes.
Lists all available component contracts in the contracts directory.
Analyzes project dependencies and validates import paths for components, including buildability/publishability checks.
Lints changed Angular files using ESLint with automatic config resolution.