mcp-angular-cli
This server provides access to Angular CLI commands for managing Angular projects and workspaces via the Model Context Protocol (MCP). You can:
Generate Angular artifacts: Create components, services, etc. using
ng generateAdd packages: Add npm packages to the Angular workspace using
ng addCreate new workspaces: Create new Angular projects using
ng newRun custom architect targets: Execute custom build or other targets using
ng runUpdate Angular packages: Update Angular dependencies and run migrations using
ng update
This allows LLMs and agents to automate Angular CLI and workspace tasks through the MCP integration.
Provides Angular CLI and workspace automation capabilities, allowing for generating components/services, adding packages, creating new workspaces, and running custom architect targets within Angular projects.
Enables package management through Angular CLI commands like 'ng add' to add packages and 'ng update' to update Angular packages and dependencies in the workspace.
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-angular-cli generate a login component in my project at /home/user/angular-app"
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.
Angular CLI MCP Server 🅰️
A Model Context Protocol server that provides Angular CLI and workspace automation capabilities. This server enables LLMs and agents to interact with Angular projects, generate components/services, add packages, create new workspaces, and run custom architect targets via the Angular CLI.
Features
Run
ng generateto scaffold Angular artifacts (components, services, etc.)Run
ng addto add packages to your Angular workspaceRun
ng newto create new Angular workspacesRun
ng runto execute custom architect targetsRun
ng updateto update Angular packages and dependenciesAll via the Model Context Protocol (MCP) for agent/LLM integration
Related MCP server: Clockify MCP
Installation
You can install the package globally using npm:
npm install -g @talzach/mcp-angular-cliOr use it locally in your project:
npm install --save-dev @talzach/mcp-angular-cliUsage
You can run the server directly:
npx @talzach/mcp-angular-cliOr, if you want to use it as a custom MCP server in your agent or tool, configure it like this:
Example MCP Configuration
{
"mcpServers": {
"angular-cli": {
"command": "npx",
"args": ["-y", "@talzach/mcp-angular-cli"]
}
}
}Example Tool Usage
Generate a component:
{ "schematic": "component", "name": "my-component", "appRoot": "/absolute/path/to/your/angular/project" }Add a package:
{ "package": "@angular/material", "appRoot": "/absolute/path/to/your/angular/project" }Create a new workspace:
{ "name": "my-workspace", "directory": "/absolute/path/to/where/you/want/it" }Run a custom architect target:
{ "target": "app:build:production", "appRoot": "/absolute/path/to/your/angular/project" }
Star this repo if you find it useful!
Publishing to npm
To publish a new version of this package to npm, run:
npm run publish-npmThis will automatically build the project and publish it as a public package.
Develop
If you want to test or develop this server locally, you need to point your MCP server configuration to your local build output. After building the project (e.g., with npm run build), set your MCP server file (e.g., .mcp.json or similar) to use the local dist/index.js file:
{
"angular-cli": {
"command": "node",
"args": ["/path/to/your/mcp-angular-cli/dist/index.js"]
}
}Available Tools
5 toolsng_addC
Run 'ng add' to add a package to the Angular workspace
Inputs: package (required), appRoot (required), options.
ng_generateC
Run 'ng generate' to create a new Angular artifact (component, service, etc.)
Inputs: schematic (required), name (required), appRoot (required), path, +1 more.
ng_newC
Run 'ng new' to create a new Angular workspace
Inputs: name (required), directory, appRoot, options.
ng_runC
Run 'ng run' to execute a custom architect target
Inputs: target (required), appRoot (required), options.
ng_updateC
Run 'ng update' to update Angular packages and run migrations.
Inputs: packages (required), appRoot (required), next, force, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose corresponding to a specific Angular CLI command: ng_new creates workspaces, ng_add adds packages, ng_generate creates artifacts, ng_run executes targets, and ng_update updates packages. There is no overlap or ambiguity between these functions.
All tool names follow a consistent 'ng_' prefix pattern with a verb suffix (add, generate, new, run, update), using snake_case uniformly. This predictable naming makes it easy to identify and select the correct tool.
With 5 tools, the server is well-scoped for its purpose of exposing key Angular CLI commands. It covers essential operations, though it might be slightly thin if advanced CLI features are excluded, but it's reasonable for core workflows.
The tool set covers major Angular CLI operations: creating workspaces, adding packages, generating artifacts, running targets, and updating packages. Minor gaps may exist, such as missing build or serve commands, but core lifecycle tasks are well-represented.
Maintenance
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for Studex tools, notifications, and profile integrations
Model Context Protocol server for todo.vu task management and time tracking.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- -
- MIT
- -
- AlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that provides Angular project analysis and refactoring capabilities, enabling LLMs to analyze component usage patterns, dependency structures, and perform safe refactoring with breaking change detection.4MIT