CDS Components MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CDS Components MCP Serversearch for button components"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CDS Components MCP Server
An MCP (Model Context Protocol) server for your component library and design system, enabling AI assistants to search, understand, and generate code using your components.
Features
Component Search: Search by name, props, or functionality
Component Details: Retrieve full documentation including props, examples, and dependencies
Similar Components: Find alternatives based on requirements
Prop Validation: Check if props match library conventions
Code Generation: Generate boilerplate code with correct imports and props
Related MCP server: Component Library MCP Server
Architecture
src/
├── types.ts # TypeScript interfaces
├── config.ts # Configuration management
├── repo-sync.ts # Git repository synchronization
├── parsers/
│ ├── component.ts # Parse React/TypeScript components
│ ├── story.ts # Parse Storybook stories
│ ├── tokens.ts # Parse design tokens
│ └── mdx.ts # Parse MDX documentation
├── indexer.ts # Orchestrates all parsers
├── search.ts # Search and similarity algorithms
└── index.ts # MCP server entry pointInstallation
# Install dependencies
pnpm install
# Build the project
pnpm buildConfiguration
Create a .env file from the example:
cp .env.example .envConfigure your repository settings:
REPO_OWNER=your-org
REPO_NAME=your-design-system-repo
REPO_BRANCH=main
PACKAGES_PATH=packages/components,packages/tokensUsage
Running the Server
node dist/index.jsConfiguring with Claude Desktop
Add to your Claude Desktop config (~/.config/claude/claude_desktop_config.json):
{
"mcpServers": {
"cds-components": {
"command": "node",
"args": ["/path/to/cds-components-mcp/dist/index.js"],
"env": {
"REPO_OWNER": "your-org",
"REPO_NAME": "your-design-system",
"REPO_BRANCH": "main",
"PACKAGES_PATH": "packages/components,packages/tokens"
}
}
}
}Available Tools
1. search_components
Search for components by name, props, or functionality.
Arguments:
query(string, required): Search queryfilterBy(string, optional): Filter by "name", "props", "functionality", or "all"
Example:
Find all button components2. get_component_details
Retrieve full documentation for a specific component.
Arguments:
componentName(string, required): Name of the component
Example:
Get details for Button component3. find_similar_components
Suggest alternative components based on requirements.
Arguments:
requirements(string, required): Description of component requirementscomponentType(string, optional): Type or category filter
Example:
Find components for displaying user profiles4. validate_component_usage
Check if props and patterns match library conventions.
Arguments:
componentName(string, required): Component to validateprops(object, required): Props object to validate
Example:
Validate Button usage with props {variant: "primary", size: "large"}5. generate_component_code
Generate boilerplate code with correct imports and props.
Arguments:
componentName(string, required): Component nameprops(array, optional): List of prop namesincludeStyles(boolean, optional): Include style templates
Example:
Generate code for Button componentHow It Works
Repository Sync: Clones or pulls your design system repository
Indexing: Parses all components, stories, tokens, and docs using TypeScript AST
Search: Uses relevance scoring to find matching components
Tool Execution: Returns formatted documentation and code snippets
Supported File Types
Components:
.tsx,.jsxStories:
.stories.tsx,.stories.tsTokens:
.json,.ts,.js,.css,.scssDocumentation:
.mdx,.md
Development
# Watch mode for development
pnpm watch
# Build
pnpm buildLicense
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PinoNoir/sds-components-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server