# Credential access

Reaching an MCP server and signing in to the service behind it are two separate permissions. `mcp:connect` lets a caller reach a server and call its tools. `mcp:auth` lets a caller sign in upstream with a particular [upstream credential](/docs/ai-control-plane/mcp-gateway/access/upstream-credentials). A call needs both, and neither implies the other.

`mcp:auth` is granted on credentials, not on servers. A rule on a credential applies on every server that offers it, and which servers a caller reaches is still decided by `mcp:connect`. This keeps a shared service account to the callers entitled to spend it, even on a server that many more people can connect to.

## Access requirements

> Changing who can use a credential, and editing roles, requires `org:admin`. Changing an agent's credential access requires permission to manage that agent, and an agent can only be given credentials that both the person saving and the agent owner can use.

## The default: every credential for everyone

Every organization starts with a blanket grant. The default Admin and Member roles hold `mcp:auth` on **All credentials**, which covers every credential in the organization, including ones added later. Each person may also use the personal kind of credential, **Each person's own account**, for their own connection only. Nobody can ever use another person's connection.

The blanket grant means a new credential is usable by everyone in those roles from the moment it is added. That suits personal sign-ins, where each person only ever spends their own account. It rarely suits a service account or a static credential, which every caller spends as one shared identity.

The rest of this page narrows that grant. Two places do it:

- **The credential itself**, for one credential and the people, roles, or agents allowed to use it.
- **The role editor and the agent Permissions page**, for everything a role or an agent may use, split from **All credentials** down to kinds of credential and single credentials.

## Restrict one credential

Open the server, go to **Settings**, and click the credential in the **Identity** section. Its **Who can use this** list shows every rule that covers it. Rules that come from a wider grant are read-only and say where they come from, such as "From a rule covering every credential" or "From a rule covering all "Static credential" credentials".

Click "Add" to grant or block a person, a role, an agent, or **Everyone in the organization**, and set each to **Can use** or **Blocked**. Save with the sheet button, and the change applies wherever the credential is used. People still need access to each server.

Granting on the credential cannot take away access a wider rule gives. While the Member role holds **All credentials**, every member can still use the credential. To keep a credential to a few callers, either block the others on the credential, or split the wide rule as described below.

## Split the blanket grant in a role

Open **Roles & Permissions**, edit a role, and find **Upstream credentials** below **MCP Access**. Built-in roles can be edited here too: their name and description are fixed, their permissions are not. The table lists:

- **All credentials**, the blanket rule. When ticked, it reads "Including credentials added later".
- One row per kind of credential, such as **Service account** or **Static credential**, with the number of credentials of that kind. The personal kind is tagged **Own connection only**.
- Each credential, under its kind, with the servers it is used on.

A dashed tick means the row is covered by a wider rule, and hovering it names the rule. Unticking a single credential that inherits its tick splits the rules above it one level at a time and leaves only that credential off.

To split a rule by hand, open the row menu:

- **Split into kinds** on **All credentials** replaces the one rule with one rule per kind of credential.
- **Split into credentials** on a kind replaces the rule for that kind with one rule per credential.
- **Block** blocks the row, which wins over every other rule, including grants from other roles. **Remove block** lifts it.

A confirmation dialog explains the trade-off before splitting.

Splitting changes nobody's access at that moment, which is why saving a split on its own skips the review step. It does change what happens next. After splitting **All credentials**, a credential of a new kind is no longer covered. After splitting a kind, new credentials of that kind are no longer covered. Untick the rows the role must not use, then click "Save Changes". A change that gives new access is listed for review under **Upstream credentials** before saving.

A typical result for the Member role keeps **Each person's own account** ticked, so people keep using their own accounts on every server, and ticks only the shared credentials members are meant to spend.

Rules the table cannot show, such as a rule limited to one project or one upstream app, or a rule for a credential that no longer exists, are listed under **Other rules**. They are kept as they are when the role is saved.

### Check the result per server

The **MCP Access** grid of the role editor has a **Credentials** column that counts the credentials the role may use on each server: **All N**, **N of M**, or **None**. **No usable credential** marks a server the role can connect to but cannot sign in upstream through. Clicking the cell filters the credentials table to the credentials that server offers.

To check one person, open the server **Team Access** tab and pick them in the **Check access** card. The **Sign-in** row says whether the person has a credential to sign in upstream with, and "Show credentials" (with the count) lists each credential with its decision, **Can use**, **Blocked**, **No rule allows it**, or **Turned off**, and the rule that decided it.

## Agents

An agent needs `mcp:auth` on the credential its keys use, like a person does. The agent wizard grants it on all credentials by default. Narrow it on the agent **Permissions** tab, in the **Upstream credentials** panel, which uses the same table and row menu as the role editor. Click "Save" in the panel header to apply the change. Saving adds the new rules before removing the old ones, so a split never leaves a gap.

An agent can only be given a credential that both the person saving and the agent owner may use. When one of them cannot, the change is refused with "Some changes weren't saved: an agent can only be given credentials both you and its owner can use." Blocks have no such limit.

People can also stop an agent from using their own connection, in the **Your connections this agent can't use** panel on the same tab. See [Agent identity](/docs/ai-control-plane/identity/agents).

## API keys

An API key never inherits roles. It reaches an upstream only through credentials named in its own policy. On the **API keys** page, open the key in the **MCP access** column and use **Add a credential** to set each credential to **Allowed** or **Blocked**. An API key never uses a personal connection.

## What a caller without access sees

- **On the consent screen**, credentials the person may not use are left out of **Sign in to the service as**. When none is left, the screen says "You don't have access to any of the ways this server signs in. Ask an administrator for access."
- **On a call**, a caller whose chosen credential is no longer allowed gets "you don't have access to the connection this MCP server uses. Ask an organization administrator to grant access.", with a link to request access. The call is refused rather than sent through another credential.
- **Headless callers** get "you may not use any of a server's upstream credentials" when no credential they may use is offered.

Access is checked on every call, so removing or blocking a credential takes effect on the next call, without waiting for sessions to expire.

## Common problems

- **A grant on the credential did not restrict anyone.** A wider rule, such as **All credentials** on the Member role, still covers it. Block the callers that must not use it, or split the wide rule and untick the credential.
- **A new credential is usable by nobody in a role.** The role was split, and new credentials of that kind are no longer covered. Tick the new credential in the role, or keep the kind ticked if every credential of that kind should be covered.
- **Members can connect but every call fails to sign in.** The role shows **No usable credential** for the server. Tick a credential the server offers.
- **A person still has access after a role was narrowed.** Grants add up across roles, and a direct grant on the person counts too. A block wins over all of them. The **Check access** card on the server **Team Access** tab shows which rule decided.
- **A shared credential changed on more servers than expected.** Rules are per credential, and a shared credential is the same record on every server that uses it. Its sheet lists those servers under **Used on**.
- **An agent cannot be given a credential.** Either the person saving or the agent owner may not use it. Grant it to them first, or have someone who can use it save the change.

The [Platform MCP](/docs/ai-control-plane/reference/platform-mcp) exposes the same controls to agents: `get_mcp_access` lists which roles may use each shared credential, and `set_mcp_role_auth_client_access` allows, blocks, or clears one role's rule on one credential.

---

Index of every Speakeasy page for agents: [llms.txt](https://www.speakeasy.com/llms.txt). AI control plane and MCP gateway content in one file: [llms-full.txt](https://www.speakeasy.com/llms-full.txt). Any page is available as markdown by appending `.md` to its URL or by requesting it with `Accept: text/markdown`.
