Astryx Documentation MCP Server
Click on "Deploy 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., "@Astryx Documentation MCP Server Search docs for the Button component usage"
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.
Astryx Documentation MCP Server & AI Agent Skill
A comprehensive Model Context Protocol (MCP) server and AI Agent Skill for the Meta Astryx Design System. This project indexes scraped documentation, component specifications, StyleX guides, and CLI references, exposing structured tools and prompt guidelines for AI assistants and coding agents (Claude Desktop, Cursor, Project IDX, Gemini CLI, Antigravity, Windsurf).
π Features & MCP Tools
The MCP server exposes four tools over stdio:
search_astryx_docsDescription: Full-text and keyword search across all Astryx documentation, guides, and component APIs.
Parameters:
query: string(e.g.,'Button','defineTheme','StyleX','asChild').
get_astryx_componentDescription: Retrieve usage guidelines, prop interfaces, imports, and code examples for a specific component.
Parameters:
componentName: string(e.g.,'Button','AppShell','Table','Avatar','Dialog','Input').
get_theme_guideDescription: Retrieve information on the 6 built-in themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha), CSS variable design tokens, and custom theme definitions with
defineTheme.Parameters:
themeName?: string(e.g.,'butter','neutral','defineTheme').
get_cli_commandsDescription: Documentation for
@astryxdesign/cliand commands (init,doctor,template,manifest,theme build,swizzle).Parameters:
command?: string(e.g.,'init','doctor','template','manifest','theme build','swizzle').
Related MCP server: WordPress Design System MCP Server
π€ Astryx Agent Skill (astryx-skill)
Located in astryx-skill/SKILL.md, this skill provides authoritative coding patterns and rules:
Subpath Imports:
import { Button } from '@astryxdesign/core/Button';Cascade Layers: Enforces
@import '@astryxdesign/core/astryx.css';under@layer astryx-base.StyleX Overrides: Uses StyleX via
xstyleprop instead of arbitrary inline styles.Theme Provider: Standardized
<Theme mode="system" theme={neutralTheme}>application structure.
π Interactive Intro Website
An interactive presentation website is included in index.html, featuring:
Live Theme Explorer: Test the 6 Astryx design themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha).
Component Playground: Interactive prop controls with real-time TSX code generation.
MCP Server Stdio Simulator: Interactive search tool test runner.
One-Click Publishing Matrix: Simple setup for GitHub Pages, Vercel, Netlify, and Cloudflare Pages.
π οΈ Getting Started
Prerequisites
Node.js >= 18.0.0
npm / pnpm / yarn
Installation
git clone https://github.com/georgemathunjaga/astryx-mcp-and-skill.git
cd astryx-mcp-and-skill
npm installBuild & Run
# Build TypeScript and bundle crawl data to dist/
npm run build
# Start the MCP server using node (stdio)
npm start
# Run in development mode with live TypeScript compilation
npm run dev
# Run automated integration tests
npm testπ Connecting to AI IDEs & Clients
1. Claude Desktop
Add the following to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"astryx-docs": {
"command": "node",
"args": ["E:/workspace/public-repos/astryx-mcp/dist/index.js"]
}
}
}2. Google Project IDX / Gemini CLI / Cursor
Add to your project's .cursor/mcp.json or mcp.json:
{
"mcpServers": {
"astryx-docs": {
"command": "node",
"args": ["E:/workspace/public-repos/astryx-mcp/dist/index.js"]
}
}
}π Project Structure
astryx-mcp/
βββ astryx-skill/ # Astryx Agent Skill instructions
β βββ SKILL.md
β βββ astryx-skill.md
βββ index.html # Interactive Intro Website
βββ styles.css # Master CSS Design System
βββ app.js # Interactive Website Logic & MCP Simulator
βββ dist/ # Compiled JavaScript output & assets
β βββ index.js
β βββ data/
β βββ astryx_crawl.json
βββ src/
β βββ data/
β β βββ astryx_crawl.json # Crawled Astryx documentation dataset
β βββ index.ts # MCP Server definition and tool handlers
βββ test/
β βββ mcp-test.js # MCP Stdio verification suite
βββ package.json
βββ tsconfig.json
βββ README.mdπ License
MIT
Available Tools
4 toolsget_astryx_componentB
Retrieve usage, props, imports, and code specifications for a specific Astryx component.
Inputs: componentName (required).
get_cli_commandsB
Get documentation for the @astryxdesign/cli tool and CLI commands (init, doctor, template, manifest, theme build, swizzle).
Inputs: command.
get_theme_guideA
Get details on Astryx themes (Neutral, Butter, Stone, Gothic, Y2K, Matcha) or custom defineTheme CSS custom property syntax.
Inputs: themeName.
search_astryx_docsB
Search across Meta Astryx design system documentation, guides, components, and API references.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 4 tools
Each tool targets a distinct area of the documentation: broad search, component details, theme syntax, and CLI commands. There is no meaningful overlap between the four tools.
Tool names follow a clear verb-first pattern, using `search_` for the lookup tool and `get_` for the three resource-specific tools. Minor inconsistency comes from only some tools including the 'astryx' prefix, but the structure is still predictable.
Four tools is a well-scoped set for a documentation MCP server, covering search plus the three primary documented areas: components, themes, and CLI. Each tool serves a distinct purpose without unnecessary redundancy.
The tool surface covers the main ways someone would interact with Astryx documentation: searching, component reference, theme customization, and CLI usage. A potential gap is the absence of a direct `get_guide` tool for retrieving a full guide article, but the search tool mitigates that.
Related MCP Connectors
Access and maintain design system docs, tokens, components, skills, and contexts across any project.
Access and search Branch's official API documentation directly within any AI agent or client.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Tailor Platform for AI assistants: search, list and read the platform documentation.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Astro projects by providing runtime information, documentation search, route listing, and integration details.61MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with component documentation, usage examples, and design tokens from the WordPress Design System, enabling them to follow the latest design system guidance for creating user interfaces.403 npmGPL 2.0
- AlicenseNot gradedqualityBmaintenanceProvides a real API for coding agents to look up design system components, props, and tokens, preventing guessed answers.9MIT
- FlicenseNot gradedqualityBmaintenanceEnables intent-based semantic search over external design system documentation, allowing MCP-compatible AI assistants to retrieve relevant design tokens, component architectures, and code patterns via a single tool.-