# CueAPI MCP server

> Allows AI agents to schedule recurring or one-time tasks, manage execution history, and report outcomes with structured evidence.

- Repository: https://github.com/cueapi/cueapi-mcp
- Page: https://hostedmcp.org/servers/cueapi/cueapi-mcp
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add --env 'CUEAPI_API_KEY=<YOUR_CUEAPI_API_KEY>' cueapi-mcp -- npx -y @cueapi/mcp
```

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

```json
{
  "mcpServers": {
    "cueapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cueapi/mcp"
      ],
      "env": {
        "CUEAPI_API_KEY": "<YOUR_CUEAPI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "cueapi-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cueapi/mcp"
      ],
      "env": {
        "CUEAPI_API_KEY": "<YOUR_CUEAPI_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"cueapi-mcp","type":"stdio","command":"npx","args":["-y","@cueapi/mcp"],"env":{"CUEAPI_API_KEY":"<YOUR_CUEAPI_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "cueapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cueapi/mcp"
      ],
      "env": {
        "CUEAPI_API_KEY": "<YOUR_CUEAPI_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add cueapi-mcp --env 'CUEAPI_API_KEY=<YOUR_CUEAPI_API_KEY>' -- npx -y @cueapi/mcp
```

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

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

[mcp_servers.cueapi-mcp.env]
CUEAPI_API_KEY = "<YOUR_CUEAPI_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'CUEAPI_API_KEY=<YOUR_CUEAPI_API_KEY>' cueapi-mcp npx -- -y @cueapi/mcp
```

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

```json
{
  "mcpServers": {
    "cueapi-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cueapi/mcp"
      ],
      "env": {
        "CUEAPI_API_KEY": "<YOUR_CUEAPI_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CUEAPI_API_KEY` | yes | yes | CueAPI API key. Generate at https://cueapi.ai |
| `CUEAPI_BASE_URL` | no | no | Override the CueAPI base URL for self-hosted instances. Defaults to https://api.cueapi.ai |

## Tools (15)

- `cueapi_create_cue`
- `cueapi_list_cues`
- `cueapi_get_cue`
- `cueapi_fire_cue`
- `cueapi_update_cue`
- `cueapi_pause_cue`
- `cueapi_resume_cue`
- `cueapi_delete_cue`
- `cueapi_list_executions`
- `cueapi_get_execution`
- `cueapi_list_claimable_executions`
- `cueapi_claim_execution`
- `cueapi_claim_next_execution`
- `cueapi_execution_heartbeat`
- `cueapi_report_outcome`

## FAQ

### How do I install the CueAPI MCP server?

You can install it globally using npm with `npm install -g @cueapi/mcp` or run it without installation using `npx -y @cueapi/mcp`.

### What kind of tasks can I schedule?

You can create both recurring tasks using cron schedules and one-time tasks using the 'at' command.

### Can I use this with Claude Desktop?

Yes, you can configure Claude Desktop by adding the server to your `claude_desktop_config.json` file and providing your CUEAPI_API_KEY.
