About webcomponents-react-mcp-server
An MCP server that gives AI assistants access to API documentation, guides and utilities for UI5 Web Components for React. It targets developers building React apps with the library and can be pinned to a matching release so answers reflect the installed version.
Key features
- 01Component API docs with prop types and events
- 02Component listing filtered by category or package
- 03App scaffolding from Vite and Next.js templates
- 04Documentation browsing and keyword search
- 05Public utilities such as useI18nBundle and useViewportRange
Use cases
- 01Looking up props and event details for AnalyticalTable
- 02Creating a new Vite or Next.js app from an official template
- 03Checking styling or i18n guidance for the installed library version
MCP support
This is an MCP server that exposes component documentation, API data and scaffolding as tools, plus an llms.txt resource, to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @ui5/webcomponents-react-mcpLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
5Saved tool list · updated 1d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| appName | string | Yes | Name for the new application directory |
| template | enum | Yes | Template to use. Available: nextjs-app, nextjs-pages, vite-tsnextjs-app | nextjs-pages | vite-ts |
Details
From the project READMEUI5 Web Components for React MCP Server
MCP server providing development assistance and API documentation for UI5 Web Components for React.
What is this?
This MCP server gives AI assistants direct access to UI5 Web Components for React documentation, component APIs, and utility information. It helps developers get accurate, up-to-date information about the library without leaving their IDE.
Setup
This server is available in the MCP Registry, which allows compatible clients to install it directly.
Claude Code
claude mcp add ui5-wcr -- npx @ui5/webcomponents-react-mcp@latest
VS Code / Cursor
Add to .vscode/mcp.json:
{
"servers": {
"ui5-wcr": {
"command": "npx",
"args": ["@ui5/webcomponents-react-mcp@latest"]
}
}
}
Pinning a Specific Version
The MCP server is available since @ui5/[email protected]. It shares the same version number and bundles documentation and API data for that specific release. Pinning the version to match your project ensures the AI assistant provides accurate information for the components and APIs you are actually using.
Append @<version> to install a specific version. Note that after updating @ui5/webcomponents-react, you need to update the pinned MCP server version accordingly.
npx @ui5/[email protected]
To match the version of @ui5/webcomponents-react installed in your project, run from the project root:
This requires @ui5/webcomponents-react to be installed in the project's node_modules.
npx @ui5/webcomponents-react-mcp@$(node -p "require('@ui5/webcomponents-react/package.json').version")
Transport
The server supports two transports. Both run locally on the developer's machine.
stdio (default)
Used by the Setup configurations above. The client spawns the server as a subprocess and communicates over stdin/stdout. No flags are required.
HTTP (Streamable HTTP)
Some MCP clients connect over HTTP instead. Start the server with the --http flag to enable the Streamable HTTP transport:
npx @ui5/webcomponents-react-mcp@latest --http
The server listens on http://localhost:7427/mcp. Change the port with --port (or the PORT environment variable):
npx @ui5/webcomponents-react-mcp@latest --http --port 7500
It runs statelessly and binds to localhost only — reachable over a local HTTP port, but otherwise the same local-only, version-pinned server as the stdio mode. Point your HTTP-based client at the endpoint:
{
"servers": {
"ui5-wcr": {
"url": "http://localhost:7427/mcp"
}
}
}
Features
Tools
-
create_app- Scaffold a new application from an official template- Vite (TypeScript), Next.js App Router, Next.js Pages Router
- Returns step-by-step setup instructions using
degit
-
list_components- Browse all available components- Filter by category (Data Display, Layouts & Floorplans, Inputs, Modals & Popovers, User Feedback, Charts, AI Components, Web Components)
- Filter by package (
@ui5/webcomponents-react,@ui5/webcomponents-react-charts,@ui5/webcomponents-ai-react) - Includes descriptions and import examples
-
get_component_api- Full component API documentation- Props with TypeScript types, descriptions, and defaults
- Event detail parameters (fields available on
e.detail) - Ref methods and return types
- CSS
::part()selectors for shadow DOM styling - Sub-type documentation for complex props (e.g. AnalyticalTable column definitions)
- Upstream documentation links for components with complex behavioral logic
- Case-insensitive component name matching
- Returns structured JSON output
-
get_documentation- Documentation, guides, and knowledge base- Browse by section name or search by keyword across all docs
- Getting Started, Knowledge Base (styling, i18n, SSR, slots, FAQ, accessibility, and more), project templates
- Full content read from bundled local files (no network required)
- Line-range support (
startLine/endLine) for large documents
-
get_public_utils- Public utilities from@ui5/webcomponents-react-base- Device API (device detection, responsive breakpoints, resize/orientation handlers)
- useI18nBundle hook (internationalization)
- useViewportRange hook (responsive breakpoint detection)
- ThemingParameters (CSS variables in JavaScript)
Resources
llms.txt- LLM-friendly documentation index with scope, key concepts, and quick-reference links
Usage
Once configured, your AI assistant will have access to the tools. You can ask questions like:
Create:
- "Create a new Vite app with UI5 Web Components for React"
- "Scaffold a Next.js app with a simple dashboard"
Documentation:
- "How do I style components?"
- "How do slots work?"
Components:
- "List all available components"
- "Show me chart components"
- "What layout components are available?"
- "Show me the API for AnalyticalTable"
- "How do I use the DynamicPage component?"
Contributing
See CONTRIBUTING.md for development setup, scripts, architecture, and build pipeline details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.