Astryx Documentation MCP Server

Astryx Documentation MCP Server

Enables AI assistants to search and retrieve documentation, component specs, theme guides, and CLI commands for the Meta Astryx Design System, providing structured tools and guidelines for coding agents.

Category
Visit Server

README

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:

  1. search_astryx_docs

    • Description: Full-text and keyword search across all Astryx documentation, guides, and component APIs.
    • Parameters: query: string (e.g., 'Button', 'defineTheme', 'StyleX', 'asChild').
  2. get_astryx_component

    • Description: Retrieve usage guidelines, prop interfaces, imports, and code examples for a specific component.
    • Parameters: componentName: string (e.g., 'Button', 'AppShell', 'Table', 'Avatar', 'Dialog', 'Input').
  3. get_theme_guide

    • Description: 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').
  4. get_cli_commands

    • Description: Documentation for @astryxdesign/cli and commands (init, doctor, template, manifest, theme build, swizzle).
    • Parameters: command?: string (e.g., 'init', 'doctor', 'template', 'manifest', 'theme build', 'swizzle').

šŸ¤– Astryx Agent Skill (astryx-skill)

Located in [astryx-skill/SKILL.md](file:///e:/workspace/public-repos/astryx-mcp/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 xstyle prop 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 install

Build & 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.json
  • Windows: %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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured