Skip to main content
Glama
vasyl-bilous

Component Library MCP

by vasyl-bilous

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FRAMEWORKNoreact | vue | auto. Auto detects from package.json deps.auto
LOG_LEVELNosilent | info | debug. All logs go to stderr.silent
MAX_DEPTHNoMax recursion depth for fast-glob.10
PROJECT_ROOTNoAbsolute path to scan. Usually you don't need to set this — the server uses the directory it was launched from. Only set it when that isn't what you want.
COMPONENT_DIRSNoComma-separated dirs to scan. 'auto' probes src/components, src/ui, src/shared, components, lib/components, app/components and falls back to src/ or the project root.auto
INCLUDE_STORIESNoParse .stories.(ts|tsx|js|jsx) and attach story examples to components.true
EXCLUDE_PATTERNSNoComma-separated dir names or globs. Bare names become **/<name>/**.node_modules,dist,.next,.nuxt

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_componentsC

List all components in the project with summary info (name, path, prop count, usage count). Call this first to see what's available.

get_component_detailsA

Get full metadata for a specific component: props, slots, events, description, and story examples. Accepts component name or file_path.

search_componentsA

Search components by natural-language query, prop name, prop type, or slot name. Returns ranked results.

get_import_graphC

Get dependencies and dependents for a component. Shows composition patterns and which pages/components use it.

check_duplicateA

Check if a proposed component would duplicate an existing one. Call this BEFORE creating a new component. Returns similarity-ranked matches and a recommendation.

get_component_usage_exampleC

Get real usage examples of a component from the codebase (JSX/template snippets with surrounding context).

refresh_cacheA

Force re-scan of all component files. Incremental by default; pass full_scan=true to clear the cache entirely.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/vasyl-bilous/component-library-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server