# schema MCP server

> Provides TypeScript types and JSON Schema to define, validate, and share static snapshots of MCP server capabilities.

- Repository: https://github.com/sourcey/mcp-schema
- Page: https://hostedmcp.org/servers/sourcey/mcp-schema
- Transport: stdio
- Stars: 2
- License: MIT

## Install

### Claude Code

```sh
claude mcp add mcp-schema -- npx -y mcp-schema
```

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

```json
{
  "mcpServers": {
    "mcp-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-schema"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp-schema": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-schema"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-schema","type":"stdio","command":"npx","args":["-y","mcp-schema"]}'
```

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

```json
{
  "mcpServers": {
    "mcp-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-schema"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-schema -- npx -y mcp-schema
```

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

```toml
[mcp_servers.mcp-schema]
command = "npx"
args = ["-y", "mcp-schema"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-schema npx -- -y mcp-schema
```

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

```json
{
  "mcpServers": {
    "mcp-schema": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-schema"
      ]
    }
  }
}
```

## FAQ

### What is an MCP spec (mcp.json)?

An MCP spec is a static snapshot of an MCP server's capabilities, including its tools, resources, and prompts, similar to how openapi.json works for APIs.

### Does this package download schemas at runtime?

No, the official schema is bundled locally within the package.
