ngx-mcp
Generates a separate instrumented copy of an Angular app and exposes its forms, fields, and actions as MCP tools, allowing agents to list and describe controls, read model data, fill fields, submit forms, and activate buttons while using the app's existing validators, event handlers, and API calls.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ngx-mcp
Let AI agents use your Angular app's real forms and buttons.
ngx-mcp uses your app's installed Angular compiler to connect tools to live controls. Filling a field or submitting a form runs the app's existing validators, event handlers and API calls. You keep your Angular compiler and normal build process.
The generator writes a separate copy. Your original app stays unchanged.
Experimental alpha —
0.1.0-alpha.3. Start with synthetic data on a local or staging app. Production access controls require your application's backend integration; see Production setup. Passing the test suite does not establish arbitrary-app compatibility or certify a deployment's security.
Pick how agents connect
Generate mode | Connection | What you run |
| An MCP client talks to a Node adapter, which drives a browser running your app | Generated Angular app + |
| A compatible browser agent calls tools registered inside the page | Generated Angular app; browser-native WebMCP support is required |
| Both connections use the same runtime and production policy | Generated app + a Node adapter when using the MCP connection |
WebMCP is experimental. Publishing a website does not automatically let ChatGPT or Claude connect to it. Those products need a supported connection path; browser API tests do not establish product interoperability.
Related MCP server: websense
Try it locally
You need Node.js 22 (22.22.3+), 24 (24.15.0+), or 26+, and an Angular CLI app that already builds with its dependencies installed. See package.json for exact Node ranges. The generator uses the app's own Angular/TypeScript versions. Compatibility depends on the app and controls; the evaluation guides record the measured scope.
1. Install in your Angular app
cd my-app
npm install -D ngx-mcp@alphaThe alpha channel targets experimental releases. To pin this release exactly, use ngx-mcp@0.1.0-alpha.3 instead.
For the Node MCP adapter (mcp or both), also install its browser:
npx playwright install chromium2. Generate a copy
From your Angular app's folder:
npx ngx-mcp generate \
--project tsconfig.app.json \
--out ../my-app-mcp \
--mode mcp--out must be a new folder outside your app. In a multi-app workspace, add --target <angular-project-name>. Use --mode webmcp or --mode both to choose the other paths.
3. Run that copy
cd ../my-app-mcp
npx ng serve --port 42004. Connect an MCP client
For mcp or both, add this to your client's MCP configuration:
{
"mcpServers": {
"my-angular-app": {
"command": "node",
"args": [
"/full/path/to/my-app/node_modules/ngx-mcp/dist/ngx-mcp.js",
"serve",
"--base-url", "http://localhost:4200",
"--headed"
]
}
}
}Use the absolute path to the package installed in your original app. Restart the client. A Chromium window opens; log into the app there if necessary. Ask the agent to list the available forms, then try a workflow using synthetic data. For webmcp, use a browser agent that supports the native API instead of this Node configuration.
The default development profile allows local experimentation without production approval controls. Its actions use the logged-in app session and can change real data. Choose the production profile before offering agent access to other people.
What gets deployed?
flowchart TD
S[Your Angular app] --> G[ngx-mcp generate]
G --> C[Generated copy + browser runtime]
C --> B[ng build: dist/]
B --> P[Deployed app in a browser]
M[MCP client] --> N[Node adapter]
N --> P
W[WebMCP browser agent] --> P
P --> A[Your existing API]The generated runtime becomes part of the app's normal browser bundle. The Node service is a separate process; it is not hidden inside dist. Hosting dist enables the selected browser runtime, but does not create a publicly reachable MCP endpoint.
Production setup
The production profile requires a reviewed, exact-build policy and an owner-written connectNgxMcpAccess() module. It defaults to denying tool/data access, revalidates the app session, scopes reads and writes, requires trusted approval for mutations, and sends redacted events to your audit sink. The backend must implement session validation, permission checks, approval and audit storage.
Follow PRODUCTION.md for the review/generate/deploy workflow, a browser bootstrap contract, remote serve configuration and authenticated HTTP hosting. Existing apps deploy a new generated build through their normal pipeline. They do not replace Angular's compiler or expose the old production build retroactively.
Tools
Tool | Purpose |
| List available forms, fields and actions |
| Describe a selected node; production values need separate read permission |
| Read the permitted Angular model projection |
| Fill fields, submit forms and activate controls |
| Drag exact live pointer handles to an exact destination; production requires permission for both endpoints |
| A typed tool for each available form |
| Node adapter page view; production returns permitted metadata only |
| Node adapter keyboard and upload operations |
| Node adapter navigation in development; disabled in production |
For a large page, start discovery with {kind: "form", visible: true, includeFields: false} and describe the selected form to read its fields. Typed form tools are published only when their fields and one visible submit path are supported; use exact generic controls for multi-button forms. Discovery returns at most 100 nodes by default; follow nextOffset for more, and restart after a UI change. Descriptors identify the source of each label in labelSource; single-control-context marks nearby text from an unambiguous field container, rather than an explicit HTML label association.
Only allowed tools and nodes are exposed in production. A successful UI dispatch does not prove that a backend transaction completed; inspect the app's actual result. Browser-native publication covers the shared form and control tools.
Editing:
angular_fillaccepts plain text forcontenteditable. Useangular_activatewithevent: "select-all"on an editor before applying one of its original formatting commands. Runtime discovery observes Angular's public event registrations, so library controls without button roles can advertise their registered events, such asmousedown. Choose an event from the descriptor; no component method is called directly.Uploads: pass
{files: [{name, mimeType, base64}]}toangular_fill. The limit is 512 KiB of decoded data, with up to 16 files when the input allows multiple files. File contents are excluded from discovery and model reads. A hidden input needs a visible associated label or an exact file-picker request observed during an activated UI action; that offer lasts 30 seconds and is consumed on upload.Keyboard:
angular_activatewithevent: "keyboard", key: "Enter"dispatches key handlers and native Enter/Space activation on exact focusable controls. It does not provide browser shortcuts, text typing or Tab traversal. Inputs and editors also acceptevent: "keydown", key: "Escape"for dialog dismissal.Navigation and frames: full page navigation can interrupt an in-page tool response. Observe the destination and rediscover tools there. Same-origin iframe controls use their own documents; cross-origin frames stay outside the registry. Production permissions for a frame host do not grant access to its child controls.
The adapter stabilizes the app's injected Angular zone, then dispatches UI events outside it so original listeners retain their normal change detection and browser default-action timing. Browser restrictions, delegated nonsemantic controls, and custom widgets can still require an adapter.
Commands
Run npx ngx-mcp <command> --help from the app or server folder where you installed the package. For example:
npx ngx-mcp serve --base-url http://localhost:4200 --headedCommand/option | Meaning |
| Read the app with its own compiler and stage a new copy |
| Output outside the original workspace |
| Choose connections; defaults to |
| Choose access controls; defaults to |
| Required for production; exact policy/build binding and trusted backend hooks |
| Select an Angular project in a multi-app workspace |
| Build the copy using the app's Angular CLI |
| Skip additional runtime UI-library discovery |
| Connect an MCP client to a running generated app |
| Use operator-provided Playwright session state; treat the file as a credential |
| Explicitly permit a remote production app |
| Permit a remote app's required API/identity/resource origin; repeat as needed |
| Start authenticated HTTP MCP with server-owned identity/session/audit configuration |
Troubleshooting and limits
Problem | Next step |
Compiler/dependency error | Install the app's dependencies and confirm its original production build works. |
Output already exists | Choose a new output folder. |
No registry found | Serve the generated copy and check that its browser entry imports the runtime. |
No native WebMCP tools | Check browser/agent support and selected generation mode. |
Production catalog is empty | Check owner bootstrap, live session, origin/route policy and exact source IDs. |
Production generation rejects | Regenerate the review manifest with the same bootstrap, review changed IDs/behaviour, then update the policy. |
A workflow dispatches but does not complete | Check native validation and the backend's result; tool acknowledgement alone is insufficient. |
Custom widgets and app-specific business semantics can need explicit integration. Generated form schemas describe observable UI input, not every backend rule. Browser tool controls supplement existing backend authorization and do not isolate an app from malicious scripts already running in its page.
Contributing and release evidence
To work on ngx-mcp itself, use the source checkout:
git clone https://github.com/JOELJOSEPHCHALAKUDY/ngx-mcp.git
cd ngx-mcp
npm ci
npx playwright install chromium
npm run build
npm run test:setup
npm run verifySee RELEASING.md for native-browser and fresh-project release gates. Production evaluation records pinned public projects and reproducible checks. Earlier reports remain historical evidence for their recorded source snapshots. The older prototype lives under experiments/source-inference and is excluded from the package.
MIT. See THIRD_PARTY_NOTICES.md for public sample attribution.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Related MCP Connectors
Turn any webpage into a structured action manifest — clickable, fillable, submittable elements.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Browser agents and stealth cloud browsers for AI: run web tasks, fill forms, extract data.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables agents to query precompiled, versioned Angular Formly contracts to generate deterministic typed end-to-end test intents without evaluating arbitrary application code.MIT
- AlicenseCqualityBmaintenanceEnables AI agents to automate real Chrome via a structured Semantic Action Graph, without screenshots, CDP, or bot detection. It supports clicks, form filling, navigation, and state diffs on strict-CSP sites and modern SPAs.75MIT
- FlicenseAqualityCmaintenanceEnables AI agents to automatically inspect and fill web application forms on job application sites through a logged-in Chrome, supporting text, select, radio, date, cascading dropdowns, and dynamic row operations.4-
- AlicenseAqualityCmaintenanceEnables AI coding agents to test web forms end-to-end by inspecting field schemas, generating realistic test data, and filling, uploading files to, and submitting forms in a real Playwright-driven browser. Runs are host-restricted and headed by default, with payloads and screenshots saved for review.3MIT