MCP Magic UI
Fetches component data from the Magic UI GitHub repository, using the GitHub API to access and cache component source code. Supports authentication via personal access tokens to avoid rate limits.
Provides access to Magic UI components from the magicuidesign/magicui repository, allowing discovery, categorization, and retrieval of component source code for use in applications.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Magic UIshow me all the button components"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Magic UI
An MCP (Model Context Protocol) server for accessing and exploring Magic UI components from the magicuidesign/magicui repository.
What is MCP Magic UI?
MCP Magic UI is a server that implements the Model Context Protocol (MCP) to provide access to Magic UI components. It fetches component data from the Magic UI GitHub repository, categorizes them, and makes them available through an MCP API. This allows AI assistants and other MCP clients to easily discover and use Magic UI components in their applications.
Related MCP server: Magic UI MCP Server
Features
Component Discovery: Access all Magic UI components through MCP tools
Component Categorization: Components are automatically categorized based on their names and dependencies
Caching System: Local caching of component data to reduce GitHub API calls and work offline
Multiple Transport Options: Support for both stdio and HTTP transport methods
Fallback Mechanism: Mock data is provided when GitHub API is unavailable
Installation
# Clone the repository
git clone https://github.com/idcdev/mcp-magic-ui.git
cd mcp-magic-ui
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
To avoid GitHub API rate limits, it's recommended to set up a GitHub personal access token:
Create a token at https://github.com/settings/tokens
Create a
.envfile in the project root (or copy from.env.example)Add your token to the
.envfile:
GITHUB_TOKEN=your_github_token_hereUsage
Starting the server
You can start the server using either stdio or HTTP transport:
# Using stdio transport (default)
npm start
# Using HTTP transport
TRANSPORT_TYPE=http npm startConnecting to the server
You can connect to the server using any MCP client. For example, using the MCP Inspector:
npx @modelcontextprotocol/inspector mcp-magic-uiOr, if using HTTP transport:
npx @modelcontextprotocol/inspector http://localhost:3000Available Tools
The server provides the following MCP tools:
get_all_components- Get a list of all available Magic UI components with their metadataget_component_by_path- Get the source code of a specific component by its file path
Project Structure
src/- Source codeindex.ts- Main entry point for the servercli.ts- Command-line interfaceserver.ts- MCP server configuration and tool definitionsservices/- Service modulesgithub.ts- GitHub API interaction and cachingcomponent-parser.ts- Component categorization and processing
cache/- Local cache for component datadist/- Compiled JavaScript code
How It Works
The server fetches component data from the Magic UI GitHub repository
Component data is cached locally to reduce API calls and enable offline usage
Components are categorized based on their names and dependencies
The server exposes MCP tools to access and search for components
Clients can connect to the server using stdio or HTTP transport
Contributing
Contributions are welcome! Here are some ways you can contribute:
Report bugs and suggest features by creating issues
Improve documentation
Submit pull requests with bug fixes or new features
License
MIT
Available Tools
2 toolsget_all_componentsD
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Tool has no description.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Tool has no description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Tool has no description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Tool has no description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Tool has no description.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Tool has no description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_component_by_pathD
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the component file |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Tool has no description.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Tool has no description.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Tool has no description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Tool has no description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Tool has no description.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Tool has no description.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two tools have clearly distinct purposes: one retrieves all components, while the other retrieves a specific component by path. There is no overlap or ambiguity between them, making it easy for an agent to choose the correct tool based on the need for bulk vs. targeted retrieval.
Both tools follow a consistent verb_noun pattern with 'get' as the verb, and they use snake_case uniformly. The naming is predictable and readable, with no deviations in style or convention across the tool set.
With only 2 tools, the server feels thin for a UI-related domain, as it lacks operations for creating, updating, or deleting components, which are typical in such contexts. This minimal set may not support comprehensive agent workflows effectively.
The tool surface is severely incomplete for a UI component domain, covering only retrieval operations. There are obvious gaps for CRUD/lifecycle management, such as create, update, or delete tools, which will likely cause agent failures when full component manipulation is needed.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The Figma MCP server brings Figma design context directly into your AI workflow.
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.3287ISC
- AlicenseAqualityCmaintenanceModelContextProtocol server for Magic UI that allows AI assistants to easily implement UI components for web applications by providing code for components like marquees, animations, special effects, and interactive backgrounds.112,241202MIT
- -licenseAqualityNot gradedmaintenanceA foundation for building interactive applications using the Model Context Protocol that integrates AI capabilities with Magic UI components.112,2411
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants access to Mesh Design System components and design tokens, enabling AI-powered development tools to natively understand and utilize these UI components.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/idcdev/mcp-magic-ui'
If you have feedback or need assistance with the MCP directory API, please join our Discord server