The shadcn-ui MCP Server is a TypeScript-based application that acts as a Model Context Protocol (MCP) server, providing AI assistants with structured and up-to-date reference information for shadcn/ui components. It scrapes and caches data directly from the official shadcn/ui documentation site and its GitHub repository, ensuring AI agents have access to accurate component descriptions, installation instructions, usage examples, props, variants, and code samples. This enables AI tools like Claude Desktop, Windsurf, Cursor, and others to generate more reliable and contextually appropriate UI code. The package is currently at version 0.1.2, suggesting an early but active development phase, with a focus on seamless integration with AI-powered development workflows to mitigate issues like outdated patterns or hallucinated properties commonly seen in AI-generated UIs without such specific context.
npm install shadcn-ui-mcp-serverNo compatibility data collected yet for this library.
Demonstrates how to run the shadcn/ui MCP server using npx and how to access its debugging tools.
Double-check the `command` and `args` in your AI client's MCP configuration against the documentation. Verify file paths and JSON syntax. Restart your AI client after making changes.
Utilize the provided `npm run inspector` command to launch the MCP Inspector tool, which offers a browser-based UI for detailed debugging and interaction with the server.
Report issues to the package maintainers. Ensure you have a GitHub Personal Access Token configured to mitigate GitHub API rate limits, which can affect data fetching and caching.
Provide a GitHub Personal Access Token (classic tokens work, but granular are recommended for security) as an environment variable (`GITHUB_PERSONAL_ACCESS_TOKEN`) or via a `--github-api-key` flag when running the server (e.g., `npx shadcn-ui-mcp-server --github-api-key ghp_YOUR_TOKEN_HERE`) to increase your API request allowance to 5000 requests/hour.
Verify the absolute path to the `index.js` file within your `shadcn-ui-mcp-server/build` directory. Ensure `npm run build` has been executed successfully.
First, restart your AI client (Claude Desktop, Cursor, etc.). Then, check your MCP server configuration for syntax errors and correct paths. Clear the npx cache (`npx clear-npx-cache`) and re-enable the MCP server in your client settings.
Carefully review your client's MCP configuration file. Ensure it is valid JSON and contains the `mcpServers` object with the correct structure as specified in the README.
No dependency data recorded yet.