# AINDF MCP server

> Lets an AI client browse a pinned design-system bundle, look up components, presets and slots, and validate screen specs.

- Repository: https://github.com/0design/ai-native-design-framework
- Page: https://hostedmcp.org/servers/0design/aindf
- Transport: stdio
- Stars: 29
- License: MIT
- Latest version: 0.2.1

## Install

### Claude Code

```sh
claude mcp add aindf -- npx -y @ai-native-design-framework/kit
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "aindf": {
      "command": "npx",
      "args": [
        "-y",
        "@ai-native-design-framework/kit"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "aindf": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ai-native-design-framework/kit"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"aindf","type":"stdio","command":"npx","args":["-y","@ai-native-design-framework/kit"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "aindf": {
      "command": "npx",
      "args": [
        "-y",
        "@ai-native-design-framework/kit"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add aindf -- npx -y @ai-native-design-framework/kit
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.aindf]
command = "npx"
args = ["-y", "@ai-native-design-framework/kit"]
```

### Gemini CLI

```sh
gemini mcp add -s user aindf npx -- -y @ai-native-design-framework/kit
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "aindf": {
      "command": "npx",
      "args": [
        "-y",
        "@ai-native-design-framework/kit"
      ]
    }
  }
}
```

## FAQ

### What tools does the AINDF MCP server expose?

A read-only endpoint lists seven tools: list-by-facet, slot-accepts, applicable-modifiers, get-preset, get-ds, get-component and validate-screen. Endpoints with staging can also offer submit-screen and request-extension.

### How do I start the AINDF MCP server?

Run the aindf mcp command with a bundle file, which serves over stdio. The same server can run on an edge runtime via createDsMcp and mcpFetchHandler.

### Can the MCP server modify or submit my screens?

Not on a read-only endpoint: the seven listed tools are read-only, and the agent reports the validated ScreenSpec or need to the user instead of submitting it.

### What does validate-screen check against?

It checks a screen spec against the pinned AINDF bundle, including closed component props and slot acceptance, since slots are judged by the design system's own slotsets.

### Which AINDF version does the bundle conform to?

Bundles declare conformance to aindf@0.2, which adds components, bindings, screen, receipt and config to the 0.1 contract graph.
