CDS Components MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: Design-Code Registry MCP
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Give AI agents your deeepSpace design system: components, tokens, styles and code mappings.
Build and manage your design system with AI: tokens, themes, components, icons, Figma and code.
Serves your design system and coding standards to coding agents, so they stop guessing.
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to private React component library documentation, props, and code examples through type-safe TypeScript integration.-
- AlicenseAqualityDmaintenanceMaps design components, tokens, and patterns to their code implementations, providing AI coding agents with exact-match resolution across any design tool and framework. Enables agents to reliably discover and reuse existing components across React, Vue, Flutter, SwiftUI, and more.20MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents to retrieve accurate design system information, component APIs, design tokens, and coding standards, so they build with real specs rather than guessing.2MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to retrieve React, Svelte, Vue, and React Native component source code, demos, blocks, and metadata for building UIs in AI-powered development workflows.106,787 npmMIT