
How to Build an MCP Server for Browser Automation: From STDIO to Headless Chromium
A hands-on breakdown of building @amitnarw/web-mcp: protocol lifecycle, managing isolated browser tabs, bidirectional JSON-RPC, and securing agent execution.

About
Amit Narwal , Full-stack & AI Developer
I build fast, scalable web apps and AI-powered products for founders who need software that actually ships.
Apps shipped
AI products live
Clients worldwide
Skills
Connecting Next.js applications with autonomous AI models, dynamic tool calling, and production-grade architectures that ship.
Creating fast, pixel-perfect UIs with React and Next.js that look amazing, animate smoothly at 60 FPS, and rank high on search engines.
The engine under the hood: secure APIs, microservices, and PostgreSQL database schemas built with Node.js and Python to scale with you.
Tired of slow sites? I audit and tune every line of code, bundle, and query to hit perfect Core Web Vitals and 100/100 Lighthouse scores.
Building powerful Manifest V3 browser tools and background scrapers to automate complex workflows and add unique features to the web.






MERN Stack + AI Developer
Jan 2024 - Now
MERN Stack Developer
Jan 2023 - Jan 2024
App Developer (Drag & Drop platform)
Jan 2020 - Dec 2022

A hands-on breakdown of building @amitnarw/web-mcp: protocol lifecycle, managing isolated browser tabs, bidirectional JSON-RPC, and securing agent execution.

Why naive agent prompts yield messy CSS, and how structured token systems, AGENTS.md, visual verification loops, and deterministic component contracts produce production-ready UI.

Stop agent hallucinations on existing projects: context budgeting, AST indexing, architecture maps, and deterministic repository packing.