Developers

MCP server

Connect an AI client to Attia's MCP server, signed in or with a personal API key, and the tools it gets.

Overview

The Model Context Protocol (MCP) server gives any compatible AI model or agent a standard way to read and change your Attia data.

Connect to the server natively in Claude, ChatGPT, Claude Code, Codex, Cursor and VS Code, or use the mcp-remote module for clients that do not support remote MCP. Its tools find and read jobs, applications, candidates, statuses, labels, comments, job updates, documents and images. With write access, they also create unpublished jobs and labels, change jobs, labels, candidates and applications, and move an application to another status. They write comments, job updates and documents, mark notifications read or unread, upload images and files, and delete comments, job updates and files on applications. It answers the same way the Attia API does, as you: with your permissions and your teams, and only what your API key or your sign-in allows.

Signing in works on every plan. An API key works on Business and Enterprise, as it does on the API.

Setup

General

The server uses Streamable HTTP, at this address:

https://mcp.attia.app/mcp

For read-only access, connect to https://mcp.attia.app/mcp/readonly, which only ever exposes read tools.

Claude and ChatGPT sign in in the browser. The other clients below send a personal API key in the Authorization: Bearer <API key> header. Create one under Settings → Security & access → Personal API keys, as Getting started describes. For read-only access with your own key, create a key with only the Read permission. To read applications and candidates as well, add Read candidate data. What leaves Attia explains what that sends.

A client that signs in opens Attia in your browser, where you choose the workspace and approve the client. If the workspace requires an admin to approve apps first, select Request approval, and connect again once an admin approves.

Nobody creates an app for a client that signs in: it registers itself the first time it connects. The browser page names it by the host of its client ID, such as client.example.com, or by the name it registered. Once you approve it, or ask an admin to, it is listed under Settings → Authorized applications. MCP clients that register themselves has the details for client developers.

The examples read the key from an environment variable, so set it first:

export ATTIA_API_KEY="attia_api_..."

Claude

Claude's connectors, on claude.ai and in Claude Desktop, sign in to an MCP server with OAuth. Add a custom connector with the address https://mcp.attia.app/mcp, then connect it. Claude opens Attia in your browser: choose the workspace and select Approve. Claude then calls the tools as you, in that workspace.

ChatGPT

ChatGPT connects to a custom MCP server with OAuth sign-in and cannot send an API key. Add Attia's server with the address https://mcp.attia.app/mcp and OAuth as its sign-in. ChatGPT opens Attia in your browser: choose the workspace and select Approve. ChatGPT then calls the tools as you, in that workspace.

Claude Code

claude mcp add --transport http attia https://mcp.attia.app/mcp \  --header "Authorization: Bearer $ATTIA_API_KEY"

Then run /mcp once you've opened a Claude Code session to check that attia is connected.

Codex

The setup is the same for the IDE extension and the CLI, since they share the configuration.

Configuration via CLI:

Run the following command in Terminal:

codex mcp add attia --url https://mcp.attia.app/mcp --bearer-token-env-var ATTIA_API_KEY

Configuration through the config file:

  1. Open the ~/.codex/config.toml file in your preferred editor.
  2. Add the following:
[mcp_servers.attia]url = "https://mcp.attia.app/mcp"bearer_token_env_var = "ATTIA_API_KEY"

Codex reads the key from ATTIA_API_KEY each time it starts the server.

Cursor

Add the server to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project to use it there only:

{  "mcpServers": {    "attia": {      "url": "https://mcp.attia.app/mcp",      "headers": {        "Authorization": "Bearer ${env:ATTIA_API_KEY}"      }    }  }}

Visual Studio Code

  1. CTRL/CMD + SHIFT + P and search for MCP: Open User Configuration.
  2. Add the following, and save:
{  "inputs": [    {      "type": "promptString",      "id": "attia-api-key",      "description": "Attia API key",      "password": true    }  ],  "servers": {    "attia": {      "type": "http",      "url": "https://mcp.attia.app/mcp",      "headers": {        "Authorization": "Bearer ${input:attia-api-key}"      }    }  }}
  1. Start the server using MCP: List Servers, selecting attia, and selecting Start Server. VS Code asks for the key the first time and stores it.

Others

Many other tools support MCP servers. Configure them to use Attia's MCP server with the following settings:

  • Command: npx
  • Arguments: -y mcp-remote https://mcp.attia.app/mcp --header Authorization:${AUTH_HEADER}
  • Environment: AUTH_HEADER=Bearer <API key>

Or, as JSON:

{  "mcpServers": {    "attia": {      "command": "npx",      "args": [        "-y",        "mcp-remote",        "https://mcp.attia.app/mcp",        "--header",        "Authorization:${AUTH_HEADER}"      ],      "env": {        "AUTH_HEADER": "Bearer attia_api_..."      }    }  }}

Write the header with no space after the colon and keep the space inside AUTH_HEADER. Some clients, Cursor and Claude Desktop on Windows among them, break an argument that contains a space.

Tools

The server has these tools. Each one answers what the matching API operation answers, for the same filters and page size.

