> ## Documentation Index
> Fetch the complete documentation index at: https://developer.trackpilots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Connect ChatGPT, Claude, Cursor or Codex to your Trackpilots data with the MCP server

🔐 **Safe to Use**

The MCP Server cannot create, change or delete data in Trackpilots.

## 📌 Overview

The Trackpilots **MCP Server** lets AI assistants answer questions about your organisation in plain language. Ask who is working right now, what a team logged this week, or how one person's time breaks down.

MCP (Model Context Protocol) is an open standard that connects AI tools to external data. The server exposes Trackpilots data as tools.

**Endpoint:** `https://mcp.trackpilots.com/mcp`

For a short setup guide, see [mcp.trackpilots.com](https://mcp.trackpilots.com/).

***

## ✅ Before You Start

* You need a Trackpilots account with **Full Access**.
* You need a **Trackpilots API key**. Create one from the **Developer Tools → API Keys** page. See [API Keys](https://developer.trackpilots.com/docs/developer-tools/api-keys.md).
* Your organisation can keep up to **5 API keys**.

***

## 🔌 How It Works

**1. Add the endpoint**

Add `https://mcp.trackpilots.com/mcp` to your AI client as a remote MCP server. No install is needed.

**2. Sign in once**

Paste your Trackpilots API key on the sign-in page. The server checks it with the Trackpilots API before access is granted.

**3. Ask in plain language**

The assistant calls the matching tool, such as `list_employees` or `get_work_summary`, and answers from the data it returns.

Every call uses your API key, so Trackpilots' own access rules still decide what data you can see.

***

## ⚙️ Set Up Your AI Client

> [tab] ChatGPT
>
> 1. Open **Settings → Apps**. If you can't see the option to create an app, turn on **Developer mode** under Advanced settings.
> 2. Select **Create** and enter `https://mcp.trackpilots.com/mcp`.
> 3. Choose **OAuth** as the authentication type, then sign in with your API key.
> 4. Start a new chat and enable the Trackpilots app.
>
> ChatGPT's menu names can change. The URL and the OAuth setting are what matter.

> [tab] Claude
>
> 1. Open **Settings → Connectors → Add custom connector**.
> 2. Enter `https://mcp.trackpilots.com/mcp` and leave request headers empty.
> 3. Select **Add** and sign in with your API key.

> [tab] Claude Code
>
> Run this command:
>
> ```bash theme={null}
> claude mcp add --transport http trackpilots https://mcp.trackpilots.com/mcp
> ```
>
> Then run `/mcp` inside Claude Code, choose `trackpilots`, and sign in.

> [tab] Cursor
>
> Add this to `~/.cursor/mcp.json`, then sign in when Cursor asks:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "trackpilots": {
>       "type": "http",
>       "url": "https://mcp.trackpilots.com/mcp"
>     }
>   }
> }
> ```

> [tab] Codex CLI
>
> Run both commands. The first registers the server and the second opens the sign-in page:
>
> ```bash theme={null}
> codex mcp add trackpilots --url https://mcp.trackpilots.com/mcp
> codex mcp login trackpilots
> ```
>
> Or add this to `~/.codex/config.toml`:
>
> ```toml theme={null}
> [mcp_servers.trackpilots]
> url = "https://mcp.trackpilots.com/mcp"
> ```

***

## 🧰 Available Tools

Dates use `YYYY-MM-DD HH:mm:ss`. Time zones are IANA names such as `Asia/Kolkata`. If you don't pass a time zone, the server default is used. Ask the assistant to list employees or teams first to get the IDs the other tools need.

| Group | Tools |
| - | - |
| Directory | `list_employees`, `list_teams` |
| Dashboard | `get_recent_employee_activity`, `get_work_summary`, `get_work_time_analysis` |
| My Team | `get_my_team`, `get_team_member_time_logs`, `get_my_team_work_summary`, `get_my_team_screenshots`, `get_my_team_apps_and_websites_usage` |
| Proof of Work | `get_screenshots`, `get_timesheet`, `get_timeline`, `get_app_usage_timeline`, `get_app_usage_work_summary`, `get_websites_usage`, `get_apps_usage` |
| Settings and access | `get_work_day_settings`, `get_expected_work_hours_settings`, `get_screenshot_settings`, `get_idle_alert_settings`, `get_stealth_monitoring_settings`, `get_default_settings`, `get_access_roles` |
| Report analysis | `get_monthly_summary_report`, `get_attendance_summary_report`, `get_delayed_check_in_report`, `get_extra_hours_summary_report` |

***

## 🔒 Security

* **Data safety:** no tool can create, edit or delete anything in Trackpilots.
* **Key handling:** your API key is checked when you sign in and held in server memory. It is not written to disk or logged.
* **Sign-out:** a server restart signs everyone out, so you may need to sign in again.
* **Revoke access:** delete the API key on the **API Keys** page. Every client that uses it loses access on its next request.

🔐 **Keep Your Key Private**

Never paste your API key into a chat, a shared document or a public repository.

***

## 🛠️ Troubleshooting

**The sign-in page says my key was rejected.**
Copy the key again from the **API Keys** page without extra spaces, then try once more.

**The sign-in page says "Sign-in expired".**
Sign-in requests expire after 10 minutes, and a server restart clears them. Start the connection again from your AI client.

**A tool returns an HTTP 500 error.**
The error comes from the Trackpilots API, not the MCP server. Try again later. Contact support if it keeps happening.

**The assistant can't find a user or team.**
Check that your account can see that person or team. Access follows the same rules as the rest of Trackpilots.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.