The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Livewire Flux MCP listing page.
An MCP (Model Context Protocol) server that provides access to Livewire Flux Components and Layouts from Livewire Flux. This server allows AI assistants to fetch and search through Flux component and layout documentation on demand.
⚠️ Disclaimer
This is a personal project and is not affiliated with Livewire Flux.
This MCP server scrapes and provides structured access to the Livewire Flux documentation, enabling AI assistants to:
https://fluxui.dev/components/https://fluxui.dev/layouts/Boost already indexes Flux through its search-docs tool, and for a lot of questions that is
enough. Two things it does not do:
search-docs is a semantic search over a 17k-document corpus, so a broad Flux
question can come back as a several-thousand-token dump (laravel/boost#290).
This server fetches the one component page you asked for, plus its reference section.fluxui-development skill carries a hardcoded component
list and does not tell your agent which components need a paid Flux license. This server reads the
tier live and flags it, so your agent stops writing markup you cannot ship.If you are on Boost, npx livewire-flux-mcp install wires both together — see
AI Guidelines & Skills. The two are complementary: keep Boost for
Laravel, Livewire, Pest and the rest; let this server answer Flux.
The server runs over stdio and is launched with npx, so there is nothing to install
globally. Every agent stores that differently — pick yours below.
One-click install:
Or add it by hand to .cursor/mcp.json (this project) or ~/.cursor/mcp.json (every project):
Cursor has no cursor mcp add command — the deeplink and the config file are the two supported routes.
Everything after -- is passed to the server verbatim. --scope project writes .mcp.json
in the project root so the whole team gets it:
Use --scope local (the default) to keep it to yourself, or --scope user for every project.
A project-scoped server needs approving the first time you open the project. On Windows, wrap
the command: -- cmd /c npx -y livewire-flux-mcp.
This writes to ~/.codex/config.toml:
A project-level .codex/config.toml is only read once you have trusted the project.
Verify with codex mcp list.
Note there is no -- separator: the command and its arguments follow the server name
directly. This writes .gemini/settings.json (use --scope user for ~/.gemini/settings.json):
gemini mcp list reports the server as disconnected until the folder is trusted.
Create .vscode/mcp.json. Copilot uses servers, not mcpServers, and each entry declares its type:
Or run MCP: Add Server from the command palette (Cmd+Shift+P / Ctrl+Shift+P) and choose
the Workspace scope. The CLI equivalent writes to your user profile rather than the workspace:
Requires VS Code 1.102+ with GitHub Copilot Chat enabled.
Open Settings → Tools → Junie → MCP Settings and add the server, or edit
.junie/mcp/mcp.json in the project (~/.junie/mcp/mcp.json for every project) directly:
Junie registers MCP servers by editing JSON — there is no CLI command. Project-level servers are ignored in untrusted projects.
Registering the server tells your agent the tools exist. It does not tell it when to reach
for them — and in a Laravel Boost project it actively will not, because Boost ships a
fluxui-development skill that sends Flux lookups to its own search-docs tool and carries a
hardcoded component list. This package ships guidance that fixes that:
| File | What it is |
|---|---|
.ai/skills/fluxui-development/SKILL.md | On-demand skill: the Flux workflow, driven by this server's tools. Replaces Boost's bundled skill of the same name. |
.ai/guidelines/fluxui-{free,pro}/core.blade.php | Always-loaded guideline establishing that Flux questions are resolved through flux-docs. |
.claude/agents/flux-ui-builder.md | A Claude Code subagent that builds Flux interfaces and looks every component up before writing markup. |
The installer detects what applies: livewire/flux-pro in composer.json selects the fluxui-pro
guideline key, livewire/flux selects fluxui-free, and a .claude/ directory adds the subagent.
Restrict it with --boost or --claude, point it elsewhere with --path <dir>, or preview with
--dry-run. Afterwards run php artisan boost:update so Boost picks the files up.
On overwriting. The skill is a deliberate replacement — Boost resolves custom skills last and
keys them on the frontmatter name, so fluxui-development has to match for the override to
land. The guideline is never clobbered: an existing file at that path, or the guideline shipped
inside the Flux package itself, is preserved below our block, which is delimited by
{{-- livewire-flux-mcp:begin --}} markers so re-running only refreshes that section. Any file
the installer did not write is left alone unless you pass --force.
To undo, delete the installed files and run php artisan boost:update — Boost restores its own
versions.
Laravel Boost only auto-discovers guidelines and skills from Composer packages, so an npm package cannot register them automatically. This installer writes to the paths Boost documents for custom guidelines and skills, which is why it works and survives
boost:update.
Hey folks,
Do you like this package? Do you find it useful, and it fits well in your project?
I am glad to help you, and I would be so grateful if you considered supporting my work.
You can even choose 😃:
The server provides four MCP tools:
fetch_flux_docs - Fetches documentation for components or layouts
component (optional): Specific component name to fetch docs forlayout (optional): Specific layout name to fetch docs for (e.g., "header", "sidebar")version (optional): Flux major version to target — 'v1' or 'v2' (default 'v2')https://fluxui.dev/components/{component} or https://fluxui.dev/layouts/{layout} (v2); routes to https://v1.fluxui.dev/components/{component} when version='v1'[NOTICE] This is a Flux Pro component … line is prepended to the responselist_flux_components - Lists all available Flux components
version (optional): 'v1' or 'v2' (default 'v2')tier (optional): 'free', 'pro', or 'all' (default 'all'). On 'all', each component is annotated [Pro] or [Free]. On v1, the tier argument is ignored (v1 has no Pro tier).list_flux_layouts - Lists all available Flux layouts
version (optional): 'v1' or 'v2' (default 'v2'). On v1 the tool returns a brief "layouts are not available in v1" notice without making any HTTP request.fluxui.dev/layouts, falling back to the site-wide navigation on fluxui.dev/components when that index is unavailable — the individual /layouts/{name} pages are unaffected either waylist_flux_component_icons - Lists all available Heroicons for flux:icon component
variant (optional): Filter by icon variant (outline, solid, mini, micro)search (optional): Search term to filter icon namesOnce the MCP server is running, AI assistants can use it to:
The server automatically fetches the latest documentation from fluxui.dev/components, fluxui.dev/layouts, and Heroicons from GitHub, presenting everything in a structured format for easy consumption by AI assistants. When fetching component or layout documentation, it includes both the main content and the reference section with detailed API information.
Flux ships in two major versions, and the MCP server supports both:
fluxui.dev. Used when version is omitted or set to 'v2'. Supports components, layouts, and Pro-tier awareness.v1.fluxui.dev. Used when version='v1'. Components only — Flux v1 has no /layouts route and no Pro tier. list_flux_layouts returns a friendly notice on v1 without making any HTTP request; tier is ignored on list_flux_components for v1.The version argument is accepted on fetch_flux_docs, list_flux_components, and list_flux_layouts. list_flux_component_icons is version-independent (Heroicons are not part of Flux versioning).
A subset of Flux v2 components is only available with a paid Flux Pro license. The MCP server surfaces this in two ways:
fetch_flux_docs retrieves a component that is Pro, the response is prepended with a single [NOTICE] This is a Flux Pro component — requires a paid Flux license. line.list_flux_components accepts tier='free' to hide Pro components, tier='pro' to show only Pro ones, or tier='all' (default) to list everything with [Pro] / [Free] annotations next to each name.The list of Pro components is derived from fluxui.dev/pricing with a hardcoded fallback baked into the server, so tier filtering still works correctly if the pricing page is unreachable.
If your editor is not one of the six covered in Set Up Your Agents, register the server manually using the following details:
| Command | npx |
| Args | -y livewire-flux-mcp |
-y skips the install confirmation on first launch, which a stdio server cannot answer.
The MCP server includes intelligent caching to provide optimal performance:
The caching system is particularly beneficial for the list_flux_component_icons tool, which can make up to 4 GitHub API calls per request without caching.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.