# aimock MCP server

> Mocks AI infrastructure including LLM APIs, MCP tools, vector databases, and agent protocols for deterministic application testing.

- Repository: https://github.com/CopilotKit/aimock
- Page: https://hostedmcp.org/servers/copilotkit/aimock
- Transport: stdio
- Stars: 1013
- License: MIT

## Install

### Claude Code

```sh
claude mcp add aimock -- npx -y @copilotkit/aimock
```

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

```json
{
  "mcpServers": {
    "aimock": {
      "command": "npx",
      "args": [
        "-y",
        "@copilotkit/aimock"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "aimock": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@copilotkit/aimock"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "aimock": {
      "command": "npx",
      "args": [
        "-y",
        "@copilotkit/aimock"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.aimock]
command = "npx"
args = ["-y", "@copilotkit/aimock"]
```

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

```json
{
  "mcpServers": {
    "aimock": {
      "command": "npx",
      "args": [
        "-y",
        "@copilotkit/aimock"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AIMOCK_API_KEYS` | no | no |  |
