shadcn-svelte
Mastra MCP server and tooling for the shadcn-svelte component docs and developer utilities.
claude mcp add --transport stdio michael-obele-shadcn-svelte-mcp node dist/server.js \ --env PORT="3000" \ --env LOG_LEVEL="info" \ --env MCP_BASE_PATH="optional-base-path"
How to use
The shadcn-svelte MCP server provides real-time access to the shadcn-svelte component documentation and related developer utilities by scraping the official sites and exposing the results through MCP transports. It includes a suite of tools designed to help editors and IDEs discover components, properties, and usage examples as you work. Typical workflows include querying for component API references, searching for icons via the Lucide Svelte integration, and retrieving AI-optimized documentation from the Bits UI API docs. Developers can connect to the server using the SSE transport for long-lived editor connections or the HTTP transport for quick one-off calls, enabling seamless integration into code editors and automation scripts.
How to install
Prerequisites:
- Node.js (LTS) and npm installed on your machine
- Access to the repository (git)
- Clone the repository:
git clone https://github.com/Michael-Obele/shadcn-svelte-mcp.git
cd shadcn-svelte-mcp
- Install dependencies:
npm install
- Build the MCP server (if the project uses a build step):
npm run build
- Run the MCP server:
npm run start
- Verify the server is running by hitting the configured port (default 3000):
curl http://localhost:3000/health
Notes:
- If the project uses a different start script, use the corresponding npm script (e.g., npm run dev).
- Adjust environment variables as needed for your environment (see mcp_config example).
Additional notes
Tips and common considerations:
- Use Mastra Cloud endpoints for stable, zero-setup deployments: SSE (for persistent connections) or HTTP (for quick calls).
- Configure environment variables like PORT, MCP_BASE_PATH, and LOG_LEVEL to tailor behavior to your environment.
- When integrating with editors, prefer the provided examples for Cursor/Windsurf/Zed to ensure compatibility with their mcp_config.json formats.
- If you encounter transport errors, verify network access to the endpoint and ensure the MCP server process has the required permissions to bind to the chosen port.
- For icon and Bits UI related tooling, ensure any required API keys or access permissions are configured if the tooling relies on authenticated endpoints.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
svelte5
A specialized Model Context Protocol (MCP) server for Svelte 5 frontend development
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.