AI and MCP

MCP Client Credentials for Operations Teams

Published 2026-11-29 · Updated 2026-11-29 · 8 min read · Sora Panel team

Treat MCP credentials as delegated operational access, not a shared password for an AI assistant. Identify the client, operator, authorization server and target; limit and verify each grant; then test rotation and revocation before a connection is needed in an emergency.

Give each MCP connection an accountable owner, only the access its task requires and a tested way to revoke it. Separate client, operator and target identities so a lost credential can be contained without disabling everyone.

Build a small register of connections before enabling automation. Give each connection an accountable owner, a defined purpose and a recovery path. Use the least access the actual task requires, and verify that the service enforces those limits rather than relying on the assistant to behave. This guide concerns credentials used by MCP clients, not every secret stored on a server.

Illustration: a protected credential connecting an operator, client and server
Illustration, not a product screenshot.

Identify each participant and credential

Inventory the operator, client, issuer and target before granting a credential, and test which actions it actually permits. Separate grants require more administration than a shared credential, but make individual access easier to revoke and investigate.

In a delegated OAuth flow, the resource owner can authorize access; the MCP client makes requests; the authorization server issues a token; and the MCP server is the protected resource that checks requests. The human operator, the client software and the identity represented by a token are related but are not interchangeable. The authorization server and resource server may be operated together or separately. The MCP authorization specification describes these roles and applies its OAuth-based guidance to HTTP transport when authorization is supported; it does not make authorization mandatory for every MCP implementation. Viewed 29 November 2026.

A client identifier identifies a registered application; it is not necessarily a secret. A client secret, when the type of client can actually keep one confidential, authenticates the client to the authorization server. An access token authorizes calls to a resource; a refresh token, if issued, can obtain replacement access tokens. A desktop application distributed to users is normally a public client: embedding a shared secret in the application does not make that secret confidential. A machine-to-machine client credentials grant represents the client itself rather than automatically representing a human. Do not confuse that grant with the broader phrase client credentials.

ItemPurposeOperational check
Client identifierIdentifies the application registrationRecord owner and redirect configuration
Client secret or private keyAuthenticates a confidential client where supportedRestrict storage and plan replacement
Access tokenAccesses the intended protected resourceCheck audience, scope and expiry
Refresh tokenObtains new access tokens when issuedProtect, revoke and test reconnect

Document the endpoint, authorization issuer, operator, client installation and target environment. Keep production and testing registrations distinct where the service supports them. Record references to secret locations, not the secret values themselves. A personal connection should be traceable to its operator; a service connection needs a named human owner and a documented purpose.

Understand the standards without assuming a feature

OAuth security has developed over time. The following publication timeline is context for the controls to ask about, not an adoption score or evidence that a particular MCP server implements each document. RFC 6749 defines the framework; RFC 7636 adds PKCE for authorization-code protection; and RFC 8707 describes resource indicators. The JWT access-token profile describes one token format, not a requirement that every access token be a JWT. RFC 9700 updates OAuth security practice. All viewed 29 November 2026.

Selected OAuth security standards

RFC publication dates; standards are not product adoption dates

  • OAuth 2.0 · RFC 6749
    Oct 2012
  • PKCE · RFC 7636
    Sep 2015
  • Resource indicators · RFC 8707
    Feb 2020
  • JWT access-token profile · RFC 9068
    Oct 2021
  • OAuth Security BCP · RFC 9700
    Jan 2025
Publication chronology, not a checklist of features implemented by every MCP server. Bar positions use publication year; labels show the published month. Source: IETF RFC Editor; individual RFCs linked in article, viewed 2026-11-29.
View chart data
ItemyearNote
OAuth 2.0 · RFC 6749Oct 2012
PKCE · RFC 7636Sep 2015
Resource indicators · RFC 8707Feb 2020
JWT access-token profile · RFC 9068Oct 2021
OAuth Security BCP · RFC 9700Jan 2025

For interactive authorization-code connections, confirm that the client and authorization server use PKCE and validate the registered redirect destination. The client should confirm it is connecting to the intended server and issuer; a convincing consent screen alone does not prove the request is legitimate. Check the requested permissions before approving. Do not enter a panel password into an unexpected assistant prompt or approve a grant whose destination you cannot explain.

Local standard-input/output integrations have a different trust boundary from a remote HTTP endpoint. Local processes can still read environment variables and local files available to their user. Review executable origin, inherited environment and file permissions; do not assume local transport makes a credential harmless. The applicable MCP specification and the implementation's documentation determine the supported flow.

