Learn how to use the Model Context Protocol with Angular Material Blocks
MCP is an open protocol enabling applications like IDEs to better understand project context when interacting with LLMs.
This integration allows your AI coding assistant to directly access all Angular Material Blocks, resulting in improved code generation accuracy for your project.
Automatically add to Cursor:
Or add the following to your editor's MCP JSON settings:
{
"mcpServers": {
"ngm-dev-blocks": {
"command": "npx",
"args": ["-y", "@ngm-dev/cli", "mcp", "full/path/to/angular/project"]
}
}
}
Finally, restart your IDE.
You can now ask your IDE to use any Angular Material Blocks. Here are some examples:
In case, editor does not generate the files, you can try the following:
The server provides the following tools callable via MCP:
setup-angular-material-blocksgenerate-angular-material-blockblockNames: A list of block names to generate.get-all-block-namesThe server provides access to block names:
blocknames:///all)Premium blocks require All Access & authentication.
After getting the access, you can get the token by clicking on "API Tokens" in the profile dropdown or by clicking here.
Finally, you can set the token by running:
npx @ngm-dev/cli auth
Once authenticated, restart your IDE.
Have suggestions for improving our MCP capabilities or ideas for new tools or features? We'd love to hear from you! Create an issue in our Angular-Material-Dev/community GitHub repository to share your feedback and help make these tools even better.
Angular Material Dev UI (or Angular Material Blocks) is one place stop for developers to explore components and blocks for their Angular Material and Tailwind CSS based applications.
Find us on X (Twitter), LinkedIn, Instagram & Threads