MCP Hub
Back to servers

@ng-annotate/mcp-server

MCP server for ng-annotate-mcp — exposes Angular browser annotations as MCP tools for AI agents

Updated
Feb 28, 2026

Quick Install

npx -y @ng-annotate/mcp-server

ng-annotate-mcp

A dev-only Angular toolchain addon that lets you annotate components directly in the browser and have an AI agent (Claude) act on those annotations in real time.

Heavily inspired by agentation.dev — check it out for the original concept.

How it works

  1. Press Alt+Shift+A in the browser to enter inspect mode
  2. Click a component and type an annotation (instruction for the agent)
  3. The agent reads the annotation via MCP, edits the relevant files, and resolves it
  4. The browser updates automatically

Install

ng add @ng-annotate/angular

That's it. The schematic configures everything automatically:

  • Switches the Angular dev server to @ng-annotate/angular:dev-server (handles WebSocket + manifest injection, no separate config file needed)
  • Adds provideNgAnnotate() to app.config.ts
  • Creates .mcp.json for Claude Code (or .vscode/mcp.json for VS Code, or both)

Manual install

npm install @ng-annotate/angular --save-dev

angular.json — change the serve builder:

{
  "projects": {
    "your-app": {
      "architect": {
        "serve": {
          "builder": "@ng-annotate/angular:dev-server"
        }
      }
    }
  }
}

src/app/app.config.ts

import { ApplicationConfig } from '@angular/core';
import { provideNgAnnotate } from '@ng-annotate/angular';

export const appConfig: ApplicationConfig = {
  providers: [
    provideNgAnnotate(),
  ],
};

No template changes needed — the overlay is injected automatically.

.mcp.json (for Claude Code)

{
  "mcpServers": {
    "ng-annotate": {
      "command": "npx",
      "args": ["-y", "@ng-annotate/mcp-server"],
      "env": {
        "NG_ANNOTATE_PROJECT_ROOT": "/path/to/your/project"
      }
    }
  }
}

Usage

Once installed, the workflow is:

1. Start the dev server

ng serve

2. Start the agent polling loop

The MCP server exposes a start-polling prompt that injects the full work loop instructions into the conversation. In Claude Code, invoke it with:

/mcp ng-annotate start-polling

The agent will call get_all_pending, process any queued annotations, then enter a watch_annotations loop waiting for new ones. It runs until you end the conversation.

The start-polling prompt works with any MCP-compatible AI editor. The tool descriptions also encode the loop semantics, so a capable agent can infer the workflow from the tools alone.

3. Annotate in the browser

Open your Angular app in the browser, press Alt+Shift+A to enter inspect mode, click a component, type your instruction, and submit. The agent picks it up within seconds, edits the file, and the browser hot-reloads.


Keyboard shortcuts

ShortcutAction
Alt+Shift+AToggle inspect mode
Click componentOpen annotation panel
EscCancel / go back

Packages

PackagePurpose
@ng-annotate/angularAngular library — overlay UI, provideNgAnnotate(), and the custom dev-server builder
@ng-annotate/mcp-serverMCP server exposing tools to the AI agent
@ng-annotate/vite-pluginVite plugin for non-Angular-CLI projects (Vite + Vue, Svelte, etc.)

Dev

npm install        # install workspace deps
npm run build      # build all packages
npm run dev        # start demo at localhost:4200
npm test           # run all tests
npm run demo:reset # reset broken-card to its original state

Reviews

No reviews yet

Sign in to write a review