Check audience, scope and resource authorization

Audience answers where a token is intended to be accepted. Scope describes the requested or granted class of access. Neither by itself proves that a particular operator may change a particular site. The resource server must validate the token using the issuer's supported mechanism and then authorize the specific operation and resource. RFC 8707 lets a client identify the intended resource when requesting a token; resource-server audience checking remains essential.

For JWT access tokens, the server must verify the signature and applicable issuer, audience, time and token-type requirements rather than merely decoding the payload. Opaque tokens are not inferior by definition: their validation can use the issuer's supported introspection or another appropriate server-side mechanism. An ID token is not a substitute for an access token. A token for one service should not be forwarded to a different downstream service just because both are part of the same workflow.

Run an authorized test using a disposable environment: the permitted operation on the permitted site should work, while an unrelated site and an ungranted action should be denied. Check whether tool discovery, direct calls and background jobs all respect the same boundary. Record the request identity and outcome without saving token values. If a product only offers broad access, acknowledge the limitation, isolate the environment and decide whether the intended use is acceptable.

Separate operators and protect storage

Sharing a token among colleagues makes individual revocation and attribution difficult. Prefer an individual grant for each operator and client installation when the product permits it. For unattended work, use a dedicated service identity with a named owner rather than a departed employee's account. Separate production from test and separate read-only work from workflows able to make changes, according to what the service actually enforces.

Use the operating system credential store or an approved secrets manager where available. Limit access to configuration files, avoid pasting tokens into chat or issue trackers, and redact authorization headers and sensitive query parameters from logs. Backups of a client configuration may also contain usable credentials; include them in the threat model. Never publish a token in a screenshot or diagnostic bundle. Environment variables can be useful delivery mechanisms but are not a vault: processes, crash reports and deployment tooling may expose them.

Inventory effective permissions periodically and after a role change. Review dormant registrations, refresh grants and unattended jobs, not just the account's visible active sessions. The agent permissions guide explains how to evaluate the operation and target rather than trusting a friendly tool label.

Rotate, revoke and reconnect deliberately

Rotation means replacing a credential and updating the systems that use it; revocation means making an existing credential or grant unusable. Their behavior varies. Some services immediately check revocation; others accept an already-issued access token until it expires. Find out what happens to refresh tokens, active sessions, queued work and cached permissions. A disabled user account alone may not invalidate every credential. Verify behavior with a test identity rather than assuming it.

For planned rotation, identify the owner, create the replacement through the supported flow, install it in the approved store and test a low-risk permitted call. Retire the old credential, verify it is denied and remove old copies from automation where feasible. If overlap is needed, explicitly bound it and record who removes the old grant. Avoid broadening permissions merely to make the transition convenient.

For suspected exposure, revoke the affected grant or credential promptly, inspect related access and investigate the reachable resources. Preserve relevant audit evidence without copying the credential into the incident record. Assess whether the client host or authorization account also needs containment. Notify affected owners, create a clean replacement through a trusted device and test that old access has stopped. Document an alternative human-operated path in case the assistant connection cannot be restored safely.

Compare real connection flows

cPanel's Meridian documentation describes linking a WebPros account, supplying a client identifier for a Codex connection and completing authentication in a browser; it also documents unlinking. The identifier is connection metadata, not a reason to share a user's access token. Consult the current product documentation for the exact effects of unlinking and any remaining sessions. Viewed 29 November 2026.

Laravel's MCP security guidance describes Passport for external OAuth clients and Sanctum tokens for controlled environments, alongside authorization within tools. These are implementation examples, not evidence that all MCP servers offer the same controls. In either design, ask how the user is resolved, how each tool checks the target, and how credentials are revoked. Viewed 29 November 2026.

Sora Panel is not released yet. Read how it works on the homepage. For an operational record of requests and outcomes, see audit trails for MCP-initiated changes.

Frequently asked questions

Is an MCP client ID a secret?

Not necessarily. A client ID identifies a registration; a client secret, private key or token may need confidential storage.

Does a valid token authorize every operation?

No. The server must validate the token and authorize the requested action and target under its own policy.

Does revocation immediately stop every access token?

That depends on the implementation. Test active access tokens, refresh grants and sessions, and document any delay.

Is OAuth required for every MCP connection?

No. The cited MCP specification makes authorization optional and distinguishes HTTP authorization from local standard-input/output transport.

Sources

Sora Panel is not released yet. Read how it works on the homepage.