Est.
FeaturesLong read

What an MCP Server Does and What It Can Touch Inside Your Enterprise

MCP servers expose databases, files, and credentials to AI agents with minimal governance controls.

· 9 min read
Cover illustration for “What an MCP Server Does and What It Can Touch Inside Your Enterprise”
Features · October 26, 2026 · 9 min read · 1,940 words

An MCP server gives an AI agent structured access to enterprise systems. That access can extend to databases, files, credentials, APIs, and workflows. Responsible deployment starts with knowing exactly what the server exposes, then controlling what an agent can read, change, and combine.

What an MCP server actually does at the protocol level

The Model Context Protocol standardizes how AI applications connect to tools and data [1][2][3]. Before MCP, connecting each agent to a system took custom code. MCP replaces those separate connections with a shared protocol. Its architecture has three parts, which are hosts, clients, and servers. The host is the AI application the user sees, the client manages a connection for that host, and the server is the program that exposes capabilities through it.

Those capabilities fall into three groups called primitives. A tool performs an executable action, such as querying a database. A resource returns data, such as a document. A prompt provides a template for a workflow. These are distinct functions within the same interface, so an MCP server is more than a plugin that passes text between applications.

A local server runs as a subprocess on the user’s machine and communicates through standard input and output, or stdio. Its credentials typically live in configuration files on disk. A remote server runs as an HTTP service, can serve many clients over a private network or the public internet, and uses OAuth 2.1 authorization. In either case, the crucial distinction is between the caller and the credential used for execution. When an agent calls a tool, the server acts with the service account or token it holds.

The full surface of enterprise systems an MCP server can reach

A connected server can let an agent read files, query databases, call external APIs, update SaaS records, and modify enterprise systems. Its reach depends on the tools it exposes and the permissions behind them. Databases can put customer records, financial tables, personally identifiable information, and internal schemas within reach. File access can extend from documents and internal repositories to configuration files, shell history, and SSH keys. The interface is consistent, but the contents vary widely.

That reach also includes systems where reading leads to action. Witness AI’s MCP security analysis describes how agents pull customer records from a CRM, update project-management tickets, trigger workflows across departments, and create and send out financial reports. Email systems, cloud infrastructure APIs, and CI/CD pipelines extend the range further. Credentials are part of this inventory too. API keys, OAuth tokens, session tokens, cloud credentials, and Kubernetes configuration can be exposed when the connected systems process or store them.

The May 2025 GitHub MCP incident shows the chain concretely. An over-privileged Personal Access Token gave a compromised agent access to private repository contents, internal project details, and personal financial or salary information. That data ended up in a public pull request. More generally, an agent connected to multiple MCP servers can chain calls and combine their results, creating exposure that would not be apparent from reviewing any one authorized call.

Why the adoption curve has outpaced the governance controls around it

MCP adoption extends well beyond experimental integrations. Uber, Nordstrom, Bloomberg, Duolingo, and PwC have production implementations, while Anthropic, Block, OpenAI, Google, Microsoft, AWS, and Cloudflare have co-adopted the protocol. Yet most MCP servers run locally on developer machines, with only a small fraction in formal production environments. Much of the deployment happens outside centralized review. Developers and non-developers add servers to the configurations for Claude Code, Cursor, VS Code, and Claude Desktop without getting security approval.

This creates a visibility problem before any attack occurs. Witness AI calls shadow AI sprawl a core MCP risk because servers spread beyond what an organization can see faster than policy can catch up. Meanwhile, many pilots never reach production because of problems with identity management, auditability, and vendor lock-in. Informal deployments can bypass those unresolved questions. A working connection is not evidence of a governed deployment.

The architecture makes that gap harder to close. Dynamic tool discovery means an agent may call tools that a security team did not anticipate when it approved the server. Chained execution lets calls combine data in ways that a review of one call at a time would miss. With bidirectional data flow, both tool descriptions and tool results go back to the model and can shape what it does. Traditional API security tooling does not inspect these surfaces in the same way.

The five specific ways an MCP server’s access gets exploited or abused

Diagram: How a Single Over-Privileged Token Cascades Into Full Exposure. Visualizes: Show the chain of exploitation in the May 2025 GitHub MCP incident as a stepped flow: (1) Over-privileged Personal Access Token granted to agent → (2) Token…

Credential sprawl begins with the files used to connect a server. Tokens and keys often sit in plaintext configuration files that people copy between machines or commit to repositories by mistake. Access does not end with the agent’s session. The server retains a standing privilege for as long as those credentials remain usable, even when that access is no longer needed.

Over-permissioned service accounts widen that standing access. Developers may grant broad scopes to avoid authorization errors as they build, then ship with those scopes still in place and no least-privilege review. The GitHub case illustrates the consequence of an over-privileged token. In a data warehouse, the same general problem means a server with access to every table can return PII fields as well as the revenue figures a task requires. The protocol does not itself impose that narrower boundary.

MCP has no role-based access control model and does not specify how a session maps to a verifiable enterprise identity. Under the current specification, local stdio authentication is optional, but remote HTTP servers must use it. Those rules do not limit what each user can do or provide audit records. Witness AI identifies missing audit trails as a separate risk because, without records of tool calls, context changes, and agent interactions, security teams cannot reconstruct an agent’s activity.

