next-ui-mcp
Click on "Deploy 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-ui-mcpvalidate my now-ui.json and keep it in sync with the component code"
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-ui-mcp
An MCP server for helping AI coding agents build, evaluate, and validate ServiceNow Next Experience UI Framework components and projects more effectively.
Unofficial, community-maintained project. Not affiliated with, endorsed by, or supported by ServiceNow.
Why
Next Experience UI Framework components have two parts that must stay in sync: the component source (src/<name>/index.js) and the separate manifest (now-ui.json) that declares the component's public properties and dispatched events. AI agents (and humans) routinely edit one without updating the other. That is one important problem this server solves.
But the broader goal is to make AI-assisted development in this framework safer and more reliable across the full workflow:
understand the framework contract and
now-ui.jsonrulesgenerate a correct component scaffold from the start
prefer real platform components before inventing custom UI
choose between direct use, composition, and custom implementation with evidence
validate manifests and dependency setup
inspect live instance API metadata instead of guessing from stale package docs
follow the correct local project conventions for
example/element.js, runtime shims, andoptionalDependenciesreduce the common failure modes that cause AI-generated Next Experience UI Framework code to be structurally wrong or platform-incompatible
This MCP server is meant to act as a practical operating system for working with Next Experience UI Framework projects in AI-assisted development, with manifest sync as one critical piece of that larger workflow.
Related MCP server: Questionnaire Component Governance MCP Demo
Available MCP tools
Guidance and scaffolding
explain_now_ui_manifest— explains whatnow-ui.jsonis and how to keep it in sync with the component code.get_framework_guidance— returns bundled guidance for framework patterns, sample project structure,createCustomElement(...), manifest expectations, local development conventions, and instance-backed dependency usage.get_component_scaffold— returns the minimal stub files for a new component, includingcreateCustomElement(...),example/element.js, and a matchingnow-ui.jsonentry.
Platform component selection
evaluate_platform_component_fit— decides whether an instance-backed HDS component should be used directly, wrapped/composed, or replaced with a custom implementation before scaffolding from scratch.search_instance_components— discovers which platform components exist on the configured instance.recommend_instance_components— finds likely platform-component matches from a use case or desired properties/events.resolve_component_package— resolves a platform component tag to the exact npm package it belongs to without guessing.
Instance API and validation
get_component_api— reads the real API of a platform component from the user's own ServiceNow instance, so an agent works from actual props and events rather than stale or incomplete public package metadata.analyze_project_dependencies— checks whether a project declares platform packages asoptionalDependencieswith version"instance"when needed.validate_now_ui_manifest— validates anow-ui.jsonfile using the ServiceNow schema validation package and reports schema issues.
Install
Add to your MCP client config (for example, .mcp.json at your project root for Claude Code or .cursor/mcp.json for Cursor):
{
"mcpServers": {
"next-ui": {
"command": "npx",
"args": ["-y", "next-ui-mcp@latest"],
"env": {
"NEXT_UI_INSTANCE_URL": "https://your-instance.service-now.com",
"NEXT_UI_INSTANCE_USER": "your-user",
"NEXT_UI_INSTANCE_PASSWORD": "your-password"
}
}
}
}Ensure the file is added to your .gitignore since it contains credentials.
Development
npm install
npm run build # compile TypeScript -> dist/
npm run dev # run directly from src/ via tsx, for local iterationContributing
PRs adding improvements to the guidance and instance-backed component discovery flow, are the main way this stays useful and current as the framework evolves. This project is meant to be centrally maintained in one place rather than copied into every project.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Live React design-system APIs, patterns, and code validation so AI agents build real UI, not slop.
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Serves your design system and coding standards to coding agents, so they stop guessing.
Debug, build, and manage Power Automate cloud flows with AI agents
Related MCP Servers
- FlicenseAqualityNot gradedmaintenanceEnables AI agents to execute server-side JavaScript and perform CRUD operations directly on ServiceNow instances with context bloat reduction features for efficient token usage.31-
- FlicenseAqualityDmaintenanceEnables AI agents to query component governance rules, validate component props, and generate development prompts for questionnaire editors.4-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and development tools to interact with ServiceNow instances through a standardized interface, supporting comprehensive API coverage for incident, change, CMDB, and more.MIT
- AlicenseAqualityAmaintenanceEnables natural language interaction with ServiceNow Fluent SDK commands, API specifications, and development resources for AI-assisted environments.17239 npm31MIT