Give agents the Lumen contract.
A Model Context Protocol server that gives AI agents structured access to Lumen component contracts, framework usage, recipes, design tokens, resources, and generation rules.
lumen_list_componentsDiscover primitives
lumen_get_componentFramework contracts
lumen_get_rulesStay on-system
- Tools
- 6
- Resources
- 5
- Components
- 121
What agents can do
Six focused tools
Every tool returns readable text plus validated structured content, grounded in the same catalog, docs, framework source, tokens, and rules the packages ship.
lumen_list_componentsList every component with its framework availability and recipe membership. Filter by framework, recipe, or a name query.
lumen_get_componentReturn framework-specific imports, styles, props or attributes, examples, accessibility behavior, events, and optional source.
lumen_get_recipeReturn a recipe’s purpose, categories, components, files, and framework-specific install command.
lumen_searchRank natural-language matches across descriptions, collections, props, attributes, recipes, tokens, and rules.
lumen_get_tokensReturn semantic token names, base color values, glass tokens, and the theme attribute for generated code.
lumen_get_rulesReturn the Lumen agent rules (llms.txt) to read before producing Lumen code.
Connect a client
Run over stdio with npx
The server ships a self-contained snapshot of the catalog, so no repository checkout is required. Point any MCP client at npx -y @santi020k/lumen-mcp.
[mcp_servers.lumen]
enabled = true
command = "npx"
args = ["-y", "@santi020k/lumen-mcp"]
startup_timeout_sec = 10.0
tool_timeout_sec = 30.0Or run codex mcp add lumen -- npx -y @santi020k/lumen-mcp.
{
"mcpServers": {
"lumen": {
"command": "npx",
"args": ["-y", "@santi020k/lumen-mcp"]
}
}
}{
"mcpServers": {
"lumen": {
"command": "npx",
"args": ["-y", "@santi020k/lumen-mcp"]
}
}
}{
"name": "lumen",
"transport": "stdio",
"command": "npx",
"args": ["-y", "@santi020k/lumen-mcp"]
}Stable context
Browsable MCP resources
Clients can read or cache stable catalog context without calling a tool. Component and recipe templates are enumerable and support name completion.
lumen://rulesAgent generation rules as Markdown.
lumen://tokensStructured semantic, color, glass, and theme tokens.
lumen://componentsCompact structured component catalog.
lumen://components/{name}One component’s metadata and default Astro usage.
lumen://recipes/{name}Recipe metadata and framework install commands.
How agents use it
Discover, read, and stay on-system
Start compact, read the target framework’s usage contract, and request full source only when the imports, examples, accessibility notes, and API rows are insufficient.
- 01
Discover
The agent calls lumen_list_components or lumen_search to find the right primitive for the task.
- 02
Read framework usage
lumen_get_component returns imports, styles, examples, props or attributes, accessibility behavior, and events for Astro, React, or Elements.
- 03
Compose a recipe
lumen_get_recipe explains multi-component patterns and gives the correct framework install command.
- 04
Follow the system
Structured tokens, resources, and rules keep generated code on Lumen’s semantic contract.
@santi020k/lumen-mcp
The deterministic snapshot is generated from the component registry, documentation API rows and examples, Astro and React declarations, Web Component definitions, tokens, recipes, accessibility interactions, runtime events, and llms.txt.
npx -y @santi020k/lumen-mcpOpen on npm