MCP Server

@letsprogram/ng-oat-mcp is a Model Context Protocol server that gives AI coding assistants , Copilot, Cursor, Windsurf, Claude, and others , full access to every ng-oat component API, design token, utility class, recipe, and theming guide.

What it does

Instead of pasting documentation into prompts, the MCP server lets your AI assistant query the ng-oat library programmatically. It knows about all 37 components, 87 design tokens, 300+ utility classes, 12 page recipes, and the complete theming API , so it generates correct, idiomatic code on the first try.

🔍 Component lookup

Ask for any component by name or selector and get the full API , inputs, outputs, slots, and a working example.

🎨 Design tokens

Query all 87 CSS custom properties by category , colors, spacing, typography, radius, shadows, and transitions.

⚡ Code generation

Describe a UI in plain English and get a complete Angular standalone component with correct ng-oat imports.

🧱 Utility classes

Browse 300+ CSS utilities across 30+ categories including responsive variants (sm:/md:/lg:/xl:).

📖 Recipes

Full-page layout templates , login, dashboard, pricing, blog, settings, and more , ready to scaffold.

🌗 Theming

Complete dark/light mode docs , provideNgOatTheme, NgOatThemeRef, light-dark(), and CSS-only approaches.

Install

No global install needed. Your IDE runs the server automatically via npx:

bash
npx -y @letsprogram/ng-oat-mcp

Or install globally if you prefer:

bash
npm install -g @letsprogram/ng-oat-mcp

IDE Setup

VS Code / GitHub Copilot

Create .vscode/mcp.json in your workspace root (or ~/.vscode/mcp.json for global access):

json
// .vscode/mcp.json
{
  "servers": {
    "ng-oat": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@letsprogram/ng-oat-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

json
// .cursor/mcp.json
{
  "mcpServers": {
    "ng-oat": {
      "command": "npx",
      "args": ["-y", "@letsprogram/ng-oat-mcp"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
// ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ng-oat": {
      "command": "npx",
      "args": ["-y", "@letsprogram/ng-oat-mcp"]
    }
  }
}

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
// claude_desktop_config.json
{
  "mcpServers": {
    "ng-oat": {
      "command": "npx",
      "args": ["-y", "@letsprogram/ng-oat-mcp"]
    }
  }
}

Available Tools

The MCP server exposes 7 tools that your AI assistant can call:

ToolDescriptionParameters
get_componentLook up any component by name or selector , returns inputs, outputs, slots, and examplequery (string)
get_tokensList design tokens filtered by categorycategory (color | spacing | radius | typography | shadow | transition)
generate_component_codeGenerate a complete Angular standalone component from a natural language descriptiondescription (string)
get_recipeGet full-page layout recipes with HTML skeletonsquery (string)
get_utilitiesList 300+ CSS utility classes , filterable by categorycategory (optional, 30+ categories)
get_setupInstallation & configuration guidetopic (optional)
get_themingTheming and dark/light mode documentationtopic (optional)

Resources & Prompts

In addition to tools, the server provides an MCP resource and two prompt templates:

Resource

URIDescription
ng-oat://llms-full.txtComplete API reference , all 37 components, 87 tokens, 12 recipes, 300+ utilities, theming & setup guides

Prompts

PromptDescription
create-pageScaffold a full Angular page using ng-oat components from a natural language description
style-with-tokensGenerate CSS using ng-oat design tokens from a description of what to style

Example Usage

Once the MCP server is connected, just ask your AI assistant naturally. Here are some example prompts:

  • "Create a settings page with a form, card layout, and save button using ng-oat"
  • "What inputs does the NgOatTable component accept?"
  • "Show me all spacing design tokens"
  • "Generate a dashboard layout with sidebar navigation"
  • "How do I set up dark mode with ng-oat?"
  • "List all flexbox utility classes"
  • "What's the recipe for a pricing page?"

The assistant will call the appropriate MCP tool behind the scenes and use the returned API data to generate accurate, up-to-date code.

Testing the server

You can inspect and test all tools interactively using the MCP Inspector:

bash
npx @modelcontextprotocol/inspector npx -y @letsprogram/ng-oat-mcp

This opens a web UI where you can call each tool, view the resource, and test the prompt templates , useful for verifying the server works before connecting it to your IDE.