TL;DR: ElevenLabs MCP and API split control between signed-in workspace sessions and headless keys, with the MCP path limiting action to the authenticated user while the API can run scheduled jobs, webhooks and outbound calls, according to Scalekit. Session-based access narrows exposure, but key-based automation still needs strict scope, quota and offboarding discipline.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Scalekit's blog post: ElevenLabs MCP and API split agent control between browser-based workspace sessions and headless keys, creating different governance models for human and automated use.
Why it matters: Identity teams need to treat session-bound agent access and key-based automation as different control problems, because the trust boundary, revocation path and blast radius are not the same.
Context
The core governance question is not whether an agent can call ElevenLabs, but whether its access is bound to a person in a live session or delegated to a non-interactive credential that can run unattended. That distinction determines who can approve actions, how spend is constrained, and what happens when the user leaves or a workflow keeps running.
MCP makes the trust boundary visible at sign-in, while API credentials move it into the backend. For identity programmes, that means one path behaves like interactive access and the other behaves like governed machine identity, with different expectations for approval, rotation and revocation.
Key questions
Q: How do MCP registrations limit AI agent access in practice?
A: MCP registrations constrain an AI agent by limiting which tools, resources and prompts it can discover and call, often after browser sign-in and the permissions granted to that session. In practice, access should map to a named human owner, least-privilege scopes and server-side policy checks, so the agent cannot invoke unauthorised actions outside its registered context.
Q: What is the difference between MCP and API access for AI agents?
A: MCP access typically lets an agent act through an authenticated user session, while API access usually depends on tokens with permissions fixed at creation. The practical difference is governance: MCP is better for human-led investigation, whereas API access is better for bounded automation and write-heavy workflows.
Q: How should teams restrict a production API key for voice automation?
A: A production API key for voice automation should be restricted to the minimum API methods, tightly bounded spend or credit quota, and apply IP allowlisting where the service supports it. The key should be stored as a secret, rotated on a fixed schedule, and revoked immediately if the automation changes, leaks, or is no longer owned.
Q: What happens if an agent can publish changes directly from MCP?
A: If an agent can publish changes directly from MCP, it can move from suggestion to execution without a human approval gate, so any bad prompt, tool misuse or compromised context can alter systems immediately. The safer pattern is a separate approval step, write scope limited to the smallest necessary target, and audit logging tied to the accountable owner.
Technical breakdown
How OAuth-bound MCP sessions constrain agent authority
The MCP path uses browser-based OAuth into one workspace, so the agent inherits the signed-in user's permissions rather than a separately provisioned service credential. That model keeps the access boundary tied to interactive consent and workspace membership. It also means the client is executing within a live user session, which limits unattended use by design. The control question is not just authentication, but whether the action surface is stable enough for a model to use safely when the available tools can change over time. See the Agentic AI Identity Guide.
Practical implication: Treat MCP access as interactive delegated access and review which workspace permissions a human sign-in actually exposes to the agent.
Why API keys behave like machine identities with spending authority
The ElevenLabs API uses an xi-api-key header, so the credential is the unit of authority for backend calls, not the person at the keyboard. In practice that makes the key a machine identity with scope, quota and IP constraints that must be managed separately from user login. Because the API can run on schedules, via webhooks and in production services, it is the path that persists after the human session ends. Governance lives or dies on how tightly that key is bounded before it ever reaches runtime.
Practical implication: Apply machine-identity controls to every API key, including scope limitation, quota setting, rotation and offboarding.
Why tool availability changes the agent's effective privilege
The article shows that the same workspace can expose different actions depending on whether the agent reaches ElevenLabs through MCP or API. That matters because privilege is not only about what the credential can authenticate, but also which tools are visible, whether destructive actions are included, and whether changes publish immediately or stage first. When tool sets expand, the control surface expands with them. Security teams need to govern the action catalogue, not just the login mechanism. Read OWASP Agentic Applications Top 10.
Practical implication: Inventory the tool surface separately from the credential and re-evaluate privilege whenever new tools or destructive actions are added.
Threat narrative
Attacker objective: The attacker objective is to obtain durable access to workspace tools and spending rights so agent actions can be run, modified or abused without continued human approval.
- Entry occurs through OAuth sign-in for MCP sessions or through an API key presented in the xi-api-key header for backend execution. The entry path determines whether the agent is acting inside a user session or through a persistent machine credential.
- Escalation comes from over-broad tool exposure, because the same credential can reach destructive functions, call placement and credit-spending actions if scopes are not narrowed. In the API path, a key with too much authority can operate independently of the person who created it.
- Impact is workspace-level spend, call execution or destructive configuration change, with the blast radius determined by quota, scopes and who can revoke the credential. A misgoverned key turns voice-agent activity into durable account access.
- The attacker objective is to obtain durable access to workspace tools and spending rights so agent actions can be run, modified or abused without continued human approval.
Breaches seen in the wild
- Smithery.ai MCP hosting breach 2025: A Smithery.ai build flaw gave GitGuardian a live fly.io token controlling 3,000+ hosted MCP servers and the API keys their clients sent.
- CoPhish OAuth phishing via Copilot Studio: Datadog showed Copilot Studio agents on a Microsoft domain can front OAuth consent phishing and forward stolen tokens; no victims reported.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Session-bound MCP access and backend API access are different identity problems, not two versions of the same one. The MCP path ties authority to a live workspace sign-in, while the API path turns authority into a reusable machine credential that can run without a person. Identity governance has to separate interactive delegation from unattended execution because the control failures, audit model and revocation path differ. Practitioners should classify them as different operating modes, not interchangeable integration options.
Long-lived API keys create spending authority, not just authentication. Once a key can place calls, generate content or trigger batches, it becomes a financial and operational control plane. That is why scope, quota and IP allowlisting are not secondary settings but the actual containment boundary. Teams that treat the key as a connector secret miss the fact that it authorizes business activity, not merely login.
Tool expansion changes the risk surface faster than policy can catch up. ElevenLabs' growing MCP tool set shows how quickly the action catalogue around an agent can expand after deployment. The governance problem is not only whether a tool is safe today, but whether the model can acquire new capabilities tomorrow without a fresh approval model. Security teams need to govern tool growth as a privilege event, not a product update.
Identity lifecycle controls must follow the credential, not the user record alone. Service account keys keep working when people join or leave, which means offboarding a person does nothing if the machine credential remains live. That is the governance assumption that fails most often in production integrations: human departure does not equal access removal for non-human identities. Practitioners should treat the credential as the governed asset and the person as only one owner in the chain.
Workspace scoping is the named concept here: access remains safe only when it stays inside a single, governed workspace boundary. The article repeatedly shows that both MCP and API paths spend workspace credits, but the controls that matter are whether that spend is isolated to one workspace and one purpose. When agent access crosses workspace boundaries, credit use, audit trails and revocation all become harder to reason about. Teams should design around workspace isolation as the smallest meaningful governance unit.
From our research library:
- 69% of organisations still authenticate machine identities with long-lived API keys, according to the 2026 State of AI Agent Identity Security Report.
- Read next: MCP Security Guide
What this signals
Workspace isolation is the control that keeps agent access intelligible. When a single agent path can spend credits, place calls and change configuration, the workspace becomes the smallest practical boundary for governance. That boundary only works if every credential is tied to one workspace and one purpose, with no shared key drifting across functions.
The next pressure point is lifecycle discipline. Service account keys survive staff changes, so organisations that still manage them like user passwords will discover that offboarding does not actually remove access.
Credential boundaries will matter more than channel choice. Teams will increasingly choose between interactive MCP sessions and unattended API execution based on who owns the action, who can revoke it and how much spend the credential can authorise. The question is shifting from which integration is easier to which one creates a governable identity boundary.
For practitioners
- Separate interactive and unattended agent paths Reserve MCP for user-driven review and API keys for scheduled or event-driven execution, then document which workflows belong in each path.
- Scope every API key to the smallest viable action set Use endpoint scopes, credit quotas and IP allowlists for production keys, and remove any permission that the workflow does not actively need.
- Revoke machine credentials when staff roles change Treat service account keys as offboarding items, because they continue to function after a human leaves the team or changes role.
- Review the tool surface as part of privilege management Reassess risk whenever new tools, destructive actions or publish paths are added to the agent surface, because capability growth changes effective privilege.
- Log actions to the connected user and execution context Retain per-call audit data that ties each action to the connected account, the workspace and the specific tool invocation so attribution survives shared pipelines.
Key takeaways
- MCP and API paths create different access models, so the right control boundary depends on whether the agent acts in a live user session or through a backend credential.
- The main risk is not connectivity but authority drift, where a reusable key can keep spending, calling or changing state after the human context is gone.
- Governance should focus on scope, quota, workspace isolation and lifecycle removal, because those are the controls that actually limit blast radius.
Related NHI Mgmt Group resources: MCP Security Guide · Agentic AI Identity Guide · AI Agent Observability, Audit and Incident Response Guide · OWASP Agentic Applications Top 10
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | MCP sign-in and API key auth are the core control boundary in this comparison. |
| NHI-05 — Overprivileged NHI | The article warns that broad API keys can place calls, change config and spend credits. | |
| NHI-07 — Long-Lived Secrets | Service account keys remain valid across staff changes and scheduled execution. | |
| Recommendation — Separate session-bound and key-bound access so each credential type uses the right authentication model. Reduce every non-human credential to the smallest action set and remove unused permissions. Rotate and offboard long-lived machine credentials as lifecycle assets, not shared secrets. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | API keys, single-use tokens and revocation discipline map directly to authenticator lifecycle. |
| Recommendation — Manage API keys with strict lifecycle controls for creation, expiry, rotation and revocation. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Workspace scope and tool visibility are the actual privilege boundary described here. |
| Recommendation — Enforce least privilege across agent tools, workspace permissions and publishing actions. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | The abuse pattern is credential-controlled access that can reach wider workspace functions. |
| Recommendation — Map overbroad agent credentials to credential access and lateral movement paths in detection. | ||
Key terms
- MCP Server: An MCP server is a tool endpoint that connects an AI agent to external systems and data sources through Model Context Protocol. Because it extends what the agent can reach, it becomes part of the identity and access surface and must be reviewed like any other privileged connector.
- OAuth: OAuth is a delegated authorisation protocol that lets one application grant another limited access without sharing the owner’s primary credentials. In practice, its security depends on how tightly scopes are defined and whether the resulting tokens are monitored and revoked when access changes.
- API Key: A unique identifier used to authenticate a software application or service when calling an API. API keys are static, long-lived credentials and a major source of secrets sprawl, so they need careful storage, narrow scoping, regular rotation, monitoring for leakage and prompt revocation when no longer needed.
- Service Account: A special-purpose account used by applications, automated tools, or services rather than a human user to interact with systems, APIs, and infrastructure. Service accounts are a primary category of NHI and one of the most frequently exploited attack vectors.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org