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

# MCP Server

> Connect Claude, Cursor, VS Code, Codex or any MCP client to your Classet data

The Classet MCP (Model Context Protocol) server lets an AI agent read your Classet data: jobs, candidates, applications, interviews, calls, scripts and knowledge. It is hosted, so there is nothing to install or build.

```
https://mcp.classet.ai/mcp
```

The server is read-only. Every tool is a read, and the server refuses to send anything but `GET` requests to the API, so an agent connected here cannot create, change or message anyone. To write, call the [REST API](/docs/api-reference/overview.md) from your own code.

## Before you start

1. Create an API key in [Developer Settings](https://app.classet.ai/settings/developers). The same key works for the REST API and the MCP server.
2. Put it in an environment variable. The configs below that read it keep the key out of files you commit:

```bash theme={null}
export CLASSET_API_KEY=your-api-key
```

## Install

> [tab] Claude Code
>
> ```bash theme={null}
> claude mcp add --transport http classet https://mcp.classet.ai/mcp --header "Authorization: Bearer $CLASSET_API_KEY"
> ```
>
> This command saves the key itself in your Claude Code settings on this machine. If `CLASSET_API_KEY` is not set in the shell where you run it, an empty header is saved and every call returns `401`; remove the server with `claude mcp remove classet` and add it again. After you rotate a key, do the same.
>
> To share the server with your team, or to keep the key out of the settings file, commit a `.mcp.json` at the project root instead. Each person sets `CLASSET_API_KEY` in their own shell:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "classet": {
>       "type": "http",
>       "url": "https://mcp.classet.ai/mcp",
>       "headers": {
>         "Authorization": "Bearer ${CLASSET_API_KEY}"
>       }
>     }
>   }
> }
> ```
>
> Run `/mcp` in Claude Code to confirm `classet` is connected.

> [tab] Cursor
>
> Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "classet": {
>       "url": "https://mcp.classet.ai/mcp",
>       "headers": {
>         "Authorization": "Bearer ${env:CLASSET_API_KEY}"
>       }
>     }
>   }
> }
> ```

> [tab] VS Code
>
> Add to `.vscode/mcp.json`. VS Code asks for the key the first time the server starts and stores it for you:
>
> ```json theme={null}
> {
>   "inputs": [
>     {
>       "type": "promptString",
>       "id": "classet-api-key",
>       "description": "Classet API key",
>       "password": true
>     }
>   ],
>   "servers": {
>     "classet": {
>       "type": "http",
>       "url": "https://mcp.classet.ai/mcp",
>       "headers": {
>         "Authorization": "Bearer ${input:classet-api-key}"
>       }
>     }
>   }
> }
> ```

> [tab] Codex
>
> Add to `~/.codex/config.toml`. Codex reads the key from the environment variable you name and sends it as a bearer token:
>
> ```toml theme={null}
> [mcp_servers.classet]
> url = "https://mcp.classet.ai/mcp"
> bearer_token_env_var = "CLASSET_API_KEY"
> ```

> [tab] Claude Desktop
>
> Claude Desktop's connector screen cannot send an API key header, so bridge to the server with [`mcp-remote`](https://github.com/geelen/mcp-remote). Add to `claude_desktop_config.json` and restart the app:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "classet": {
>       "command": "npx",
>       "args": [
>         "-y",
>         "mcp-remote",
>         "https://mcp.classet.ai/mcp",
>         "--header",
>         "Authorization:${CLASSET_AUTH_HEADER}"
>       ],
>       "env": {
>         "CLASSET_AUTH_HEADER": "Bearer your-api-key"
>       }
>     }
>   }
> }
> ```
>
> The header value sits in `env` because some clients mangle spaces inside `args`. This file holds your key in plain text, so do not share or commit it.

> [tab] Other clients
>
> Any client that supports remote MCP servers over Streamable HTTP with a custom header works. The usual shape:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "classet": {
>       "url": "https://mcp.classet.ai/mcp",
>       "headers": {
>         "Authorization": "Bearer your-api-key"
>       }
>     }
>   }
> }
> ```
>
> If your client only runs local servers, use the `mcp-remote` bridge from the Claude Desktop tab.

## Authentication

| | |
| - | - |
| Header | `Authorization: Bearer <key>`. `X-API-KEY: <key>` is also accepted |
| Scope | The key's organization. The server holds no credentials of its own and passes your key to the v2 API, which decides what it can see |
| Rate limit | Tool calls count against the same [rate limit](/docs/guides/rate-limits.md) as your REST requests |
| Transport | Streamable HTTP, `POST /mcp` only. Each request is independent; there is no session to keep open |

> [!NOTE]
>
> Sign-in with OAuth is not available yet, so connectors that only offer OAuth (the connector screens in claude.ai and ChatGPT) cannot connect. Requests from a browser page are refused.

Check a connection by asking your agent to call `get_organization`. It returns the organization the key belongs to.

## Available tools

### Read tools

