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

# MCP Integration

> Connect AI tools and agents to the Living Security Platform with the Model Context Protocol (MCP).

The Living Security MCP server lets an AI tool or agent read your workforce
risk, activity, training and phishing data, and run the actions MCP allows.
Any standard MCP client can connect: Claude, ChatGPT, Cursor, VS Code, Copilot
Studio, or your own agent.

This page is the canonical reference for MCP access, approvals and limits.
For step-by-step client setup, see [MCP setup](https://docs.livingsecurity.com/developers/developer-hub/mcp.md).

## Before you start

* In the original access model, only Owners and Admins can connect. With role-based MCP access enabled, a person with **Connect an AI client** in a [custom role](https://docs.livingsecurity.com/features/settings/roles.md) can also connect. See [Who can connect](#who-can-connect).
* AI must be on for the organization. A person's **No AI** restriction blocks their connection even when organization AI is on.
* **MCP access is off by default.** An Owner or Admin turns it on (see below).

## Connection details

| Item | Value |
| - | - |
| Protocol | MCP over Streamable HTTP |
| Server URL, US | `https://api.us-east-1.livingsecurity.ai/api/v1/mcp` |
| Server URL, EU | `https://api.eu-west-1.livingsecurity.ai/api/v1/mcp` |
| Sign-in | OAuth 2.0 authorization code with PKCE (S256), in the browser |
| Scopes | `openid mcp:tools` |

Use the URL for your organization's region. The **MCP** tab of the
[Developer Hub](https://docs.livingsecurity.com/developers/developer-hub/overview.md) shows the exact URL. If
your Hub has no **MCP** tab yet, open **Settings → Integrations & Developers →
MCP Server**.

**Interactive OAuth uses a person's account.** Tool calls use that person's access. For automation, an organization with MCP and role-based MCP access enabled can use an authenticated service account with permission grants.

## Turn on MCP

**1. Open the MCP settings**

Open the Developer Hub **MCP** tab. If your Hub has no **MCP** tab yet, open
**Settings → Integrations & Developers → MCP Server**.

**2. Allow MCP clients**

Turn on **Allow MCP clients** in the **MCP** tab, or **Enable MCP Access** on
the MCP Server page. You cannot turn it on while AI is off.

**3. Generate a client secret (only if your client asks for one)**

Most clients register themselves and need no secret. A client that cannot
register itself uses your Organization ID as the **Client ID** and a
generated **client secret**. That client must send the secret on every token
request. Store the secret in a secrets manager. When you revoke the secret,
the client can no longer sign in or refresh its tokens.

## Sign-in and consent

1. The client opens a Living Security page in the browser. The page names the
   client and the address it sends you back to. Continue only if you started
   the connection yourself. If someone sent you the link, select **Cancel**.
2. You sign in with your Living Security login.
3. The client gets an access token and a refresh token.

Your approval is remembered for 30 days for the same client, return address
and scope.

Sign-in sends you back only to these addresses:

* a loopback address on any port: `http://localhost`, `http://127.0.0.1` or
  `http://[::1]`, for desktop apps and command-line tools
* the published callback of a supported client: Claude, ChatGPT, Cursor,
  VS Code or Copilot Studio

Any other return address is refused. To connect another web-based client,
contact Living Security support.

The client must use PKCE with `S256`. A token from MCP sign-in works only with
the MCP server; other Living Security APIs refuse it.

## Choose the organization

A connection belongs to one organization: the first organization you belong
to that has MCP turned on. You cannot choose another organization with a
header. A request whose `x-organization-id` header names a different
organization is refused with `403`.

To connect a different organization, use a dedicated account that belongs only
to that organization. This also follows the least-privilege advice below.

## Connect your client

Follow [MCP setup](https://docs.livingsecurity.com/developers/developer-hub/mcp.md) for Claude, Claude Code,
ChatGPT, Cursor, VS Code, Copilot Studio, the OpenAI Responses API, and your
own agent.

Call `tools/list`, then call `get_organization_info` to confirm the
organization.

`tools/list` shows only the tools the signed-in person can run. Their role
and your organization's products decide the list. A tool that needs approval
in the dashboard stays in the list, marked as needing approval. When a role
changes, the next `tools/list` call shows the new list.

> [!NOTE]
>
> Don't see a tool list that matches each person's role? It's rolling out gradually. Contact your account manager to request access.

## Access and limits

### Who can connect

In the original access model, only Owners and Admins can connect. With role-based MCP access enabled, the person needs **Connect an AI client**, which Owners and Admins have by default. For other people, add it to a [custom role](https://docs.livingsecurity.com/features/settings/roles.md) or use **Give access** in Developer Hub. A personal **No AI** restriction applies in both modes.

Connecting gives the client no more than the person's role. A role that can
see people but not human risk scores gives a client that can see people but
not human risk scores.

### Give access from Developer Hub

With role-based MCP access enabled, on **Settings → Integrations & Developers → Developer Hub → MCP → Access**, people who manage MCP integrations can:

* See **People who can connect** — everyone whose role already includes **Connect an AI client**, with whether they have a client connected now.
* Select **Give access** to add the **MCP user** role (or another role that includes **Connect an AI client**) to one or more people. The **MCP user** role adds only the connect permission; it does not broaden data access beyond the person's existing roles.

To remove access later, change the person's roles in **Settings → Roles & Permissions** or **User Management**.

> [!NOTE]
>
> Don't see the **Connect an AI client** permission? It's rolling out gradually. Contact your account manager to request access.

### Scopes

A client asks for scopes when it signs in. The consent page lists them in
plain words before the person signs in.

| Scope | Grants |
| - | - |
| `mcp:tools` | Every tool the person's role allows. Clients use this by default. |
| `mcp:read` | Only tools that read data, never tools that change it. |
| A public API permission, such as `hri:read` or `entity:read` | Only the tools mapped to that permission. Ask for several to combine them. |

#### `mcp:read` or `mcp:tools`

* Ask for `mcp:tools` when the client needs everything the person's role
  allows, including tools that change data.
* Ask for `mcp:read` when the client must not change anything. It gets every
  read the role allows, in every area.
* Ask for permission scopes, such as `hri:read` and `training:read`, when the
  client needs only some areas. This is the narrowest choice.

Scopes combine. `mcp:read` with `training:write` can read everything and also
assign training, so the consent page no longer says "no changes".

#### Permission scopes in plain words

The consent page shows each permission scope in these words.

| Area | Scope | The client can |
| - | - | - |
| Workforce | `entity:read` | See people and their details |
| Workforce | `identifier:read` | See people's email addresses and other identifiers |
| Workforce | `membership:read` | See group memberships |
| Workforce | `cohort:read` | See cohorts |
| Workforce | `person:write` | Change people's details |
| Training | `course:read` | See courses |
| Training | `training:read` | See training assignments |
| Training | `training:write` | Assign and change training |
| Phishing | `simulation:read` | See phishing simulations and results |
| Phishing | `simulation:write` | Create and change phishing simulations |
| Risk | `hri:read` | See human risk scores |
| Risk | `signal:read` | See risk signals |
| Risk | `front_door_case:read` | See Front Door cases |
| Risk | `outcomes:read` | See outcomes |
| Risk | `goal:read` | See goals and progress |
| Risk | `reporting:read` | See reports |
| Playbooks | `playbook:read` | See playbooks and their runs |
| Playbooks | `playbook:write` | Create, change and run playbooks |
| Organization | `organization:read` | See organization settings |
| Organization | `organization:admin` | Change organization settings |
| Organization | `activity:read` | See activity history |
| Organization | `audit_event:read` | See the audit log |
| Organization | `integration:read` | See integrations |
| Organization | `role:assign` | Assign roles |
| Developer access | `access_key:manage` | Manage API access keys |
| Developer access | `service_account:manage` | Manage service accounts |
| Developer access | `webhook:manage` | Manage webhooks |
| Developer access | `webhook_endpoint:manage` | Manage webhook endpoints |

A scope never adds rights: a tool call still needs the person's role and your
organization's products. A tool call outside the token's scopes returns `403`
with `error="insufficient_scope"` and the scope it needs in the
`WWW-Authenticate` header, and the refusal is written to the audit log.

> [!NOTE]
>
> Don't see scopes narrower than `mcp:tools`? It's rolling out gradually. Contact your account manager to request access.

### Organization allow-list

The allow-list sets what any MCP client in your organization may do, whoever
signs in and whatever scopes the client asks for. Set it in **Settings →
Developer Hub → MCP → Access**, under **What AI clients may do**. Each group of
permissions is **Off**, **Read only** or **Read and write**.

| Group | Permissions |
| - | - |
| Workforce | `entity:read`, `identifier:read`, `membership:read`, `cohort:read`, `person:write` |
| Training | `course:read`, `training:read`, `training:write` |
| Human risk | `hri:read`, `signal:read` |
| Simulations | `simulation:read`, `simulation:write`, `front_door_case:read` |
| Actioning | `playbook:read`, `playbook:write` |
| Reporting | `reporting:read`, `outcomes:read`, `goal:read`, `activity:read`, `audit_event:read` |
| Administration | `organization:read`, `organization:admin`, `integration:read`, `role:assign`, `access_key:manage`, `service_account:manage`, `webhook:manage`, `webhook_endpoint:manage` |

* **Every group starts at Read only.** Tools that change data stay blocked
  until you allow writes for their group.
* A blocked tool does not appear in `tools/list`. A call to it returns `403`
  and is written to the audit log.
* Tools that need no permission scope are blocked while the list applies.
  This includes Livvy: the tools Livvy runs on its own cannot be limited by
  this list yet, so MCP clients cannot reach Livvy.
* Each change is written to the audit log with the old and new levels.
* The **MCP → Tools** view marks each tool **Allowed by your allow-list** or
  **Blocked by your allow-list**.

> [!NOTE]
>
> Don't see the allow-list? It's rolling out gradually. Contact your account manager to request access.

### Per-client access

The allow-list applies to every client. To give one client less, set its own
limits. For example, a ticketing agent can read only Workforce and Human risk,
while a person's Claude keeps everything the allow-list and their role allow.

1. Go to **Settings → Developer Hub → MCP → Access → Connected clients**.
2. Open the row menu for the client and select **Edit access**.
3. Choose what the limits apply to:
   * **All connections of this client** applies to everyone who connects with
     that client, now and later.
   * **This person's connection** applies only to that person on that client,
     on top of the client's limits.
4. Set each group to **Off**, **Read only** or **Read and write**, and turn the
   actions on or off: **Send messages outside Living Security**, **Delete or
   overwrite data** and **Start campaigns or playbooks**.
5. Select **Save**, then check **Can use now** after it updates. It shows
   saved access, not unsaved changes.

Client limits only narrow access. They never give more than the allow-list,
the person's role or the token's scopes:

* A level the allow-list does not allow is locked and shows **Limited by your
  organization's allow-list**.
* On **This person's connection**, a level or action the client's limits turn
  off is locked and shows **Limited by this client's access**.
* A tool outside the client's limits, or one that does an action the limits
  turn off, does not appear in `tools/list`. A call to it returns `403
  tool_not_allowed` and is written to the audit log with the client's name.
* Each change is written to the audit log with the old and new limits.

To remove the limits saved for the selected target, select **Reset to
organization default**. The allow-list and any other saved limits still apply.
For example, after you reset **This person's connection**, the client's limits
still apply to that person.

A client that registers itself can register again with a new client ID, for
example after a reinstall. Limits follow the client ID, so check new rows in
**Connected clients** and set their limits too.

People who manage MCP integrations, including Owners and Admins, can edit access. For an authenticated service account, configure the account's own permission grants.

> [!NOTE]
>
> Don't see per-client access? It's rolling out gradually. Contact your account manager to request access.

These checks limit access:

| Check | Effect |
| - | - |
| MCP turned on | Off by default. When off, nobody can connect. |
| Role | Only Owners and Admins can connect in the original access model. With role-based access enabled, a person needs **Connect an AI client**. |
| Organization allow-list | A tool in a group that is off, or a write in a read-only group, is hidden and refused. See [Organization allow-list](#organization-allow-list). |
| Client access | A tool outside one client's own limits, or one that does an action they turn off, is hidden and refused. See [Per-client access](#per-client-access). |
| Token scopes | A tool outside the token's scopes is refused with `403`. See [Scopes](#scopes). |
| AI turned on | Turning off organization AI blocks connections. A personal **No AI** restriction blocks that person’s connection. |
| Per-tool permission | Each tool call is checked against the person's role, as in the dashboard. |
| Products | Tools for products you do not have refuse with an "entitlement required" message. |
| Approval | A tool that Livvy would ask a person to approve never runs over MCP. See [Approvals](#approvals). |

### Rate limits

| Limit | Value | When you reach it |
| - | - | - |
| Tool calls | 60 `tools/call` requests per minute for each person in each organization | `429 Too Many Requests` with a `Retry-After` header in seconds. Wait that long, then retry. |
| All requests | 100 requests per minute from one IP address | `429 Too Many Requests`. |
| Tool result size | 100,000 characters for each tool result | The result is cut and ends with a note that says it was truncated and gives its full length. Narrow the request, for example with filters or a smaller limit, to see the rest. |

`initialize` and `tools/list` do not count toward the tool call limit. Each
`tools/call` in a JSON-RPC batch counts as one call.

### Transport and browser clients

The server supports only Streamable HTTP. The older HTTP+SSE transport is not
available. A request that a web browser sends from another website's origin is
refused with `403`. Desktop apps, command-line tools and server-side agents send
no `Origin` header and are not affected.

## Approvals

Text that an AI client reads, such as tickets, emails or web pages, can carry
hidden instructions. So MCP never runs a tool that Livvy would pause for a
person's approval. These tools return a result with the code
`approval_required` and change nothing:

* tools that always need approval
* tools that delete or overwrite data
* tools that send something outside Living Security, such as an email or a
  message
* tools that need approval when the request includes outside content

To run one of these actions, ask Livvy in the dashboard, where you approve it.
The Developer Hub **MCP → Tools** view marks each of these tools **Approve in
Livvy** and gives the reason.

## Activity and audit

Every tool call, including a refused one, is recorded in your organization's
audit log. The audit entry keeps the tool's arguments after sanitizing them:
identifiers such as IDs, names and email addresses stay, and secrets and
free-text content, such as message bodies, are removed. Tool results are not
stored.

The Developer Hub **MCP → Activity** view lists each call with its tool,
client, person, status and latency. It does not store arguments or results.
It also lists calls refused before a tool ran, for example because MCP access
is off or a tool is outside the token's scopes, your allow-list or the
client's limits, with the reason. Select **Refused** to see only those calls. With role-based access, a
**Scope** column shows the permission each tool needs.

## Least privilege

An Owner or Admin connection lists many tools. Tools that read data run at
once with the person's permissions.

Narrow access at every layer:

1. **Role.** Give the connecting account a [custom role](https://docs.livingsecurity.com/features/settings/roles.md)
   with **Connect an AI client** and only the permissions the workflow needs.
2. **Allow-list.** Turn off the groups your organization does not use with AI
   clients, and keep the rest at **Read only** unless a workflow must change
   data.
3. **Client access.** Give each integration's client its own limits, and
   turn off the actions it does not need. See
   [Per-client access](#per-client-access).
4. **Scopes.** Ask for permission scopes, or `mcp:read`, instead of
   `mcp:tools`.

> [!WARNING]
>
> Use least privilege. Connect with a dedicated account used only by the
> integration, and allow-list in your client only the tools your workflow needs.
> Some tools that run over MCP still change data, for example by creating or
> updating records.
> Keep tokens and secrets in a secrets manager, never in tickets, logs or prompts.
> When the integration owner leaves, remove the dedicated account and revoke the
> client secret.

If you need credentials that cannot change data, use the
[`/v1` Public API](https://docs.livingsecurity.com/developers/v1/authentication) with a service account. Grant
it only `:read` permissions. A service account can also hold write permissions,
so its credentials are read-only only when you grant read permissions alone.

## Ticketing, SOAR and other unattended automation

Interactive OAuth signs in a person. If your organization has MCP and role-based MCP access enabled, an automation can instead use an authenticated service account with the permissions required for its job.

To connect the automation with its own MCP credential:

1. In **Developer Hub → MCP → Access**, find the active account under **Service accounts**. A person who manages MCP integrations can select **Credentials → Add OAuth client** when credential issuance is available. Choose the MCP scopes the job needs from the permissions that the account and organization allow, then select **Create client**.
2. Save the client ID and the one-time client secret in your server-side secret manager. Record the **Token endpoint** and **Audience** displayed for this MCP client.
3. Have the automation authenticate to that token endpoint with its client ID and secret and request `grant_type=client_credentials` with the scopes the job needs and the displayed MCP audience. Send the returned access token as `Authorization: Bearer <access_token>` to the organization's MCP URL shown in the Developer Hub.
4. Before the access token expires, request another token with the same client credentials and MCP audience. This grant does not use a refresh token.

For other unattended integrations:

* To call Living Security from a ticketing system, a SOAR playbook or a
  scheduled job, use the [`/v1` Public API](https://docs.livingsecurity.com/developers/v1/authentication) with
  a service account that holds only the permissions the job needs.
* If you need MCP and service-account access is unavailable, use interactive OAuth with a dedicated account that meets the connection requirements. Store its refresh token in a secrets manager.

## Example: a read-only ticket-enrichment agent

This agent adds context to security tickets: who the person is, their human
risk, their training, and their recent activity. It must never change data.

**1. Create a role for the agent**

In **Settings → Roles & Permissions**, create a custom role. Give it **Connect an AI
client**, and read access to people, human risk, training and activity.
Give it no permission that changes data.

**2. Create a dedicated account**

Add a user that the agent alone uses, for example
`ticket-agent@your-company.com`, and give it the new role.

**3. Set the allow-list**

In **Settings → Developer Hub → MCP → Access**, under **What AI clients may
do**, set **Workforce**, **Training**, **Human risk** and **Reporting** to
**Read only**. Activity is in Reporting. Set **Simulations**, **Actioning**
and **Administration** to **Off**, unless other clients need them.

**4. Ask for read scopes**

Configure the client to ask for these scopes, separated by spaces:
`entity:read identifier:read hri:read signal:read training:read activity:read`.
The consent page lists each one in plain words. Check that every line starts
with "See".

**5. Check the connection**

In the MCP client, sign in as the dedicated account. Call `tools/list`: it
lists only reading tools, such as `search_users`,
`get_person_security_context`, `explain_user_risk`, `query_training_records`
and `query_activities`.

Then, as an Owner or Admin in the dashboard, open **MCP → Tools**: the tools
you expect are **Allowed by your allow-list**. After the first calls,
**MCP → Activity** shows them. The agent's own role cannot open these views,
and it does not need to.

**6. Limit the agent's client**

Other clients may need more than this agent. To keep this agent to reads even
if the allow-list later opens writes, open the agent's row in **Connected
clients**, select **Edit access**, and choose **All connections of this
client**. Set **Workforce**, **Training**, **Human risk** and **Reporting** to
**Read only** and the other groups to **Off**. Turn off all three actions,
then select **Save**. See [Per-client access](#per-client-access).

If the agent calls a tool outside these scopes, the server refuses it with
`403` and the call appears under **Refused** in the Activity view.

## Related

> [card] [Integrations Overview](https://docs.livingsecurity.com/integrations/overview.md)
>
> Browse all available integrations.

> [card] [Public API Authentication](https://docs.livingsecurity.com/developers/v1/authentication.md)
>
> Unattended access with service-account credentials. Grant only read permissions for read-only access.


## Related topics

- [Legacy Public API](https://docs.livingsecurity.com/developers/public-api/overview.md)
- [Integrations Overview](https://docs.livingsecurity.com/integrations/overview.md)
- [Slack Integration](https://docs.livingsecurity.com/integrations/outbound/slack.md)


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