next-design-overlay
Provides an interactive design overlay for Next.js applications that visually annotates UI elements, creates tasks, and compiles specs for AI agents.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@next-design-overlayShow me the latest annotated UI tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Next.js Design Overlay for AI Coding Agents 🎨
An interactive Next.js Design Overlay & MCP server that lets you visually annotate UI tasks and instantly sync them with AI coding agents like Cursor, Claude or Gemini.
A standalone mini-application and MCP (Model Context Protocol) server designed to bridge the gap between human designers/developers and AI coding agents. It provides an interactive UI inside your Next.js application to visually annotate, layout, and document design tasks, which are instantly synchronized with your AI agent.
Features
Visual Annotations: Draw bounding boxes, arrows, and drop pin markers directly over your local UI.
Grid Systems: Overlay customizable horizontal/vertical 8pt grid systems to verify alignment.
Component Inspector: Hover over any UI element to automatically capture its React component name, source file location (e.g.
src/components/Button.tsx:L42), computed CSS styles, and Tailwind classes.Task Management: Create structured tasks linked to visual areas. Tasks are stored in a
.design-spec/annotations.jsonfile and compiled to aUI_SPEC.mdfor agents to read.MCP Server: Exposes tools for AI agents to query active design tasks, fetch visual snapshots, and mark tasks as resolved.
Related MCP server: @designjs/mcp-server
🚀 Quickstart
Run the following command in the root of your Next.js App Router project:
npx next-design-overlay initTakes less than a minute! The installer will ask you a few questions and automatically copy the necessary components, API routes, and MCP scripts into your project. It will also install html-to-image as a dependency.
Prerequisites
Next.js 13+ (App Router)
Tailwind CSS (The UI is styled using standard Tailwind utility classes)
React 18+
Setup & Usage
1. Mount the Component
After installation, import and mount the <DesignOverlay /> component in your global layout file (e.g., src/app/layout.tsx):
import { DesignOverlay } from '@/components/design-overlay/DesignOverlay';
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<DesignOverlay />
</body>
</html>
);
}Note: The component will automatically hide itself in production environments (process.env.NODE_ENV !== 'development').
2. Connect the MCP Server
To allow your AI Coding Agent to read the visual tasks you create, add the MCP server to your agent's configuration.
For example, in Cursor, go to Cursor Settings > MCP and add a new stdio server:
Name:
Design OverlayCommand:
node scripts/design-overlay-mcp.js
3. Using the UI
Start your Next.js dev server (npm run dev). You will see a small palette icon (🎨) in the bottom-left corner of your screen.
Click the icon to activate Design Mode.
Inspect: Hover over elements to see their source code location and CSS.
Draw: Use the Bounding Box (🔲), Arrow (↘️), or Pin (📍) tools to highlight issues on the screen.
Create Task: Click the element or finish your drawing to open the Annotation Modal. Write instructions for your AI agent (e.g., "Fix alignment of this button").
Agent Handoff: The AI agent will automatically detect the new task via the MCP server or the generated
UI_SPEC.mdfile, locate the exact file/line number, see a screenshot of your annotation, and write the code to fix it!
Architecture
When you save a task:
The API Route (
app/api/design-overlay/route.ts) receives the payload.Screenshots (clean, marked-up, composite) are generated and saved to
.design-spec/snapshots/.The task metadata is written to
.design-spec/annotations.json.A human/agent-readable markdown file
UI_SPEC.mdis compiled at your project root.The MCP Server serves these files directly to the LLM context when requested.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceMCP server for visual feedback, video direction, and QA assertions on web pages, enabling AI agents to read, reply, and resolve annotations in real time.Last updated4MIT
- Alicense-qualityAmaintenanceMCP server that enables AI coding agents to read and write to a local-first HTML/CSS design canvas, bridging visual design and code generation.Last updatedMIT
- Alicense-qualityAmaintenanceMCP server for instruckt visual annotations. Enables AI agents to retrieve pending annotations, view screenshots, and resolve annotations.Last updated42MIT
- Flicense-qualityAmaintenanceMCP server that exposes web page annotations to AI coding agents, enabling automated implementation of visual feedback and design tweaks.Last updated16120
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
MCP server for Flux AI image generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LoveBitterMuffin/next-design-overlay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server