Basic information
About Layro MCP Server
Layro connects your AI coding tool (Cursor, Claude Code, VS Code, Windsurf, Codex, Gemini CLI) to 112 production React, TypeScript and Tailwind CSS components. Your agent can search the library, read each component's pro
Layro is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by Uvxxsh. It exposes 2 tools, including Components:, Installation:. Supported transport: Streamable HTTP. License: MIT. Source code is hosted on github.com. Related topics: components, cursor, design-system, frontend, mcp.
Setup
claude mcp add layro --transport http https://layropro.com/api/mcp
[mcp_servers.layro] url = "https://layropro.com/api/mcp"
{
"mcpServers": {
"layro": {
"url": "https://layropro.com/api/mcp"
}
}
}
{
"servers": {
"layro": {
"type": "http",
"url": "https://layropro.com/api/mcp"
}
}
}
Layro MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"layro": {
"type": "http",
"url": "https://layropro.com/api/mcp"
}
}
}
Layro MCP Server tools
- Components: — `search_components` (plain-words query, optional category, up to 20 results), `get_component`, `get_component_code` (needs a free token for free components, lifetime access for Pro) and `list_categories`.
- Installation: — `get_installation` takes up to 10 slugs, a package manager (`npm`, `pnpm`, `yarn` or `bun`) and the packages you already have.
Overview
What is Layro?
Layro MCP Server is a remote MCP server for the Layro library of 112 production React UI components, written in TypeScript and styled with Tailwind CSS. Your AI coding tool can search the library, read a component's props and usage, and install the tested component instead of writing its own.
Layro MCP does not run an AI model. It gives your tool accurate facts about Layro components, and your tool does the building. It works with Claude Code, Cursor, VS Code, Codex, Windsurf, Gemini CLI, Antigravity, the Claude app and other MCP clients. 62 components are free with a free Layro account; Pro components need lifetime access.
How to use Layro?
The server address is https://layropro.com/api/mcp (Streamable HTTP). Search and component details work with no account. To get component code, add your CLI token from https://layropro.com/account as a header: Authorization: Bearer <token>, or X-API-Key: <token> in clients that reserve Authorization. It is the same token as LAYRO_KEY for the shadcn CLI, so keep it out of files you commit.
Claude Code
claude mcp add --transport http layro https://layropro.com/api/mcp \
--header "Authorization: Bearer $LAYRO_KEY"
Leave out the header line if you only want search and details. Then run /mcp inside Claude Code to check that layro shows as connected.
Claude Desktop and claude.ai
Add a custom connector with the URL https://layropro.com/api/mcp. Layro notes that a client that cannot send headers can still use the free components.
Cursor and VS Code
Add a url entry to ~/.cursor/mcp.json (or .cursor/mcp.json in a project), or to your VS Code MCP config:
{
"mcpServers": {
"layro": {
"url": "https://layropro.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_LAYRO_TOKEN" }
}
}
}
With the shadcn MCP server
Layro is also a shadcn registry. Add it to components.json:
{
"registries": {
"@layro": {
"url": "https://layropro.com/r/{name}",
"headers": { "Authorization": "Bearer ${LAYRO_KEY}" }
}
}
}
Put LAYRO_KEY=<your Layro token> in .env.local, then run npx shadcn@latest mcp init --client claude (swap claude for cursor, vscode, codex or opencode). Layro recommends its own MCP server where you can, since it adds search by purpose, props, usage examples, access checks and templates.
Key features of Layro
- 112 React + TypeScript + Tailwind CSS v4 components with light and dark modes built in; new components are available the day they ship.
- Search by what a component does, without knowing its exact name.
- Full component facts: props, variants, npm dependencies, installed files, a usage example, accessibility and responsive behaviour.
- Installation help that returns the shadcn CLI command and only the packages your project is missing.
- Complete source with every imported file, for clients that cannot run the shadcn CLI.
- Templates search with live previews and licence info.
- Access is checked server-side on every request; a leaked token can be regenerated and the old one stops working at once.
Layro tools
The server lists eight read-only tools. The intended flow is search_components → get_component → get_installation, or get_component_code when the shadcn CLI can't be run.
- Components:
search_components(plain-words query, optional category, up to 20 results),get_component,get_component_code(needs a free token for free components, lifetime access for Pro) andlist_categories. - Installation:
get_installationtakes up to 10 slugs, a package manager (npm,pnpm,yarnorbun) and the packages you already have. - Templates and access:
search_templates,get_template(never returns template files) andcheck_access, which explains whether you can take a component or template and why.
Use cases of Layro
- "Find me a SaaS pricing or plan picker from Layro."
- "Build a dashboard using Layro components."
- "Show me the installation instructions for Layro's data table."
- "Which Layro components can I use for an analytics dashboard?"
- "Use Layro components to create a dark SaaS dashboard."
Troubleshooting Layro MCP Server
- "No source code was returned" for a Pro component: the connection has no token, or the account lacks lifetime access. Add the header with your CLI token.
- "The credential sent with this connection was not accepted": the token was mistyped or regenerated. Copy it again from your account page.
- "Free with a Layro account": free components still need a free account's token on the connection.
- Tools don't appear: check that the URL ends in
/api/mcpand your client supports remote HTTP servers, then restart the client. - Imports fail after saving a file: keep files at the paths the tool gives (
components/ui/…) and importstyles/layro.cssafter Tailwind in your global CSS.
Frequently asked questions
1 Is Layro MCP free?
Search and component details work without an account. 62 components are free with a free Layro account's token; the rest need Pro lifetime access, shown at a launch price of $149 as one payment.
2 Do I need to install anything locally?
No. Layro MCP is a hosted remote server at https://layropro.com/api/mcp. Components themselves are installed into your project with the shadcn CLI or saved from get_component_code.
3 Which AI coding tools does it support?
Any MCP client that supports remote HTTP servers. Layro documents Claude Code, Cursor, VS Code, Codex, Windsurf, Gemini CLI, Antigravity and the Claude app.
4 What stack do the components use?
React with TypeScript and Tailwind CSS v4, with light and dark themes built in. They import each other through the @ alias.
5 Can I use it through the shadcn MCP server instead?
Yes. Add the @layro registry to components.json and set up the shadcn MCP server. You lose Layro-specific search, access checks and templates.
6 Is it listed in the official MCP Registry?
Yes. Layro says it is listed on the official MCP Registry, GitHub, Cursor Directory and mcp.so.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In