# Ask LLM MCP server

> Enables AI coding assistants to request second opinions, code reviews, and plan critiques from different LLM providers.

- Repository: https://github.com/Lykhoyda/ask-llm
- Page: https://hostedmcp.org/servers/lykhoyda/ask-codex
- Transport: stdio
- Stars: 20
- License: MIT
- Latest version: 0.9.0

## Install

### Claude Code

```sh
claude mcp add ask-codex -- npx -y @ask-llm/codex-mcp
```

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

```json
{
  "mcpServers": {
    "ask-codex": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/codex-mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "ask-codex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/codex-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"ask-codex","type":"stdio","command":"npx","args":["-y","@ask-llm/codex-mcp"]}'
```

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

```json
{
  "mcpServers": {
    "ask-codex": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/codex-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add ask-codex -- npx -y @ask-llm/codex-mcp
```

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

```toml
[mcp_servers.ask-codex]
command = "npx"
args = ["-y", "@ask-llm/codex-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user ask-codex npx -- -y @ask-llm/codex-mcp
```

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

```json
{
  "mcpServers": {
    "ask-codex": {
      "command": "npx",
      "args": [
        "-y",
        "@ask-llm/codex-mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GMCPT_LOG_LEVEL` | no | no | Log verbosity: debug, info, warn, error (default: warn) |
| `GMCPT_TIMEOUT_MS` | no | no | Timeout for Codex CLI execution in milliseconds (default: 300000 = 5 minutes) |

## FAQ

### How do I install Ask LLM?

You can install it via npm using the command `npm i -g @ask-llm/mcp && ask-llm setup` on Linux or macOS with Node.js 24+.

### Does Ask LLM provide its own API keys?

No, it uses the model subscriptions and authenticated CLI tools you already have installed on your machine.

### Does using this service cost extra?

Calls consume your existing provider plan's quota or follow that account's billing.