| Tool | Description |
| - | - |
| `get_organization` | Your organization's configuration: enabled channels, candidate-facing number, phone regions, rate limit and webhook state. Call it first to check a key |
| `list_branches` | List branches |
| `list_users` | List the recruiters and admins in your organization |
| `list_tags` | List candidate tags, with how many candidates carry each. Not paginated; counts are sampled from up to 10,000 tagged candidates |
| `list_jobs` | List job postings. Filters: `state`, `branch_id`, `created_after`, `created_before`, `external_id`, `updated_since` |
| `get_job` | Get details of a specific job |
| `search_candidates` | Search by name, email, phone, or candidate IDs. Filters: `job_id`, `stage`, `source`, `disqualified`, `updated_since`; pages with `cursor` |
| `get_candidate` | Get detailed candidate information. Its `job_id` is the job shortcode |
| `get_candidate_messages` | Get SMS/email message history, newest first by default. Takes `page`, `limit` (max 100), `start_date`, `end_date`, `order` |
| `get_interview` | Aggregated interview: status, outcome, summary, extracted answers/custom data, latest transcript and recording URL (use `get_call` for evaluations) |
| `list_candidate_notes` | List recruiter notes and AI reviews on a candidate |
| `list_candidate_attachments` | List a candidate's files. Download URLs expire, so fetch them fresh |
| `list_candidate_activity` | List a candidate's activity timeline |
| `list_all_applications` | List applications across every job. Filters: `job_id`, `stage`, `outcome`, `source`, `status`, `updated_since`, `created_after`, `created_before`; pages with `cursor` |
| `list_applications` | List one job's applications. Filters: `stage`, `outcome`, `status`, `updated_since`, created and interview-sent dates |
| `get_application` | Get application details with screening results |
| `get_call` | Get call details including transcript |
| `list_candidate_calls` | Paginate raw call attempts for a candidate |
| `get_call_recording_url` | Get a stable, authenticated URL that streams a call's recording. Errors when the call has no recording |
| `list_scripts` | List interview scripts |
| `get_script` | Get a script with its tasks and questions |
| `list_knowledge` | List knowledge base entries. Filters: `scope`, `scope_id`, `entry_type` |
| `get_webhooks` | Get webhook configuration |

List tools return `{ data, meta }`. On `search_candidates` and `list_all_applications`, pass `meta.next_cursor` back as `cursor` until it is `null`. Every `page` starts at 1 and every `limit` is capped at 50 (100 on `get_candidate_messages`). Date filters named `created_*` and `interview_sent_*` take `YYYY-MM-DD`; `updated_since`, `start_date` and `end_date` take an ISO-8601 timestamp. `outcome` takes an interview outcome such as `qualified`, `unqualified` or `candidate_not_responsive`.

`get_candidate` and `get_interview` report `job_id` as the job's shortcode, while `get_application` and `get_call` report the v2 `jobs.id`. The `job_id` filter on `search_candidates` and `list_all_applications` accepts either.

### Prompts

| Prompt | Description |
| - | - |
| `migrate_from_v1` | Walks your agent through moving a v1 integration to v2. It links the [migration guide](/docs/guides/migration-from-v1.md) and the `classet-v2-migration` skill, checks your key with `get_organization`, and lists the changes that break integrations silently, such as job applications without calls, stop-interview `409`s and polling. |

## Example prompts

Once configured, you can ask your AI agent things like:

* "Show me all open jobs" (`list_jobs` with `state: published`)
* "Search for candidates named Sarah" (`search_candidates`)
* "What were the results of the last call for candidate X?" (`get_interview`)
* "Compare qualified rate by source for screens created this month" (`list_all_applications` with `created_after`, grouped by `source`)
* "Which extracted certifications are most associated with a qualified outcome?" (`list_all_applications`, comparing `interview_custom_data` with `interview_outcome`)

For safe query patterns and metric definitions, see [Reporting with Classet](/docs/guides/reporting.md). MCP outputs can include candidate PII, so ask for aggregates by default and do not paste raw transcripts into unapproved tools.

## Troubleshooting

> [accordion] 401: Send your Classet API key
>
> The request had no key. Check that the `Authorization` header is set and that the environment variable it reads is exported in the shell that starts your client.

> [accordion] A tool returns 401 Invalid API key or API key expired
>
> The key reached Classet and was rejected. Create a new one in [Developer Settings](https://app.classet.ai/settings/developers) and update your client's config. Retrying with the same key will not help.

> [accordion] Every tool returns 404 Not found
>
> The key is valid but the v2 API is not turned on for your organization yet. Ask [success@classet.ai](mailto:success@classet.ai) to enable it.

> [accordion] 403: Origin not allowed
>
> The request came from a browser page. Connect from a desktop or command-line client, or from your own server.

> [accordion] 405: Method not allowed
>
> The server answers `POST /mcp` only. A client set to the older SSE transport sends a `GET`; switch it to Streamable HTTP (`"type": "http"`).

> [accordion] There are no tools for creating or updating
>
> That is by design. The hosted server is read-only. Use the [REST API](/docs/api-reference/overview.md) for writes.

> [accordion] A tool returns 429
>
> You hit your organization's rate limit. See [Rate limits](/docs/guides/rate-limits.md) and ask the agent for fewer, larger pages.

## Related

> [card] [Build with an AI agent](/docs/guides/agents.md)
>
> The agent skill, `llms.txt` and the OpenAPI spec, for agents that write integration code.

> [card] [Connect Classet to your ATS](/docs/guides/ats-integration.md)
>
> Send applicants in, get interview results back.


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