Tool poisoning targets the instructions around those capabilities. A model processes tool descriptions as natural language, so a malicious description can steer its behavior. A rug pull exploits approval over time. The server presents benign descriptions during review, then changes them after trust has been granted, leaving the agent operating under stale approval. OWASP catalogs tool poisoning as MCP03:2025, and the Deadbugz campaign provides a concrete example of the delayed-change pattern.

Prompt injection through trusted data moves the entry point from tool metadata to returned content. A database record, document, web page, or email can contain instructions that enter the model’s context when a tool retrieves it. The attacker needs only control of the source. If the model follows that content as instructions, a legitimate retrieval becomes a way to redirect the agent, as the GitHub prompt-injection case demonstrates.

What real incidents show about where the exposure actually lands

The September 2025 Postmark MCP case put the exposure inside an email integration. The counterfeit npm package postmark-mcp appeared legitimate but secretly added a blind carbon copy to every outgoing email, sending a copy to an attacker-controlled address. It was the first known malicious MCP server in the wild. This supply-chain compromise came through a server taken from a public registry without enough review.

The August 2026 Dolt MCP authentication bypass showed a different failure. In versions 0.3.1–0.3.6, the server returned a 401 response to requests with invalid tokens but kept processing them, while session validation accepted IDs made by the attacker. An unauthenticated caller could run database tools using the server’s credentials. Version 0.3.7 fixed the issue. An error response had existed without an effective rejection.

The August 2026 Grafana MCP disclosure extended the exposure into cloud infrastructure. The server accepted caller-generated session IDs, allowing callers to list and run tools with its Grafana service account. A second flaw let a caller-controlled header redirect requests to cloud metadata endpoints. CVE-2026-19516 was fixed in mcp-grafana 1.1.0.

The August 2026 Deadbugz campaign used public GitHub pull requests to spread a malicious server called “productivity-suite.” After three ordinary tool calls, it changed its instructions and directed the agent to find SSH keys, AWS credentials, shell history, and Kubernetes configuration while concealing the activity. Separately, CVE-2025-6514 in the widely used mcp-remote proxy package showed that supply-chain exposure could extend across the MCP ecosystem [1][2][3].

Across these cases, credentials, authentication, trusted metadata, and permissions defined where the exposure landed. The governance gap preceded the attack. Exploitation used access or trust that the deployment had already granted without sufficient controls.

Why the protocol specification alone does not close the governance gap

The July 28, 2026 specification revision made real improvements to MCP authorization. It required clients to validate the authorization server’s issuer and removed the session-ID mechanism abused in the Dolt and Grafana disclosures. Those changes strengthen the protocol’s security baseline. They do not, however, establish whether a particular deployment uses the revised specification. Servers built on older versions still need to be checked.

Nor does the revision control the systems behind a server. It does not narrow a database credential, create an audit log, or register the servers running across an organization. These are separate responsibilities. Pillar Security’s MCP analysis notes that approval cannot be a one-time event because servers update, packages change hands, and descriptions change at runtime. An allowlist based only on names cannot account for those changes.

Richard Kang and Yudho Diponegoro’s June 2026 preprint examined governance gaps across five agent protocols. It found membership, deliberation, voting, dissent preservation, human escalation, and audit/replay absent or only partially represented, with MCP v1.1 tied with A2A v1.0.1 at the bottom. The finding describes a broader separation across agent protocols between connecting agents and governing their actions. A well-implemented MCP setup can expose which server, credentials, and scope authorized a tool call, but turning that context into enforceable policy requires a control layer built on top of the protocol.

The controls that close the gap between what MCP servers can reach and what they should reach

For enterprises deploying MCP, the response is to govern both the connection and the data behind it. Inventory addresses the shadow deployments that centralized review never sees. Every server on developer machines, in repositories, and in IDE configurations needs a discoverable record of its client, launch command or URL, version, and source package. Discovery alone is not enough. Witness AI treats continuous discovery, real-time visibility into agent and tool activity, and attribution to the initiating human as distinct requirements.

Approval then needs to cover tools as well as servers. Version and behavior checks address the gap that rug pulls exploit, while separate tool approval lets a team permit needed reads without automatically permitting writes or destructive actions. Credentials need the same precision. Each server should replace any shared personal token with full access with its own scoped credential. Secrets should stay out of MCP configuration files and live in environment variables or a secret manager, with configuration scanning used to find hardcoded tokens.

Authentication must stop rejected requests from executing. For remote servers, enforcement means more than returning an error, as the Dolt case showed. Checks at runtime must also cover tool descriptions, calls, and results because hostile instructions can come from outside the user’s prompt. Real-time logs should record the user, agent, server, tool, arguments, and result for every call, giving security teams a record of access as it happens.

Column-level restrictions, combination rules, and PII field governance limit what an agent can see and assemble even when its token and tool call are valid. A governed gateway enforces these controls in one place so they apply the same way across servers, without relying on how each server is configured. That shared foundation also makes new production integrations easier to approve because the guardrails already exist.

Sources

  1. Agentic MCP Security Best Practices Guide
  2. What is Model Context Protocol (MCP)? A guide

More in Features