ToolWhat it doesPermission
list_jobsList jobsRead
get_jobGet a job, or its title and job ad in one of its languagesRead
create_jobCreate a job, Unpublished, in a team you can create jobs inWrite
list_applicationsList applicationsRead candidate data
get_applicationGet an applicationRead candidate data
list_candidatesList candidatesRead candidate data
get_candidateGet a candidateRead candidate data
whoamiSay which member, workspace and permissions you are connected withRead
get_workspaceGet the workspaceRead
list_teamsList teamsRead
get_teamGet a teamRead
list_membersList membersRead
get_memberGet a memberRead
list_statusesList application or job statusesRead
get_statusGet a statusRead
list_application_labelsList application labelsRead
list_job_labelsList job labelsRead
list_job_commentsList the comments on a jobRead
list_application_commentsList the comments on an applicationRead candidate data
list_candidate_commentsList the comments on a candidateRead candidate data
get_job_updatesList the updates on a jobRead
list_documentsList documentsRead
get_documentGet a documentRead
list_viewsList the views you can see, each with the address that opens itRead
list_templatesList job and document templatesRead
get_templateGet a template, with its textRead
list_skillsList your Agent skills and your teams' skillsRead
get_skillGet a skill, with its instructionsRead
search_documentationSearch Attia's help pagesRead
get_notificationsList your own notifications, the ones your Inbox showsRead
mark_notificationMark one of your notifications read or unreadWrite
save_commentWrite a comment on a job, a job update, an application, a candidate or a document thread, or edit one you wroteWrite
save_job_updatePost an update on a job, or edit one you wroteWrite
save_documentCreate a document on a team or a job, or change one with its idWrite
save_application_labelCreate an application label or group, or change one's name, color or descriptionWrite
retire_application_labelArchive an application labelWrite
restore_application_labelUnarchive an application labelWrite
save_job_labelCreate a job label or group, or change one's name, color or descriptionWrite
retire_job_labelArchive a job labelWrite
restore_job_labelUnarchive a job labelWrite
save_jobChange a job you can edit, set its labels and add links, add or change its title and job ad in another language, or create a job without an id as create_job doesWrite
prepare_file_uploadGet a link to upload an image to, and the Markdown that shows itWrite
extract_imagesGet the images in a Markdown body, each with a link that works for 60 secondsRead
save_candidateUpdate a candidate's name, headline, location, phone number or email addressWrite candidate data
set_candidate_labelAttach a label to a candidate, or remove itWrite candidate data
save_applicationUpdate an application: move it to another status, or change its assignee, delegate, labels or linksWrite candidate data
get_attachmentGet a link on a job, or a file on an application or a candidate with a download linkRead, and Read candidate data for a file
prepare_attachment_uploadPrepare the upload of a file to an application or a candidate, and get the link to send it toWrite candidate data
create_attachment_from_uploadAdd the uploaded file to its application or candidateWrite candidate data
delete_commentDelete a comment you wroteWrite, and Write candidate data for a comment on an application or a candidate
delete_job_updateDelete an update on a jobWrite
delete_attachmentDelete a file on an applicationWrite candidate data
list_interviewsList interviewsRead candidate data
get_interviewGet an interviewRead candidate data
create_interviewBook an interview at a fixed time, without telling the candidateWrite candidate data
update_interviewMove an interview and send the candidate its updated detailsWrite candidate data
cancel_interviewCancel an interview and send the candidate a cancellation messageWrite candidate data
create_booking_requestPropose a booking request. A member must approve each request in their Attia Inbox before the candidate receives itWrite candidate data
list_availabilityList the free interview times for a hostRead candidate data

The server lists only the tools your key's permissions, or the access you approved, allow. create_job, save_job, mark_notification, save_comment, save_job_update, save_document and prepare_file_upload need the Write permission, so they do not appear for a key with only the Read permission, and they never appear on /mcp/readonly. The job starts as a draft that you finish in the app. save_job with an id changes only the fields you give, as Update a job describes. It cannot change a job's status, publish status, visibility, career sites, job boards or team, and a call that names one of them is refused: you publish in the app. save_comment and save_job_update create a record when you leave out id and edit the one you name when you give it, as the comment and job update operations do. A comment on an application or a candidate also needs Write candidate data. save_document with an id changes that document, and without one creates a document, as Documents describes. save_candidate, set_candidate_label, save_application, prepare_attachment_upload and create_attachment_from_upload need Write candidate data, and they never appear on /mcp/readonly either. save_candidate only updates a candidate. Called without an id, it answers that creating a candidate is not available yet.

get_job and save_job take language for a job's other languages, as Job languages describes. get_job with language adds the job's languages, the main_job_ad_version of its own job ad, and the id, title, job ad and version of that language. In the main language, that is the job's own title and job ad. save_job with an id and language adds that language or changes it, and takes only title, job_ad, version, translation_id, main_title and main_job_ad_version besides. Send the job's title as main_title and the main_job_ad_version that get_job answered. To change a language the job has, also send its id as translation_id and its version. A stale value is refused, and nothing changes. save_job without an id takes no language.

