MCP SECURITY

Claude Code MCP Security Guide for Financial Services

The real attack surface, compliance gaps, and enterprise controls regulated firms need before Claude Code MCP touches production data.

Claude Code MCP is the integration between Anthropic's terminal-based AI coding agent and the Model Context Protocol (MCP), the open standard Anthropic launched in November 2024. It lets Claude Code call external tools, query databases, read files, and trigger actions in connected systems, turning a text-generating assistant into an agent that acts on enterprise infrastructure. In financial services, that is production-grade capability, not a developer experiment, and it needs a governance posture to match.

TL;DR
  • What MCP enables. Claude Code MCP connects AI coding tools directly to your databases, APIs, and internal platforms, letting developers query and act on enterprise data through natural language.
  • What regulators expect. SEC, FINRA, GDPR, and SOX all require firms to know who accessed what data, when, and under what authorization. Default MCP deployments produce no records that satisfy those requirements.
  • What the security risks are. Three significant vulnerabilities were disclosed in early 2026. One remains unpatched and classified as out of scope by Anthropic. Configuration files that security teams treat as passive metadata are active execution paths.
  • The minimum viable posture. Corporate SSO, a managed allowlist of approved MCP servers, TLS enforcement, network egress controls, and structured audit logging, all in place before any MCP server touches regulated data.

What Is Claude Code MCP and Why Does It Matter Now?

The adoption numbers make the "experiment" framing obsolete. MCP's TypeScript and Python SDKs reached 97 million monthly downloads in March 2026, up from roughly 2 million at launch, approximately 4,750% growth in 16 months. The public server ecosystem has grown from a handful of reference implementations to over 9,400 servers covering databases, CRMs, cloud providers, and developer tooling.

In December 2025, Anthropic donated MCP to the Agentic AI Infrastructure Foundation, a directed fund under the Linux Foundation co-founded by Anthropic, Block, and OpenAI, cementing MCP's status as a vendor-neutral open standard. Gartner projects that by the end of 2026, 40% of enterprise applications will include task-specific AI agents and 75% of API gateway vendors will have MCP features built in.

What Does MCP Actually Do in a Financial Services Context?

Think of MCP as a universal connector between an AI assistant and the data and systems your firm already runs. A developer working in Claude Code can ask it to pull the latest NAV from the portfolio database, check a client's transaction history, or query a compliance archive, and the AI executes those requests directly against the underlying systems through MCP servers. Each MCP server is a small piece of software that sits in front of a data source or platform and translates AI requests into that system's native language. We covered the productivity case in Claude MCP for the enterprise.

This capability is genuinely powerful. It means an analyst or developer can ask questions in plain language and get answers drawn from live enterprise data, without copying data into a spreadsheet or waiting for a report. But it also means the AI has direct, programmatic access to systems holding client data, transaction records, and proprietary financial information. The blast radius of a misconfiguration or a compromised session scales with every MCP server added.

What Regulatory and Compliance Expectations Apply to AI Tooling?

Regulators have not issued MCP-specific guidance, but existing rules apply fully. The question is not whether current regulations cover AI tool access to regulated data. They do. The question is whether your MCP deployment is set up to demonstrate compliance.

The common thread: regulators expect you to know who accessed what, when, under what authorization, and what happened next. We mapped the broader regulatory stack, FINRA Rule 3110, Reg S-P, and the Treasury FS AI RMF, in our 2026 AI data governance framework.

What Are the Known Security Vulnerabilities in Claude Code MCP?

Three significant disclosures in early 2026 share a common pattern: configuration files and execution hooks that security teams treat as passive metadata are actually active attack vectors with developer-level operating system privileges.

CVE-2025-59536 and CVE-2026-21852: code execution and key theft

