# Connect an AI agent

Source: https://timetick.io/docs/ai/connect

Add the TimeTick MCP server to Claude, ChatGPT, Claude Code, Codex or Gemini CLI, sign in with your TimeTick account and run OCPP tests from your AI client.

Add TimeTick to your AI client with one URL, sign in, and ask the agent to test your CSMS or charger.

```text
https://mcp.timetick.io/mcp
```

:::note
One-click install from the Claude, ChatGPT, Claude Code, Codex and Gemini CLI plugin directories is coming soon.
:::

## Add TimeTick

#### Claude

1. In Claude on the web or in Claude Desktop, go to **Customize > Connectors**.
2. Click **+ Add**, then **Add custom connector**.
3. Enter the name `TimeTick` and the URL, then click **Continue**.
4. Click **Continue** again, then **Add**.
5. In a chat, click **+**, choose **Connectors** and turn on TimeTick.

On Team and Enterprise plans an owner adds the connector under **Organization settings > Connectors**. Members then click **Connect** next to TimeTick under **Customize > Connectors**.

#### ChatGPT

1. Open ChatGPT on the web and go to **Plugins**.
2. Click the plus button, then **Add custom MCP server**.
3. Enter the name `TimeTick` and, under **Connection**, the **Server URL**.
4. Choose **OAuth** as the authentication.
5. Check **I understand and want to continue** and click **Create as a plugin**.
6. Install the plugin.
7. In a chat, type **@** and choose TimeTick.

#### Claude Code

```bash
claude mcp add --transport http --scope user timetick https://mcp.timetick.io/mcp
```

Then enter `/mcp` in Claude Code and choose `timetick` to sign in.

#### Codex

```bash
codex mcp add timetick --url https://mcp.timetick.io/mcp
codex mcp login timetick
```

Then start a new Codex session.

#### Gemini CLI

```bash
gemini mcp add --transport http --scope user timetick https://mcp.timetick.io/mcp
```

Then start Gemini CLI and enter `/mcp auth timetick`.

#### Other clients

Add the URL in your client's MCP settings. Steps for Cursor, VS Code, JetBrains, n8n and more: [other AI clients](https://timetick.io/docs/ai/clients).

## Sign in

TimeTick opens in your browser. Sign in or create an account, then click **Allow**. Back in your client, ask:

```text
Who am I signed in as in TimeTick?
```

If you have several projects, tell the agent which one to use.

TimeTick adds an API key named after your client, for example "Claude Code". To disconnect, delete it under **API keys** in the [portal](https://app.timetick.io).

## Run TimeTick on your computer

Some clients start MCP servers only on your computer. You need Node.js 18.14 or later. Add this to the client's MCP settings:

```json
{
  "mcpServers": {
    "timetick": {
      "command": "npx",
      "args": ["-y", "@timetick/mcp@latest"]
    }
  }
}
```

Then ask the agent to sign in to TimeTick, or run `npx -y @timetick/mcp@latest login` in a terminal.

### CI and machines without a browser

Create an [API key](https://timetick.io/docs/developers/api-keys) and add it to the `env` of the `timetick` server:

```json
"env": { "TIMETICK_API_TOKEN": "your_api_key" }
```

Keep the key in the settings file. Don't paste it into the chat.

### Read-only mode

To let the agent look at your projects without changing anything, add `"TIMETICK_MCP_READONLY": "1"` to the `env` of the `timetick` server.

Next: [prompts to try](https://timetick.io/docs/ai/recipes).
