> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/set-up-mcp-access.md).

# Set up MCP access

Turn on MCP for a role, choose which tools it can use, and revoke access.

An admin decides who can use the Drivetrain MCP server, and which tools they get, from the **MCP** setting on each role.

{% hint style="info" %}
**Before you start**

* You need to be able to edit roles in **Settings → Roles** (an admin).
* MCP must be included in your Drivetrain plan. If a role has no **MCP** row, it isn't. Contact your Drivetrain account team.
  {% endhint %}

## Give a role MCP access

1. Go to **Settings → Roles** and select the role.
2. Find **MCP** in the role's permissions.
3. Choose an option:

| Option         | What the role can use                |
| -------------- | ------------------------------------ |
| **All tools**  | Every read and write tool.           |
| **Read tools** | Every read tool. No write tools.     |
| **Custom**     | Only the tools you pick (see below). |
| **No access**  | Nothing. MCP clients are refused.    |

4. Save the role.

**New roles, and the All Users role, start with MCP set to No access.** Custom roles that existed when MCP access controls were introduced were set to **All tools**; review them. Admins always have every tool your plan includes, whatever the MCP setting shows.

### Pick tools with Custom

**Custom** shows a **Read tools** row and a **Write tools** row (a row is hidden if your plan includes no tools of that kind). In each row, select **Select tools**, choose one of the options below in the **MCP read tools** or **MCP write tools** picker, then select **Add**:

* **Select manually**: tick the tools the role can use. A tool added to Drivetrain later is **not** included until you tick it.
* **Apply automatically (Applies to any values added later)**: the role gets every tool in that row, including ones added later.

The pickers only list tools your plan includes. Tool names match [Drivetrain MCP tools](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/available-tools.md).

### Users with several roles

A user can use a tool if **any** of their roles allows it. A role set to **All tools**, or a row set to **Apply automatically**, gives every tool of that kind, whatever their other roles say.

### MCP access doesn't widen data access

The MCP setting only controls which tools a person can call. What each tool returns still follows the rest of their role: boards, metrics, dimensions, scenarios, datasets, and Lists. A few tools also need admin or **Full access** (see [Drivetrain MCP tools](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/available-tools.md)). Creating a board also needs the role's **Create board** toggle.

## Revoke access

| To                            | Do this                                                                                                                                                                                                                                                                                                                              | Takes effect          |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- |
| Stop one role using MCP       | Set **MCP** to **No access**                                                                                                                                                                                                                                                                                                         | On the next tool call |
| Remove one tool               | Untick it under **Custom** on every role that grants it. A role on **All tools**, or a row on **Apply automatically**, must first be switched to **Custom** and **Select manually**.                                                                                                                                                 | On the next tool call |
| Stop one person               | Make sure none of their roles grants MCP, or deactivate the user. For an admin, who always has MCP: deactivate them, or remove their admin role and make sure none of their other roles grants MCP. Removing the admin role doesn't stop their API key, and they can't reset it afterwards, so have them select **Reset Key** first. | On the next tool call |
| Cut off an API key connection | The key's owner selects **Reset Key** in **Settings → API Key**. API keys belong to admins, so the MCP setting doesn't affect them.                                                                                                                                                                                                  | Immediately           |

Data a person already fetched stays in their AI client's chat history.

## Next steps

* [Common MCP clients](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/connect-common-mcp-clients.md)
* [Troubleshooting MCP](https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/troubleshooting.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/extending-drivetrain/using-the-drivetrain-mcp-server/set-up-mcp-access.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
