Integrate the shadcn/ui MCP Server with VS Code for seamless component access.
-
Install Continue Extension:
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Continue" and install it
-
Configure MCP Server:
- Open Command Palette (Ctrl+Shift+P)
- Type "Continue: Configure" and select it
- Add this configuration to your settings:
{
"continue.server": {
"mcpServers": {
"shadcn-ui": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}-
Install Claude Extension:
- Search for "Claude" in VS Code extensions
- Install the official Claude extension
-
Configure MCP Server:
- Add to your VS Code settings.json:
{
"claude.mcpServers": {
"shadcn-ui": {
"command": "npx",
"args": ["@jpisnice/shadcn-ui-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}- Configure MCP Server:
- Ctrl+Shift+P
- Search for "MCP: Add Server..."
- Choose "NPM Package"
- Paste this repo name \ npm package
@jpisnice/shadcn-ui-mcp-server - It will ask automatically about:
- How it should be installed (global, remote (WSL for example), workspace-only)
- GitHub API Token
- Framework
- Transport Mode
Your VSCode MCP Server configuration (mcp.json) should look like:
{
"servers": {
"shadcn-ui-mcp-server": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server@2.0.0",
"--fremaework",
"react",
"--ui-library",
"radix"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${input:github_token}"
},
"type": "stdio"
}
},
"inputs": [
{
"id": "github_token",
"type": "promptString",
"description": "GitHub Personal Access Token (optional, recommended for higher rate limits)"
}
]
}{
"continue.server": {
"mcpServers": {
"shadcn-ui": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}{
"continue.server": {
"mcpServers": {
"shadcn-ui-svelte": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"svelte",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}{
"continue.server": {
"mcpServers": {
"shadcn-ui-vue": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"vue",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}{
"continue.server": {
"mcpServers": {
"shadcn-ui-react-native": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"react-native",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}You can configure multiple frameworks simultaneously:
{
"continue.server": {
"mcpServers": {
"shadcn-ui-react": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"react",
"--github-api-key",
"ghp_your_token_here"
]
},
"shadcn-ui-svelte": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"svelte",
"--github-api-key",
"ghp_your_token_here"
]
},
"shadcn-ui-vue": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"vue",
"--github-api-key",
"ghp_your_token_here"
]
},
"shadcn-ui-react-native": {
"command": "npx",
"args": [
"@jpisnice/shadcn-ui-mcp-server",
"--framework",
"react-native",
"--github-api-key",
"ghp_your_token_here"
]
}
}
}
}- Open Continue Chat (Ctrl+Shift+L)
- Ask for components:
"Show me the shadcn/ui button component" "Get the dashboard-01 block" "List all available components"
- Open Claude Chat (Ctrl+Shift+L)
- Request components:
"Show me the React button component source code" "Get the Svelte card component demo" "Compare Vue and React button implementations"
Instead of hardcoding your token, use environment variables:
{
"continue.server": {
"mcpServers": {
"shadcn-ui": {
"command": "npx",
"args": ["@jpisnice/shadcn-ui-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
}-
Check if server runs standalone:
npx @jpisnice/shadcn-ui-mcp-server --help
-
Verify configuration syntax:
- Use a JSON validator
- Check for missing commas or brackets
-
Restart VS Code after configuration changes
-
Check extension logs:
- Open Output panel (View → Output)
- Select "Continue" or "Claude" from dropdown
"Command not found":
# Ensure npx is available
npx --version"Rate limit exceeded":
# Add GitHub token to configuration"Extension not recognizing MCP server":
- Restart VS Code
- Check configuration file location
- Verify JSON syntax
- Usage Examples - How to use after integration
- Troubleshooting - Common issues and solutions
- API Reference - Complete tool reference
- Other Integrations - Connect to other tools