MCP server for Fluent UI v9 - comprehensive component generation and management
npm install mcp-fluent-uiA comprehensive MCP (Model Context Protocol) server for Fluent UI v9 that provides extensive component generation, theming, and utility tools for React applications.
First, install the MCP Fluent UI server globally:
``bash`
npm install -g mcp-fluent-ui
Add to Cursor settings (~/.cursor/config.json):
`json`
{
"mcpServers": {
"fluent-ui": {
"command": "npx",
"args": ["mcp-fluent-ui"]
}
}
}
Windows users: Use npx.cmd instead of npx:`json`
{
"mcpServers": {
"fluent-ui": {
"command": "npx.cmd",
"args": ["mcp-fluent-ui"]
}
}
}
Restart Cursor IDE after adding the configuration.
macOS: Add to ~/Library/Application Support/Claude/claude_desktop_config.json:`json`
{
"mcpServers": {
"fluent-ui": {
"command": "npx",
"args": ["mcp-fluent-ui"]
}
}
}
Windows: Add to %APPDATA%\Claude\claude_desktop_config.json:`json`
{
"mcpServers": {
"fluent-ui": {
"command": "npx.cmd",
"args": ["mcp-fluent-ui"]
}
}
}
Once installed, you can use natural language prompts to generate Fluent UI components and patterns:
``
"Generate a Fluent UI button with primary appearance and an icon"
"Create a form with email and password fields with validation"
"Build a data table with sorting and pagination"
"Create a responsive dashboard layout with metrics cards"
The server provides 50+ tools organized into categories:
#### Components
- fluent-button - Generate Button componentsfluent-input
- - Generate Input fields with validationfluent-card
- - Generate Card componentsfluent-select
- - Generate Select/Dropdown componentsfluent-checkbox
- - Generate Checkbox componentsfluent-radio
- - Generate RadioGroup componentsfluent-switch
- - Generate Switch componentsfluent-textarea
- - Generate Textarea componentsfluent-dialog
- - Generate Dialog/Modal componentsfluent-menu
- - Generate Menu componentsfluent-tabs
- - Generate Tabs componentsfluent-accordion
- - Generate Accordion componentsfluent-avatar
- - Generate Avatar componentsfluent-badge
- - Generate Badge componentsfluent-spinner
- - Generate Spinner componentsfluent-progress
- - Generate ProgressBar componentsfluent-tooltip
- - Generate Tooltip componentsfluent-toast
- - Generate Toast notificationsfluent-popover
- - Generate Popover componentsfluent-datepicker
- - Generate DatePicker componentsfluent-timepicker
- - Generate TimePicker componentsfluent-slider
- - Generate Slider componentsfluent-rating
- - Generate Rating components
#### Themes
- fluent-theme-provider - Set up theme providerfluent-dark-mode-toggle
- - Implement dark modefluent-custom-tokens
- - Create custom design tokensfluent-responsive-theme
- - Responsive theme configuration
#### Layouts
- fluent-grid-layout - Responsive grid layoutsfluent-flex-layout
- - Flexbox layoutsfluent-sidebar-layout
- - Sidebar navigationfluent-header-layout
- - Header/navbar layoutsfluent-dashboard-layout
- - Complete dashboard
#### Patterns
- fluent-form-pattern - Forms with validationfluent-data-table-pattern
- - Advanced data tablesfluent-modal-pattern
- - Modal/dialog patternsfluent-wizard-pattern
- - Multi-step wizards
#### Utilities
- fluent-hooks-custom - Custom React hooksfluent-accessibility
- - Accessibility utilitiesfluent-performance
- - Performance optimizationsfluent-animations
- - Animation utilitiesfluent-validation
- - Form validation
"Create a Fluent UI button that says 'Submit' with primary appearance"
`$3
`
"Generate a registration form with name, email, password fields and validation"
`$3
`
"Create a dashboard with sidebar navigation, metrics cards, and a data table"
`$3
`
"Set up Fluent UI with dark mode toggle and custom brand colors"
`$3
`
"Build a data table with sorting, filtering, pagination, and row selection"
`Project Setup in Your App
After generating components, install Fluent UI in your project:
`bash
npm install @fluentui/react-components @fluentui/react-icons
`Basic app setup:
`jsx
import { FluentProvider, webLightTheme } from '@fluentui/react-components';function App() {
return (
{/ Your generated components /}
);
}
`Development
To contribute or modify the server locally:
1. Install from NPM:
npm install mcp-fluent-ui
2. For local development: npm link mcp-fluent-ui`- NPM Package: mcp-fluent-ui
- Version: 1.0.0
- License: MIT
For issues, questions, or feature requests:
- NPM Package: mcp-fluent-ui
- GitHub Issues: Report issues here
- Repository: GitHub