Magic MCP Local
A local-first MCP server for generating production-ready React UI components entirely offline without requiring API keys or configuration. It provides tools to search, list, and create over 30 types of components including buttons, forms, and layout elements.
README
Magic MCP Local
A local-first MCP server for UI component generation. No API key required.
Features
- 30+ Pre-built Components - Production-ready React components with TypeScript
- Local-First - Works entirely offline, no external API calls
- Zero Configuration - No API keys, no authentication
- MCP Compatible - Works with Cursor, Windsurf, Cline, and other MCP clients
Installation
From npm (recommended)
npm install -g magic-mcp-local
Or use directly with npx
npx -y magic-mcp-local
Configuration
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"magic-mcp-local": {
"command": "npx",
"args": ["-y", "magic-mcp-local"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"magic-mcp-local": {
"command": "npx",
"args": ["-y", "magic-mcp-local"]
}
}
}
Cline
Add to ~/.cline/mcp_config.json:
{
"mcpServers": {
"magic-mcp-local": {
"command": "npx",
"args": ["-y", "magic-mcp-local"]
}
}
}
Claude Desktop
Add to ~/.claude/mcp_config.json:
{
"mcpServers": {
"magic-mcp-local": {
"command": "npx",
"args": ["-y", "magic-mcp-local"]
}
}
}
Available Tools
| Tool | Description |
|---|---|
create_ui_component |
Create a UI component by describing what you need |
search_components |
Search components by keyword or category |
get_component |
Get a specific component by ID |
list_categories |
List all component categories |
list_components |
List all available components |
Usage Examples
Create a Button
create_ui_component with description "primary action button with hover effects"
Search for Form Components
search_components with query "input field"
List Navigation Components
list_components with category "navigation"
Component Categories
- buttons - Button variants (primary, icon, etc.)
- forms - Input, textarea, select, checkbox, radio, switch
- layout - Card, navbar, hero, footer, sidebar
- navigation - Tabs, accordion, breadcrumb, pagination
- data-display - Badge, avatar, table, stat cards
- feedback - Alert, modal, progress, spinner, skeleton, tooltip
- overlays - Modal, dropdown, tooltip
Development
# Install dependencies
npm install
# Build
npm run build
# Run in development mode
npm run dev
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.