Shadcn UI v4 MCP Server

by @Jpisnice

Shadcn Ui V4 MCP Server

This MCP server gives coding assistants shadcn-related implementation material, from individual components to larger UI blocks. Framework selection and React primitive-library options help align retrieved code with the target project.

Developer Tools3,060nodeMIT

Server facts

Shadcn UI v4 MCP Server

GitHub stars

3,060

Last commit

Oct 3, 2026

Runtime

node

License

MIT

Tech

Runtime
nodeTypeScript
Transports
stdio
Remote access
No

Activity

GitHub stars
3,060
Last commit
Data as of

Tags

  • Component Reference
  • Framework Selection
  • Shadcn Ui
  • Typescript
  • Ui Blocks

Overview

Choosing the implementation is part of using this server, not a detail to resolve after retrieving code. React is the default framework, with Vue, React Native, and Svelte available as alternatives backed by their respective implementations. For React, users can also select between Base UI and the default Radix primitives. That primitive-library choice is explicitly limited to React. The server then supplies reference material at different scales: component implementations and usage examples for focused work, or larger blocks for interfaces such as calendars and dashboards. Metadata includes dependency and configuration details, while repository browsing exposes the directory layout. The structured input additionally identifies three TweakCN operations for discovering, inspecting, and applying themes.

GitHub requests are cached and rate limits are handled by the integration. The README contrasts a token-free allowance of 60 hourly requests with 5,000 when using a token, making authentication useful even though it is optional. Local CLI use defaults to stdio. Other deployment choices include an SSE listener for multiple clients and a dual mode combining transports, plus Docker examples. Claude Desktop has a packaged MCPB installation route as another option. Source-build instructions specify Node.js 18 or above with npm or pnpm. Configuration settings expose network binding, CORS origins, and the SSE port, so a network deployment has more choices to review than the minimal local npx launch.

Install & configure

Requirements

  • Node.js version 18 or above in the source-build prerequisites
  • npm tooling for npx; npm or pnpm for source builds
  • Client with MCP support
Documented launch / install command
npx @jpisnice/shadcn-ui-mcp-server

The basic npx command appears directly in the README. The GitHub environment entry is optional and documented separately. Initial defaults are React with Radix and stdio. Use --framework for another implementation; React can select Base UI with --ui-library base. Network examples use SSE or dual mode.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "shadcn-ui-mcp-unofficial": {
      "command": "npx",
      "args": [
        "@jpisnice/shadcn-ui-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<optional GitHub credential for a higher request allowance>"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "shadcn-ui-mcp-unofficial": {
      "command": "npx",
      "args": [
        "@jpisnice/shadcn-ui-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<optional GitHub credential for a higher request allowance>"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "shadcn-ui-mcp-unofficial": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@jpisnice/shadcn-ui-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<optional GitHub credential for a higher request allowance>"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "shadcn-ui-mcp-unofficial": {
      "command": "npx",
      "args": [
        "@jpisnice/shadcn-ui-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<optional GitHub credential for a higher request allowance>"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "shadcn-ui-mcp-unofficial": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@jpisnice/shadcn-ui-mcp-server"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<optional GitHub credential for a higher request allowance>"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository tool metadata. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
list_blocksBrowse the block inventory by category.
get_blockFetch the implementation of a chosen UI block.
list_componentsBrowse the available component inventory.
get_component_metadataLook up a component's descriptive, dependency, and configuration information.
get_component_demoFetch usage-example code for the selected component.
get_componentFetch the selected component's implementation source.
get_directory_structureInspect how directories are arranged in the source repository.
list_themesBrowse the available TweakCN preset choices.
get_themeInspect the details behind one TweakCN preset.
apply_themeUse a chosen TweakCN preset to update the project's theme.

Use cases

  • Resolve a component's dependencies and usage pattern before generating integration code.
  • Retrieve a larger UI block instead of assembling every screen element from isolated snippets.
  • Choose code for the project's framework and, for React, its primitive library.
  • Inspect a TweakCN preset before asking the supplied theme operation to apply it.

Strengths

  • Retrieval spans individual components, examples, metadata, and larger interface blocks.
  • Framework and React primitive choices are explicit configuration decisions.
  • Offers local execution, shared SSE access, and a packaged desktop installation.

Limitations

  • Omitting a GitHub token leaves the lower documented request allowance.
  • Base UI is not an alternative for the non-React framework modes.

Shadcn UI v4 MCP Server setup notes

  • Check GITHUB_PERSONAL_ACCESS_TOKEN in the Shadcn UI v4 MCP Server configuration if startup or authentication fails.
  • Shadcn UI v4 MCP Server's stdio example needs a client that launches local processes.

Frequently asked questions

The README provides a --framework option and identifies React as the default. It documents Svelte, React Native, and Vue choices as alternatives.

Related MCP servers