MCP server

shadcn MCP Server: shadcn/ui Components and Blocks for AI Agents

A third party MCP server that lets an AI coding agent fetch shadcn/ui component source and blocks such as dashboard-01 straight from the official repository.

Run
npx @magnusrodseth/shadcn-mcp-server
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the shadcn MCP Server?

The shadcn MCP Server by magnusrodseth gives an AI coding agent four tools for reading shadcn/ui. It lists components and blocks and returns source code and metadata for any one, pulled from the official shadcn/ui repository through the GitHub API instead of stale training data.

This server connects an AI coding agent to the shadcn/ui component library. Instead of recalling components from training data, the agent asks the server, which fetches current implementations from the official shadcn/ui repository and returns source code, dependencies and usage examples.

It runs on your machine. Cursor starts it with an npx command, requests travel as JSON-RPC, and each answer comes from a GitHub API call. A caching layer reduces repeat calls, and failures come back as readable messages.

What changes in your agent's output

  • Button, dashboard and other component code matches the current repository instead of an older snapshot from training data.
  • The README describes answers that include variants such as destructive, outline and ghost, size options, imports and accessibility features.
  • A whole block like dashboard-01 can be pulled as one implementation, with required dependencies and a component breakdown.
  • Asking which blocks exist returns a real list, so the agent stops guessing at names.

Who the shadcn MCP Server is for

Best for

  • Developers in Cursor working on a project built on shadcn/ui who want current component source on demand.
  • Readers weighing options: the shadcn MCP page and the shadcn/ui server approach the same library from other angles.
  • Builders who also want a rules layer, such as a shadcn skill, that tells the agent how to use what it fetches.

Not for

  • Anyone who needs search across third party registries. The four tools only cover shadcn/ui components and blocks.
  • Offline work. Every fetch goes through the GitHub API, and without a token the limit is 60 requests per hour.
  • Design to code from Figma. This is a component source, not a design reader.

Rate limits and the GitHub token

A GitHub personal access token is optional but recommended. The README says no special permissions are needed because the repository is public, and a token raises the limit from 60 to 5,000 requests per hour.

Use it with UiChemy

This server feeds shadcn/ui code to a coded front end. For a WordPress site, UiChemy is the route: Figma to WordPress converts a design, and Composer edits the result inside Elementor or Gutenberg. Click Get Started on uichemy.com.