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.
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
Installation
You can install the package globally using npm:
Or use it locally in your project:
Usage
You can run the server directly:
Or, if you want to use it as a custom MCP server in your agent or tool, configure it like this:
Example MCP Configuration
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:
This 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:
local-only server
The server can only run on the client's local machine because it depends on local resources.
mcp-angular-cli
Related Resources
Related MCP Servers
- MIT License
- MIT License