Check Point Research disclosed two vulnerabilities in February 2026, both now patched. CVE-2025-59536 (CVSS 8.7) allowed an attacker to plant malicious code inside a repository's settings file; when a developer cloned and opened the repository, the code executed automatically before any warning appeared. CVE-2026-21852 allowed an attacker to intercept all authenticated Claude Code traffic by overriding a single environment variable. The trigger for both: simply cloning an untrusted repository. The structural lesson remains after the patches: repository-level configuration files are execution paths, and supply chain hygiene is not an optional control.

The Mitiga MCP hijack: unpatched and persistent

Mitiga Labs published research in May 2026 demonstrating an attack that remains unpatched and has been classified by Anthropic as out of scope. The attack begins with a malicious npm package that looks legitimate. Hidden inside is a script that runs silently on install and rewrites the global Claude Code configuration file, which governs how Claude routes all MCP traffic and stores authentication tokens in plaintext. Attackers can then redirect all MCP traffic to their own servers, intercept tokens for every connected platform, and maintain access indefinitely. Detection is hard because logs in connected systems show the real user, a real session, and Anthropic's network addresses. The manipulation exists only in the local configuration file, which most security monitoring does not watch.

Mitiga reported this to Anthropic on April 10, 2026. Anthropic replied on April 12, 2026 that the issue was out of scope. No patch is planned; the detection and response burden falls on enterprise security teams. Immediate mitigations:

What Is the Shadow AI and Shadow MCP Problem in Financial Firms?

Most Claude Code MCP adoptions in financial services start bottom-up. Developers discover the tool, get productive, and tell teammates. By the time platform engineering or the CISO's office gets involved, dozens of people are running it under personal accounts with no enterprise guardrails. This creates two compounding risks.

First, developers on personal Anthropic accounts send proprietary code, client data schemas, and internal API structures under consumer terms of service. Consumer plans defaulted to opt-in model training in October 2025; proprietary data can enter training pipelines without anyone realizing it. Second, the MCP ecosystem makes shadow data connections trivially easy. A developer adds a database connector for convenience, a teammate adds an internal API server, neither is inventoried, and neither is removed when the developer changes roles. For a regulated firm, each shadow MCP server is a potential exam finding. This is the same leakage economics we quantified in the governance framework: shadow AI adds an average of $670,000 to a standard data breach.

What Enterprise Controls Does Anthropic Actually Provide?

Anthropic provides a managed settings framework that is the mandatory starting point. It is not sufficient on its own, but skipping it undermines everything else. The most important setting is allowManagedMcpServersOnly: true, deployed in a centrally managed configuration file. Without it, allowlists from every settings source merge, including the developer's own local file, so a developer can broaden the corporate allowlist by editing local settings. The minimum policy baseline:

{
  "allowManagedMcpServersOnly": true,
  "allowedMcpServers": ["approved-server-1", "approved-server-2"],
  "mcpDefaultPermission": "read-only"
}

Write access to any MCP server that touches production data must require a separate approval workflow, not a default setting. All remote MCP connections must use TLS with certificates from a recognized authority, and authentication must flow through the corporate identity provider via SAML 2.0 or OIDC.

The full enterprise control stack

The strongest pattern layers control across the full execution path, each layer addressing a different failure mode: a policy layer (managed allowlist as the first gate), an identity layer (corporate SSO tying every MCP action to a named user), a network layer (an egress proxy chokepoint that blocks non-approved endpoints), an execution layer (isolated containers or VMs for high-risk work), an observability layer (OpenTelemetry instrumentation producing per-query records naming the user, server, query parameters, and result count), a supply chain layer (internal npm registry with postinstall script scanning, which blocks the Mitiga-class attack at the point of installation), and a change control layer (formal review and security sign-off before any allowlist change takes effect). This layered approach mirrors what we enforce on AI-generated application code through code scanning.

What Network and Data Residency Controls Do Regulated Firms Need?

MCP servers are processes that make outbound network connections. In a naive deployment there are no network-level controls on what they can reach, so a compromised or misconfigured server can exfiltrate data to any endpoint the developer's machine can access. Regulated firms need explicit egress controls: outbound connections restricted to a pre-approved list, everything else blocked at the network layer, and all MCP traffic routed through a proxy that validates destinations, logs full request and response payloads, and applies DLP policies for PII and financial identifiers.

