Join our Newsletter — 33% off our NHI Course

What did MCP gateways reveal about direct API paths and blind spots?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Akeyless shows MCP gateways can reduce exposed secrets and improve attribution, but 24,008 unique secrets still appeared in MCP configuration files. Practitioners need to govern the bypass paths as well as the gateway path, or enforcement will remain partial.

Editorial analysis by NHI Mgmt Group, based on content published by Akeyless: “What Is an MCP Gateway: Architecture, Security Risks, and When You Need One”.

Key questions

Q: What is the difference between a traditional API gateway and an MCP server?

A: An API gateway manages edge traffic with routing, authentication, and rate limits.

Q: How do direct API calls create risk around agent governance?

A: Direct API calls create governance risk because they let an agent or script reach tools without passing through the control point that records scope, policy checks and approvals.

Q: How should organizations manage credentials for AI agents?

A: Organizations should transition from hard-coded credentials to runtime-fetched credentials that enhance security by ensuring that tokens are not stored permanently.

Practitioner guidance

  • Inventory every MCP client and config file Search repositories, laptops, and developer profiles for files such as .cursor/mcp.json, then count the credentials and server entries they contain.
  • Separate MCP governance from API governance Map which workloads, databases, and cloud endpoints can still be reached directly by agents so those paths get explicit entitlement and logging controls.
  • Adopt brokered access for high-risk targets Move the target credential out of the agent and into a broker that performs the access on the agent’s behalf, especially for databases, SSH, Kubernetes, and cloud APIs.

Bottom line: MCP gateways help standardise agent access, but they do not govern every path an agent can use to reach systems.

Glossary terms: MCP Gateway, Model Context Protocol, Brokered Access, Tool allowlist

What's in the full article

Akeyless's full blog post covers the operational detail this post intentionally leaves for the source:

  • Five-step walkthrough of how an MCP gateway authenticates agents, filters tools, and records each call
  • Comparative detail on when an API gateway is enough and when an MCP gateway is still required
  • Design notes on brokered access, hash pinning, and runtime authority for higher-risk agents
  • Practical deployment guidance for mixed stdio and Streamable HTTP MCP fleets

👉 Read Akeyless's analysis of MCP gateway governance and bypass risks →

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

MCP gateways are useful only when governance starts at the protocol boundary. Akeyless shows the gateway can centralise identity checks, policy, and logging for tool calls, but that strength is narrow. Once agents reach systems through direct APIs or local configs, the governance model fragments and the gateway becomes one control among several rather than the control plane.

A few things that frame the scale:

  • 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to the State of Secrets Sprawl 2026.
  • 28% of secrets incidents now originate outside code repositories, in Slack, Jira, and Confluence, and are 13% more likely to be categorised as critical than code-based leaks, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: What should teams do first when MCP secrets appear in config files?

A: First, remove the exposed secrets from the MCP configuration file and rotate every credential found there, including API keys, tokens and certificates. Then identify who or what used them, check repository history and build pipelines for further copies, and move the secrets into a managed secret store with scoped access and rotation controls.

👉 Read our full editorial: MCP gateways centralize control but leave direct API paths exposed



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.