Semgrep MCP server data privacy: what leaves your system and retention

The hosted Semgrep MCP server can trigger AI-assisted flows that send code outside your repository to AI subprocessors, and some finding data is kept indefinitely unless deleted on request. This page maps those flows and retention terms for reviewers.

On this page

Does the Semgrep MCP server keep code inside your boundary? Not for AI-assisted features

The hosted Semgrep MCP server is in beta and requires an AppSec Platform account in an organization on a Teams or Enterprise plan, including trials. Its AI-assisted features send portions of source code outside your repository to AI subprocessors, so the approval question is which data leaves, which provider receives it, and how long it is kept. The answer depends on which tool the agent calls. The MCP tools documentation lists Autofix suggestions, Memories and AI-powered detection scans as actions an MCP client can trigger, and each one starts a different data flow. Your review should map every tool your rollout permits to its flow before approving the server.

Semgrep's privacy documentation separates the flows by feature. Triage and remediation send the finding code and minimal surrounding context. AI-powered detection scans send full file contents, uploaded context documentation and scan metadata, which makes them the larger exposure. The default AI subprocessors are OpenAI, Amazon Bedrock and Cloudflare Workers AI, and bring-your-own-key options include Anthropic, Google Gemini, xAI Grok and Microsoft Foundry. Semgrep states that its subprocessors operate under zero data retention agreements by default. Remediation data, including finding metadata, guidance and patches, is retained indefinitely unless otherwise noted, so ask Semgrep how deletion requests are submitted and confirmed.

Semgrep Guardian runs the same server locally with the semgrep mcp command and scans files that agents write. A local process changes where the MCP server runs, but it does not by itself prove where AI-assisted analysis is sent. Before approving either path, get written answers on four points: the current subprocessor list and which providers your account can reach, who holds the keys for any bring-your-own-key setup, whether zero data retention covers each provider you use, and whether a locally run server can still start AI detection scans through your hosted account. Confirm each answer against the Guardian overview and your contract, not against a summary.

Data flows by MCP tool, deployment and plan

This table maps each Semgrep MCP data flow to the deployment that triggers it, the plan that gates it, and what leaves the repository. Read each row as a question to confirm with Semgrep before approval, because the hosted server and Guardian local scans differ in where code is sent. The main takeaway is that AI-assisted features send code to AI subprocessors, so the trigger and plan matter as much as the tool name.

Data flowPlan or editionWhat leaves the repositoryBuilt in, paid only, or outside component
Triage and remediation (Autofix)Confirm which AppSec Platform plans include AI triage and remediation for your organizationFinding code and minimal surrounding context go to AI subprocessors. Confirm the exact context window with Semgrep.Built into the platform. Confirm whether an agent-triggered call uses default subprocessors or your own model key.
MemoriesConfirm the plan that enables Memories and whether it is on by default for your tenantStored memory content is retained with your organization data. Confirm what memory content is stored and for how long.Built into the platform. Confirm whether Memories can be reused by agents through the hosted server.
AI-powered detection scansConfirm the plan and whether this feature is enabled for MCP-triggered scansFull file contents, uploaded context documentation and scan metadata leave the repository. Confirm which files are included.Built into the platform. Confirm whether a bring-your-own-key model option applies to your scans.
Hosted server calls (multi-tenant or single-tenant URL)Teams or Enterprise plan on an AppSec Platform organization, including trials, per the Semgrep MCP overviewTool requests and results travel to the hosted endpoint. Confirm which results contain code excerpts and which contain only metadata.Hosted by Semgrep, in beta. Confirm which endpoint your tenant uses and whether a single-tenant URL is available to you.
Guardian local scans (semgrep mcp)Confirm which Semgrep plan or license is required to install Guardian for your organizationScanning runs on the developer machine. Confirm whether any AI-assisted step inside Guardian sends code to a subprocessor.Local install as part of the Guardian bundle. Confirm which features need the AppSec Platform account and which work offline.
Archived standalone repository (github.com/semgrep/mcp)No active plan. Repository is archived and read-only.Confirm what the archived version sends. Do not assume the current official binary behaves the same way.Outside component, unmaintained. Replace with the official semgrep binary and confirm its data flow.