For on-premises data sources, the architecture must ensure data retrieved by an MCP server does not transit cloud-hosted AI model infrastructure. The query goes in, a scoped result comes back, and the underlying data never leaves the enterprise perimeter. This is the zero-egress requirement, and it is not achievable with default MCP configurations.

What Does This Mean Specifically for Regulated Financial Services Firms?

How Clarista Addresses Governed MCP for Financial Services

For firms that want Claude Code MCP productivity without rebuilding the governance stack from scratch, Clarista runs governed MCP servers across a firm's distributed data landscape, covering cloud warehouses, on-premises databases, and SaaS sources. AI coding tools, including Claude Code, Cursor, and ChatGPT, query enterprise data in place through the Clarista AI Data Fabric, with RBAC enforced at the row and column level, full lineage captured per query, and every tool call authenticated against the corporate identity provider and written to an immutable audit log.

Critically, the data never leaves the customer's perimeter to reach the model. This satisfies the zero-egress requirement natively, and it addresses the Mitiga-class attack directly: there is no plaintext OAuth token in a local configuration file to redirect, because authentication flows through the enterprise identity layer end to end. The same architecture underpins our approach to AI agent governance more broadly.

FAQ

What is MCP?

MCP (Model Context Protocol) is an open standard, launched by Anthropic in November 2024 and now governed under the Linux Foundation's Agentic AI Infrastructure Foundation, that gives AI assistants a uniform way to call external tools, query data sources, and trigger actions. It is the connective layer that turns a language model into an agent that can act on real systems.

What is an MCP server?

An MCP server is a small program that sits in front of a data source or platform (a database, SaaS application, or internal API) and translates AI requests into that system's native operations. The AI issues a structured request, the server executes it with whatever credentials and permissions it holds, and returns the result. Those credentials and permissions are exactly where the security risk concentrates.

What is Claude Code MCP?

Claude Code MCP refers to Claude Code's integration with the Model Context Protocol, an open standard launched by Anthropic in November 2024. It allows Claude Code, running in a developer's terminal, to connect to external tools, databases, APIs, and SaaS platforms through MCP servers, enabling AI-driven actions far beyond text generation.

Is MCP with Claude Code secure enough for enterprise use?

Not out of the box. MCP is a protocol, not a security product. Enterprises must layer on managed settings, corporate SSO via SAML 2.0 or OIDC, network-level egress controls, TLS for all server connections, and structured per-query audit logging before deploying in regulated environments.

What are the most critical MCP vulnerabilities to know about?

Three disclosures stand out: CVE-2025-59536 (CVSS 8.7, remote code execution via repository settings, patched), CVE-2026-21852 (traffic interception via environment variable override, patched), and the Mitiga MCP hijack (May 2026, unpatched), which silently rewrites the global Claude configuration file to redirect all MCP traffic and steal OAuth tokens.

How do I prevent shadow MCP servers in my organization?

Set allowManagedMcpServersOnly to true in a centrally deployed managed settings file so developers cannot add unapproved servers. Combine this with network egress policies that block outbound connections to non-allowlisted MCP endpoints and scan installed npm packages for malicious postinstall hooks.

What audit logging does Claude Code MCP provide by default?

Very little. Default MCP implementations log that a request was made but not which user authorized it, what data was retrieved, or what action followed. Regulated firms must add structured logging or route all MCP traffic through a proxy that captures immutable, per-query records.

Can MCP servers be run without data leaving our perimeter?

Yes, if you run self-hosted MCP servers inside your network boundary with egress controls preventing outbound transfer. Platforms like Clarista operationalize this by running governed MCP servers in the customer's own infrastructure, so the AI model queries data in place with zero egress.

See governed, explainable AI on your own data. Thirty minutes, your CISO welcome.

Book a demo