save_application changes only the fields you give, as PATCH /api/v1/applications/{id} does. It takes the exact name of a status, and a name that matches none is refused with the list of names. Its result says what the move did: the old and new status, whether an email to the candidate is queued, and which automations started. It never changes the review value or the summary.

prepare_file_upload takes the image's name, type and size and returns a signed upload link. The AI uploads the bytes to that link and then puts the Markdown in a document, a comment or a job update. get_document, the three comment lists and get_job_updates return that Markdown in body_markdown. Storage fixes an upload link at two hours, and Attia cannot make it shorter. Images has the types, the size limit and the steps.

A key without the permission a tool needs gets an error from that tool with the code insufficient-scope, and no data. A signed-in client that calls one of those seven without write access is refused with insufficient_scope, so the client can ask you to sign in again and approve write access. The tools that need Read candidate data work the same way for a signed-in client while an admin lets the client read candidate data: they appear, and the first call asks you to sign in again and approve candidates:read. A signed-in client that calls save_candidate, set_candidate_label, save_application or one of the two upload tools without candidates:write, while an admin lets it read candidate data, is refused with insufficient_scope too, so it can ask you to approve candidates:write.

The label tools need the Write permission too, and the right the app's label settings give to manage those labels. save_application_label and save_job_label create a label when you leave out id and change that label when you give one. A signed-in client without write access is refused as for create_job. Labels has the rules.

delete_comment, delete_job_update and delete_attachment delete what they name, as Delete does in the app, and answer its id with deleted: true. delete_comment deletes only a comment you wrote, and no tool deletes or redacts someone else's. delete_job_update deletes any update on a job you can read. delete_attachment deletes only a file on an application, which Attia keeps for 30 days before it removes it for good. None of them appears on /mcp/readonly, and a signed-in client without the access one needs is refused with insufficient_scope, as for the other write tools. Delete a comment and Delete an application file have the rules.

What leaves Attia

When the AI calls a tool, Attia's answer leaves Attia and goes to the AI service you connected, which handles it under its own terms. The server returns only what your key or your sign-in can read: what you can see in the workspace, limited further by the key's permissions and teams, or by the access you approved.

Comments and updates on a job need only Read, and they carry whatever people wrote there, a candidate's name included. Messages to candidates are not comments, and no tool reads them.

Applications, candidates and the comments on them carry candidate data. Their tools need the Read candidate data permission, which the API names candidates:read. A key can hold it only while an admin has turned on Candidate data in the API in Settings → API, and turning the switch off takes it from every key. A key without Read candidate data sends no application, no candidate and no comment on either to the AI service. A job's comments and updates need only Read, and what someone wrote there can name a candidate. A signed-in client gets candidate data only while an admin has also turned it on for that client under Settings → Authorized applications, and only after you approve candidates:read. Both switches are off by default, and turning either off stops it. Candidate data explains the two switches.

list_members and get_member send your colleagues' names, avatars, roles and team ids to the AI service on Read. They never send an email address or a login id.

get_notifications and mark_notification send your own notifications' ids, types, categories, targets and times, never their text, a name or who acted. A notification that names a candidate leaves only with Read candidate data. Without it, the list leaves the notification out and hidden_count counts it.

get_attachment sends a file's name, type and size and a download link that works for five minutes, and the link opens the file itself. It does so only with Read candidate data, and each read goes in the workspace's audit log. A link on a job leaves with Read. The two upload tools add a file the AI client sends: Attachments has the two steps and the file rules.

list_jobs and get_job also answer how many applications sit in each status. The counts need only Read, so they leave Attia with both switches off. They name no person and carry no gender or review score, but a count can be one.

Documents need only Read, so their titles and bodies leave Attia as people wrote them, including any name someone typed. Without Read candidate data the tools leave out a document linked to a candidate or an application, and a draft of the public applicant list. Documents has the rule. save_document answers with the document it wrote, as get_document does.

save_candidate sends back the candidate's name, headline and location, as get_candidate does, and set_candidate_label sends back only ids. What the AI sends with them changes the candidate in Attia.

get_template and get_skill send a template's text and a skill's instructions to the AI service on Read. search_documentation sends only Attia's public help pages.

extract_images sends a link to each image in the body you give it, on Read. An image can show anything, a candidate's name or face included, and the AI service can fetch it for 60 seconds. Every member of the workspace can read every image in it.

FAQ

Can I connect to more than one Attia workspace?

An API key belongs to one workspace, so each workspace needs its own separate authentication context. Add the server once per workspace, under a different name, each with that workspace's key.

If your client or the mcp-remote module supports a configuration directory (for example via MCP_REMOTE_CONFIG_DIR), point each workspace to a different path:

MCP_REMOTE_CONFIG_DIR=~/.mcp-auth/workspace-a npx -y mcp-remote https://mcp.attia.app/mcp --header "Authorization: Bearer $ATTIA_API_KEY_A"MCP_REMOTE_CONFIG_DIR=~/.mcp-auth/workspace-b npx -y mcp-remote https://mcp.attia.app/mcp --header "Authorization: Bearer $ATTIA_API_KEY_B"

Set up each configuration separately. For clients that manage their own auth storage, check the client's documentation for workspace-switching options.