How an agent request turns into data sent to an AI subprocessor

An MCP client call is the starting point, and the destination depends on which Semgrep MCP server the client uses. With the hosted server, the agent sends its request over HTTP to the Semgrep endpoint, either the multi-tenant or your single-tenant URL. Semgrep then decides whether the request needs an AI feature. Triage and remediation send the code of the finding and minimal surrounding context to an AI subprocessor. AI-powered detection scans go further: they send full file contents, any context documentation you uploaded, and scan metadata. With Guardian, the local semgrep mcp` process runs on the developer machine, so the agent's file contents stay local until an AI-powered feature is invoked through Semgrep's own services. Confirm that path in writing before approving either option.

The main risk is that an agent can start these flows without a person choosing them. According to the Semgrep MCP tools documentation, agents can generate Autofix suggestions, reuse Memories and start AI-powered detection scans from an MCP client. A prompt, a tool description or a model decision can therefore trigger a transfer of full file contents to a subprocessor, which is a different exposure from a human clicking a button in the web app. Ask Semgrep which MCP tools map to which AI features on your plan, and decide whether scan-starting and Autofix tools should be available to every developer or only to a controlled group. Your review should also cover whether Memories, which persist across sessions, may hold sensitive code context that outlives a single task.

The subprocessor list and retention terms are the second half of the decision. Semgrep's privacy documentation names OpenAI, Amazon Bedrock and Cloudflare Workers AI as default AI subprocessors, and lists bring-your-own-key options including Anthropic, Google Gemini, xAI Grok and Microsoft Foundry. Semgrep states that all AI subprocessors operate under zero data retention agreements by default. Finding remediation data, meaning finding metadata, remediation guidance and patches, is retained indefinitely unless otherwise noted, and deletion requires a request to Support. Confirm which subprocessors your organization's tenant actually uses, whether a bring-your-own-key setting changes the processor, and whether your privacy and legal teams accept indefinite retention of remediation data in the Semgrep privacy documentation.

Where code and findings travel

The diagram starts at the MCP client, where an agent calls the hosted Semgrep MCP server or the local Guardian server, which both sit behind the Semgrep AppSec Platform. From there, AI-assisted features send finding code and minimal context for triage and remediation, or full file contents for AI-powered detection scans, to AI subprocessors. Default providers are OpenAI, Amazon Bedrock and Cloudflare Workers AI, while bring-your-own-key options route to Anthropic, Google Gemini, xAI Grok or Microsoft Foundry. Check which path your organization uses, which provider is configured, and what the retention terms are for each hop.

Data paths from an MCP client through Semgrep to default and bring-your-own-key AI providers.

Default subprocessors versus bring-your-own-key providers

When the organization uses Semgrep's default AI configuration, AI-assisted requests go to three named subprocessors. Semgrep's privacy documentation lists them as OpenAI, Amazon Bedrock and Cloudflare Workers AI. The amount of code each feature sends differs, so the provider list should be read alongside the data flows for triage, Memories and detection scans.

  • OpenAI: listed as a default AI subprocessor. Confirm whether it serves every AI feature that your teams enable.
  • Amazon Bedrock: listed as a default AI subprocessor. Ask Semgrep which AWS regions process requests for your tenant.
  • Cloudflare Workers AI: listed as a default AI subprocessor. Ask whether it handles any of the features you enable, and which ones.
  • Data volume by feature: triage and remediation send finding code with minimal surrounding context, while AI-powered detection scans send full file contents, uploaded context documentation and scan metadata.

Check the current subprocessor list with Semgrep and map each provider to the features your teams use, so the security review reflects the processing your tenant actually triggers.

What Semgrep retains and how deletion works

Semgrep keeps remediation records for an open-ended period and treats deletion as a request to Support, not a routine setting. The four cards below cover what is stored, what can contain your code, how to ask for deletion, and what the AI subprocessors do with data they process, so you can record each answer for your audit trail and residency review.

Remediation data kept indefinitely

Finding metadata, remediation guidance and patches are retained indefinitely unless otherwise noted in Semgrep's privacy terms. For an audit trail this helps, because every triaged finding and fix stays traceable after a project closes. It also means your records can outlive the contract. Ask whether any exception applies to your plan or to trial accounts, and record the answer in your data inventory.

Semgrep privacy terms

Patches can carry source code

Patches are the item most likely to hold your own code, because a fix shows changed lines and nearby context. Treat stored patches as copies of source code for classification and data residency purposes, not as neutral metadata. Ask Semgrep to confirm in writing whether patch content is stored in full or only as a diff, and in which regions that content is held.

Deletion through Support

Customers can request deletion by contacting Semgrep Support. Confirm whether your plan offers any self-service deletion before you rely on that route. Submit the request in writing, naming your organization, the data categories (finding metadata, remediation guidance and patches) and the repositories affected. Ask for written confirmation of what was deleted, what was kept and why, and how the request will be tracked to completion.

Zero retention at AI subprocessors

Semgrep states that its AI subprocessors operate under zero data retention agreements by default, so they do not retain or use your data to train their models. The default subprocessors are OpenAI, Amazon Bedrock and Cloudflare Workers AI. If you bring your own key for Anthropic, Google Gemini, xAI Grok or Microsoft Foundry, ask for that provider's retention terms in writing, because your own agreement with it governs how it handles the data.

Semgrep privacy terms

How the answer changes by situation

Healthcare, financial and other regulated teams usually start with a narrow question: can source code that touches protected data leave the repository at all? Code samples, configuration, comments and test fixtures can contain identifiers, schema names or records that a reviewer must treat as regulated. Under the default setup, triage and remediation send finding code and minimal surrounding context to AI subprocessors, and AI-powered detection scans send full file contents.

  • Full file contents: Detection scans send entire files, so a file holding regulated logic or realistic fixtures is exposed even when the finding is on one line.
  • Subprocessor choice: Confirm whether the default subprocessors (OpenAI, Amazon Bedrock and Cloudflare Workers AI) are acceptable, or whether a bring-your-own-key provider such as Microsoft Foundry is required under your own agreement.
  • Indefinite remediation retention: Finding metadata, remediation guidance and patches are kept indefinitely unless otherwise noted, so ask how deletion requests are submitted and recorded.
  • Assurance scope: Ask Semgrep which agreements cover this flow. DeployOpen prepares evidence for assessments but does not issue audit reports or attestations.

Before approval, confirm in writing which repositories are excluded from AI features and which roles may trigger them from an MCP client. The Semgrep privacy documentation is the starting point for that review.

Verifying data handling before the first agent connects

This sequence confirms which Semgrep MCP deployment and AI features are in scope, what the privacy terms say about code leaving your environment, and how deletion works, so the approving team has written evidence before any agent reaches a repository.

  1. Confirm plan, deployment and beta status

    The security lead or procurement contact checks which deployment the team intends to use: the hosted server, which requires an AppSec Platform account in an organization on a Teams or Enterprise plan (including trials), or Semgrep Guardian, which runs the MCP server locally with the semgrep mcp command. Confirm in writing that the hosted server is still in beta, and record the tenant URL in use, since the docs list a multi-tenant and a single-tenant address. Keep the plan confirmation and the deployment choice in the approval record, because the data flows in later steps differ between these paths.

  2. Obtain the privacy and subprocessor terms

    Download the current Semgrep data privacy and legal considerations page and the AI subprocessor list from the vendor, and store a dated copy in the review file. Ask the vendor to confirm in writing whether these terms apply to your contract, since your agreement may override public docs. Note the default AI subprocessors named in the documentation and whether any contract addendum changes them. The reviewer is done when every data flow in the rollout has a matching clause in the stored copy.

  3. Choose the subprocessor configuration

    Decide between the default AI subprocessors and any bring-your-own-key option the vendor offers for your tenant. For each option, record which provider will receive finding code, full file contents for AI-powered detection scans, uploaded context documents and scan metadata. Ask the vendor to confirm the zero data retention arrangement that applies to each chosen provider, and whether it is the default for your plan. Save the chosen configuration and the vendor's confirmation as evidence, since it determines which third party your code reaches.

  4. Decide which AI-assisted features are allowed

    The security lead decides, feature by feature, whether agents may trigger triage and remediation, reuse Memories, generate Autofix suggestions or start AI-powered detection scans. Triage and remediation send finding code and minimal surrounding context, while detection scans send full file contents, so the scan feature needs the strictest decision. Because the MCP tools docs show these actions can be triggered from an MCP client, the decision must be reflected in the client configuration and in the team's written standard. Record the approved list with the owner who signed off.

  5. Test with non-sensitive repositories

    Before any production repository is connected, the engineering lead runs the approved features against a small set of repositories that contain no secrets, regulated data or proprietary logic. The tester checks what appears in the agent transcript, which files were sent for detection scans, and whether any finding text or context includes unexpected material. Compare the observed behavior with the documented data flow, and log discrepancies as open findings. The step closes when the test record shows the flows match the approved list, and any mismatch is resolved or the feature is removed.

  6. Verify the deletion request process

    The privacy or compliance reviewer confirms how remediation data is handled, since finding metadata, remediation guidance and patches are documented as retained indefinitely unless otherwise noted. Submit a test deletion request through Semgrep Support using a non-sensitive finding, and record the ticket, the vendor's written response and the date of completion. Ask the vendor what is deleted, what remains in backups or subprocessors, and whether deletion covers data already sent to AI providers. The step is complete when the deletion evidence is filed with the approval record.

What a security reviewer asks to see

This table pairs each question a reviewer should put to Semgrep about the MCP server with the evidence to request and where that evidence comes from. Read it as a request list for Semgrep, your account administrator and your own logs, since the public privacy docs answer some questions but not all of them.

Reviewer questionEvidence to requestWhere it comes from
Which AI features can an agent trigger through MCP?List of MCP tools that start Autofix, reuse Memories or run AI-powered detection scans, with the plan that enables eachSemgrep MCP tools docs and account settings
Which findings and code leave our repository for triage or remediation?Written description of the finding code and surrounding context sent to AI subprocessors for triage and remediationSemgrep privacy docs, confirmed in writing by Semgrep Support
What does an AI-powered detection scan send?Confirmation that full file contents, uploaded context documentation and scan metadata are included, and which files a scan coversSemgrep privacy docs and scan configuration in our organization
Which AI subprocessors process our data by default, and can we change them?Current subprocessor list, whether bring-your-own-key is enabled, and the named model provider for each featureSemgrep privacy docs and organization AI settings
Do subprocessors keep or train on our data?Copy of the zero data retention agreement terms that cover each subprocessor used by our tenantSemgrep privacy docs and written Support response
How long are remediation records kept?Retention period in writing for finding metadata, remediation guidance and patches, and the process for deletion requestsSemgrep privacy docs, then written Support response
Is the hosted server or the local Guardian server in use, and which plan applies?Plan tier, tenant URL in use, and whether the server is in beta for our accountSemgrep MCP overview docs and our AppSec Platform account
Can an auditor trace what an agent sent and received?Logs or exports showing MCP sessions, tool calls and AI feature invocations, with retention settingsAccount audit settings and written Support response, since logging scope is not covered by the privacy docs

Questions buyers ask before approving Semgrep MCP data flows

Does the hosted Semgrep MCP server send my code to AI vendors?

Yes, when AI-assisted features run, portions of source code leave your repository and go to AI subprocessors. Triage and remediation send the finding code and minimal surrounding context. AI-powered detection scans send full file contents, any uploaded context documentation and scan metadata. The default AI subprocessors are OpenAI, Amazon Bedrock and Cloudflare Workers AI. An MCP client can start these flows, because agents can generate Autofix suggestions, reuse Memories and start AI-powered detection scans through the tools. Confirm with Semgrep exactly which hosted server operations invoke an AI subprocessor, so your data flow diagram covers each one.

Can AI features be turned off for a specific agent?

Confirm this with Semgrep before rollout, because the documentation supplied for this review does not describe a per-agent switch for AI features. What is established is that the tools an MCP client can call determine which AI flows it can start, since Autofix, Memories and AI-powered detection scans are all reachable through tools. Limiting the tool set is a permissions decision and is covered in the permissions sibling page. Ask Semgrep whether organization-level settings can disable AI-assisted features, whether those settings apply to both the hosted server and Guardian, and whether admins can see which client triggered each AI scan.

How long does Semgrep keep data, and what does deletion involve?

Finding remediation data, meaning finding metadata, remediation guidance and patches, is retained indefinitely unless Semgrep's privacy terms say otherwise. Customers can request deletion by contacting Semgrep Support. AI subprocessors operate under zero data retention agreements by default, so they do not retain or use your data to train their models. Ask Semgrep for the retention period of each other data type, including scan metadata and uploaded context documents, whether a deletion request also reaches the AI subprocessors, and what written confirmation you receive once deletion is complete. Record the answers in your vendor file.

Is bring-your-own-key a privacy improvement for Semgrep MCP?

It changes which AI vendor processes the data, but code still leaves your repository when AI features run. The default subprocessors are OpenAI, Amazon Bedrock and Cloudflare Workers AI. Bring-your-own-key options include Anthropic, Google Gemini, xAI Grok and Microsoft Foundry. The benefit is practical: the model provider's terms under your own contract apply in addition to Semgrep's, which can matter if you already hold an agreement with that provider. Confirm with Semgrep whether the zero data retention default still applies when you supply your own key, and confirm with your provider what retention, training and regional terms govern your account.

What does Semgrep Guardian keep locally on the developer machine?

Guardian runs the MCP server locally with the command semgrep mcp, and the Guardian bundle adds Hooks and Skills that scan agent-generated files with Semgrep Code, Supply Chain and Secrets. Running the server locally tells you where the process executes, but the supplied documentation does not state what Guardian caches, logs or stores on disk, or whether scanned content is sent to Semgrep's cloud or to AI subprocessors. Ask Semgrep for the local file locations, log contents, cache lifetime, and whether Guardian invokes any AI-assisted feature. Your endpoint team should then set retention and cleanup rules for those locations.

Who pays for what in a Semgrep MCP rollout?

Semgrep and your AI providers charge for the product, and DeployOpen charges for the review work, if you engage it. The hosted server requires an AppSec Platform account in an organization on a Teams or Enterprise plan, trials included, so request the plan and any AI usage terms in a Semgrep quote. If you use bring-your-own-key, your AI provider bills you directly. DeployOpen can review the rollout under a fixed scope agreed in writing before work starts, covering the data flow mapping, admin settings and the evidence your security team needs. DeployOpen does not publish a price list, and a quote follows from that written scope.

How DeployOpen tests Semgrep MCP data exposure before rollout

DeployOpen reviews how Semgrep MCP server data privacy works in your environment, from which AI-assisted features an agent can trigger to where source code, findings and remediation data end up and how long they stay. The work is scoped in writing first, then tested, documented and handed over with the evidence your security and compliance reviewers need.

How we scope

  • Confirm which MCP client, plan and server (hosted or Guardian) the agents will use before any testing starts.
  • List which AI-assisted features are in scope, including triage, remediation, Memories and AI-powered detection scans.
  • Agree in writing which repositories, subprocessors and retention settings the review will cover and what it will not cover.

How we build

  • Map each data flow from the agent to Semgrep and on to the AI subprocessor the configured setup actually uses.
  • Test what a prompt or tool call can trigger, such as Autofix suggestions or detection scans, and record what content leaves the repository.
  • Check retention and deletion settings against Semgrep's documented terms and record any gaps that need a vendor answer.

How we hand over

  • Deliver a written findings report with a data flow diagram, the content categories exposed and the retention position for each flow.
  • Provide recommended settings, approved-use guidance and a list of questions to put to Semgrep and your legal or privacy team.
  • Retest after fixes are applied and document the results so the evidence can be reviewed by your own compliance function.

How we support

  • Fixed-scope engagements set the deliverables and timelines in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as retainers when the Semgrep setup or vendor terms change.
  • Re-review is recommended when staff add new MCP clients, change plans or enable additional AI-assisted features.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.