Semgrep MCP server official vs community and enterprise setup

The official Semgrep MCP server is available through the hosted endpoint on Teams or Enterprise plans and through Guardian locally, while the standalone repo is archived. This page explains which to roll out, how to authenticate, and what admins can control.

On this page

Is the official Semgrep MCP server enterprise-ready for our coding agents?

The requirement is met only through the official Semgrep MCP server, in one of two forms. The first is the hosted server, which is in beta and requires an AppSec Platform account in an organization on a Teams or Enterprise plan, trials included. The second is Semgrep Guardian, which runs the server locally with the command semgrep mcp to scan code as an agent writes it, and which bundles the MCP server, Hooks and Skills in a single install. The standalone github.com/semgrep/mcp repository was archived on October 28, 2025 and is read-only, so it is not a rollout option. Its README directs users to the official semgrep binary for further updates. Any community copy or older install should be removed from the approved list.

The first decision is which path fits your agent estate. Guardian's docs say Claude Code, Codex and GitHub Copilot with the Guardian plugin connect to Semgrep's hosted remote server with OAuth and need no local Semgrep CLI, while other agents run through a locally installed CLI. Confirm with your agent vendor which of your approved tools support remote servers over HTTP, because that determines whether the hosted server is usable at all. The second decision is authentication. Semgrep recommends OAuth, where permissions follow your role in the organization you selected. An API token is the fallback when the client lacks OAuth support or you want to manage the credential yourself, and its permissions are the token's scope, capped by the role of the token's owner. Guardian's authentication docs discourage shared tokens and service accounts, so plan for per-user sign-in.

The third decision is which admin switches your platform offers. Claude Code admins can enable the semgrep@claude-plugins-official plugin in managed settings, and Codex admins can add the Guardian marketplace in the ChatGPT Admin Console Agent Security settings. On GitHub Copilot Business or Enterprise, MCP servers run only when the MCP servers in Copilot policy setting is on, and it is off by default. Deploying Guardian with a shared read-only token for users who cannot complete browser sign-in requires Semgrep Enterprise, so confirm your plan before you design around that option. Ask Semgrep and your agent vendor to confirm these settings in writing for your versions and tenant type.

Semgrep MCP server capabilities by plan and deployment path

This table compares each Semgrep MCP deployment path and sign-in option by plan, then names the outside component or admin setting it depends on. Read it as a checklist: a Teams or Enterprise account is the entry point for the hosted server, while the shared read-only token is limited to Enterprise. Plan availability for the single-tenant endpoint and Guardian is not stated in the supplied facts, so confirm it with Semgrep before approval.

Deployment path or settingTeams planEnterprise planNeeds outside component or admin setting
Hosted multi-tenant endpoint (semgrep.dev/api/mcp)Available (beta), including trialsAvailable (beta)AppSec Platform account in the organization; MCP client with remote HTTP support
Single-tenant endpoint (your tenant subdomain)Confirm availability with SemgrepListed in Semgrep docs; confirm with Semgrep for your tenantTenant-specific hostname and the client's remote server configuration
Guardian bundle (local semgrep mcp, Hooks and Skills)Confirm availability with SemgrepAdmin rollout documented; confirm entitlement with SemgrepLocal Semgrep CLI for agents other than Claude Code, Codex and GitHub Copilot
Archived standalone repository (github.com/semgrep/mcp)Not maintained; archived October 28, 2025Not maintained; archived October 28, 2025Use the official semgrep binary for current MCP server updates
OAuth sign-in (recommended for the hosted server)Available; permissions follow your role in the selected organizationAvailable; permissions follow your role in the selected organizationInteractive browser sign-in by each user
API tokenAvailable; scope capped by the token owner's roleAvailable; scope capped by the token owner's roleAdmin-managed credential rotation and revocation; use when OAuth is unsupported
Shared read-only token for users who cannot complete browser sign-inNot availableAvailable with Semgrep EnterpriseShared credential is rate-limited as one user and cannot be tied to one person
MCP servers in Copilot policy (GitHub Copilot Business or Enterprise)Off by default; a Copilot admin must turn it onOff by default; a Copilot admin must turn it onGitHub Copilot admin policy setting

How the hosted server and Guardian split the work

The hosted server and Guardian are two different ways to put Semgrep in front of an agent, and the choice decides where the connection lives and who approves it. The hosted server runs in Semgrep's cloud at the multi-tenant address ` or at a single-tenant address on your own tenant subdomain. The agent client connects to it over HTTP as a remote server, so the client holds the connection and the scan runs on Semgrep's side. The hosted server requires an AppSec Platform account in an organization on a Teams or Enterprise plan, including trials, and it is still in beta according to the Semgrep MCP overview.

Guardian takes the other path. It runs the MCP server locally with the command semgrep mcp and bundles it with Hooks and Skills in one install, so agent-generated files are scanned with Semgrep Code, Supply Chain and Secrets as the agent writes them. Per the Guardian docs, Claude Code, Codex and GitHub Copilot with the Guardian plugin use the hosted remote server with OAuth and need no local Semgrep CLI. Other agents run through a locally installed CLI, so the reviewer must confirm for each client which path applies and what gets installed on developer machines. Check the Guardian overview for the current list of supported clients before you approve a path.

Enforcement sits in two places, and you should review both. The first is the Semgrep account: for OAuth, permissions are the role you hold in the organization you selected, so the role model in your AppSec Platform decides what each engineer's agent can do. The second is the client's admin settings, such as the managed settings that control Claude Code plugins or the ChatGPT Admin Console controls for Codex, and GitHub Copilot's MCP servers in Copilot policy, which is off by default. A rollout is only controlled when the role assignments and the client-side switches agree, so confirm both before wider access.

Decisions to settle before choosing hosted, Guardian or both

Each choice below changes who the Semgrep MCP server acts as, how access is revoked, and what an audit log can attribute. Settle the deployment path, identity model and tenant boundary first, then decide how admins enforce the choice inside each coding agent.

Deployment path per agent

Hosted remote mode connects an agent to Semgrep's server over HTTP, while Guardian runs the semgrep mcp command locally. Per the Guardian docs, Claude Code, Codex and GitHub Copilot with the Guardian plugin use the hosted remote server with OAuth and need no local Semgrep CLI, while other agents run through a locally installed CLI. Map each agent you approve to one path, and confirm which path your staff actually install.

Guardian enterprise deployment

OAuth or API token

The Semgrep docs recommend OAuth for the hosted server, with API tokens for users who prefer to manage the credential or whose client lacks OAuth support. Under OAuth, the agent acts with the user's role in the organization selected at sign-in. Under an API token, permissions are the token's scope, capped by the role of the token's owner. Ask which identity each approved client will use, and who can issue and revoke tokens.

Authentication and access

Multi-tenant or single-tenant URL

The docs list a multi-tenant hosted URL at and a single-tenant URL on your own tenant subdomain. Choose the URL before rollout, because client configurations and allowlist entries are tied to it. Confirm with Semgrep which tenant your organization's findings and account sit in, and check that agents are not configured against the wrong endpoint.

Per-user sign-in or shared read-only token

Guardian authentication docs discourage shared API tokens and service accounts. A single shared credential is revoked for every user at once, its rate limit is shared, and its activity cannot be tied to a person. Deploying Guardian with a shared read-only token for users who cannot complete browser sign-in requires Semgrep Enterprise. Treat that option as an exception to be justified in writing, not a default for a team.

Admin channel for each agent

Enforcement happens in each agent's own admin surface. Claude Code admins can enable the semgrep@claude-plugins-official plugin in managed settings. Codex admins can add the Guardian marketplace in the ChatGPT Admin Console under Agent Security settings. For GitHub Copilot Business or Enterprise, MCP servers are used only when the MCP servers in Copilot policy is on, and it is off by default. Record which setting controls each agent before approving it.

Troubleshooting docs

Rollout scope by team

Decide which teams receive hosted access, Guardian, or both, and which repositories an agent may reach. Teams with browser sign-in and OAuth-capable clients fit the per-user model. Teams whose clients lack OAuth need a documented token owner and scope. Confirm that the archived community repository at github.com/semgrep/mcp is not used by any team, because updates are made through the official semgrep binary.

How the answer changes by coding agent and plan

Claude Code has the most direct central rollout path in the Guardian documentation. Semgrep's enterprise deployment docs say a Claude Code admin can enable the semgrep@claude-plugins-official plugin in managed settings, so developers receive the setup through organization configuration instead of individual installs. Claude Code connects to Semgrep's hosted remote server with OAuth, so the local Semgrep CLI is not needed on that path.

  • Plugin identifier: enable semgrep@claude-plugins-official in managed settings, and confirm the exact key and schema in the current Claude Code documentation before rollout.
  • Sign-in: each developer signs in with OAuth, so the agent acts with that person's role in the organization they selected.
  • Bundle contents: the Guardian bundle includes the MCP server, Hooks and Skills, so review the full plugin before approving it.
  • Plan requirement: the hosted server requires an AppSec Platform organization on a Teams or Enterprise plan, including trials.

Confirm with Anthropic how managed settings are delivered, enforced and locked for your Claude Code plan, and confirm with Semgrep which plan your organization needs for the hosted server.

Why the archived standalone repo should not be in the rollout

The standalone repository at github.com/semgrep/mcp should be kept out of any approved rollout. Its owner archived it on October 28, 2025, so it is read-only and deprecated. Its README says that further updates to the Semgrep MCP server are made through the official semgrep binary. A rollout built on the old repo would pin staff to code that no longer receives changes, so a security team that approves it is approving a server that will not get fixes. Before approval, ask Semgrep to confirm in writing which install path and hosted URL are the current supported route for your plan, since the hosted server and the Guardian bundle use different paths.

Inventory before you approve anything. Ask engineering leads and platform owners to search developer machines, shared dotfiles, repository templates and agent configuration files for references to the old repo or to a local MCP entry that was copied from it. Agent client settings often live in user-level or project-level files, so a server added by one developer can persist after a standard install is pushed. Record each match, the client it belongs to and who owns it, then remove or repoint it to the official path. Repeat the search after rollout, because a developer may reinstall an older setup from a README or blog post.

Once the inventory is complete, write the approved path into your agent standard as a single named configuration, with the owner of each change recorded. Confirm with Semgrep which hosted URL your organization should use, whether it is the multi-tenant or single-tenant address, and which credential type applies, so reviewers can check the approved configuration against the vendor's current documentation. Treat any configuration that still names the archived repo as a finding to fix, not as a legacy exception to tolerate.

Where the official Semgrep setup leaves gaps to cover

The official Semgrep setup covers the server itself but leaves gaps that an approval should close before staff connect agents. Each card names one gap, the control that closes it and what to check. Where a control lives in a vendor console, confirm its current state after every vendor change and retest it.

Hosted server is still in beta

The hosted Semgrep MCP server is in beta according to Semgrep's MCP overview, so its tools, behavior and settings can change between releases. The server requires an AppSec Platform account in an organization on a Teams or Enterprise plan, including trials, so record which account and plan each approval covers. Set a written standard that names the approved server URL, the review owner and a retest whenever Semgrep changes the server. Treat the beta label as a standing reason to re-review.

MCP overview docs

Shared tokens break accountability

Semgrep's Guardian authentication docs discourage shared API tokens and service accounts. Revoking one affects every user, shared credentials are rate-limited as a single user, and activity cannot be tied to the right person. Default to per-user OAuth. Where a user cannot complete browser sign-in, allow a token only under a written exception that names an owner, a restricted scope and an inventory entry. Shared credentials cannot show who ran a scan.

Guardian authentication docs

Copilot MCP policy is off by default

On GitHub Copilot Business or Enterprise, Semgrep's troubleshooting docs say MCP servers are used only when the MCP servers in Copilot policy setting is on, and that setting is off by default. Staff may see the server silently missing and open tickets with the wrong team. Confirm the policy state in the GitHub organization settings, record who may change it, and check it again after any GitHub policy change. A default-off setting looks like a broken tool.

Troubleshooting docs

Enterprise paths differ by agent

Each agent has its own rollout path. Claude Code admins enable the semgrep@claude-plugins-official plugin in managed settings, and Codex admins add the Guardian marketplace in the ChatGPT Admin Console Agent Security settings. Claude Code, Codex and GitHub Copilot with the Guardian plugin use the hosted remote server with OAuth and no local Semgrep CLI, while other agents run a locally installed CLI. Write one runbook per agent and record the install method in the inventory.

Enterprise deployment docs

Admin controls sit in three consoles

Semgrep organization roles and token settings, the agent vendor's managed settings, and the GitHub or ChatGPT admin consoles each hold part of the control set, and no single screen shows all of it. Assign each control a named owner in a written standard, then run an admin configuration review that opens every console and compares it with that standard. Include the Semgrep role in the review, since OAuth permissions equal the user's role in the selected organization. Map every control to one owner.

No single record of connections

No single place shows which users connected which agent to Semgrep. OAuth permissions follow the user's role, token permissions follow the token's scope capped by the owner's role, and each agent vendor keeps its own configuration. Build an inventory that lists each user, agent, install path and credential type, reconcile it against the Semgrep account and each vendor console on a recurring basis, and ask Semgrep which connection records its logs retain. Confirm log coverage with the vendor before relying on it.

Order of work for a central Semgrep MCP rollout

This sequence moves the organization from confirming the right Semgrep plan to a verified pilot, so that each agent connects through an approved path, uses the right identity, and can be cut off centrally if needed.

  1. Confirm the plan and organization eligibility

    The security or procurement lead confirms with Semgrep that the organization's AppSec Platform account sits in an organization on a Teams or Enterprise plan, and that any trial scope is understood. The hosted server requires this, so an account on another plan cannot serve as the foundation for a central rollout. Record the plan, the organization name and the owner of the account. The step is complete when that record is signed off and the security lead knows which Semgrep organization all users will join.

  2. Choose the connection path for each agent

    The platform or engineering lead maps each coding agent in use to one of two paths: the hosted remote server, which works with clients that support remote servers over HTTP, or Guardian, which runs the Semgrep MCP server locally with the Semgrep CLI for agents that need it. Check the current Semgrep documentation for which agents Guardian supports with the hosted remote server and which need a local CLI. The output is a written matrix of agent, path, and owner, reviewed by security before any agent is enabled.

  3. Set OAuth as the default and document token exceptions

    Make OAuth the default sign-in method for every user, since Semgrep recommends it for the hosted server. Permissions under OAuth follow the role the user holds in the selected organization, which keeps each person's access tied to their identity. Allow API tokens only for a named exception, such as a client without OAuth support, and record who approved it, what scope the token has, and who owns the token, because the token's effective permissions are capped by its owner's role. The step is complete when the default and the exception register are approved.

  4. Apply admin settings in each agent platform

    Platform administrators apply the controls each agent provides centrally rather than relying on individual developers. For Claude Code, this means enabling the Semgrep Guardian plugin in managed settings. For Codex, the admin adds the Guardian marketplace in the ChatGPT Admin Console's Agent Security settings. For GitHub Copilot Business or Enterprise, confirm that the MCP servers in Copilot policy setting is on, since it is off by default. Verify each setting by checking that a test user on the managed configuration sees the Semgrep server and that a user outside the policy does not.

  5. Restrict shared credentials and service accounts

    Security staff review whether any team plans to use a shared API token or service account for convenience. Semgrep's Guardian authentication guidance discourages this, because revoking one shared credential affects every user, shared credentials are rate-limited as a single user, and activity cannot be tied to the right person. For users who cannot complete browser sign-in, the Guardian enterprise deployment docs describe a shared read-only token that requires Semgrep Enterprise, so confirm the plan supports it before approving that path. The output is a list of any shared credentials, each with an owner and an approved reason.

  6. Pilot with one team and verify scans and revocation

    Run a pilot with one engineering team on one agent. Confirm that Semgrep scans the files the agent writes, covering Code, Supply Chain and Secrets where the chosen path includes them, and that findings appear for a deliberately introduced test issue in a non-production repository. Then revoke that user's access, or the token used in the pilot, and confirm the agent can no longer reach the server. Only when both checks pass, and the logs show activity tied to the correct person, should the rollout expand to other teams.

Decision path from agent to Semgrep scan

The path starts at the agent type. Claude Code, Codex and GitHub Copilot with the Guardian plugin connect to the hosted server over OAuth and need no local Semgrep CLI, so access follows the signed-in user's role in the selected organization. Other agents run a locally installed CLI and must complete browser sign-in. A shared read-only token is a last resort: it applies only on an Enterprise plan when browser sign-in is impossible, Guardian docs discourage shared tokens, and its scope is set by the token. The archived standalone repository is excluded. Check the role or token scope at the end of each path.

Agent type decides the sign-in path, and the account role or token scope governs access.

What a security reviewer asks to see for Semgrep MCP access

This table lists the controls a reviewer should confirm before approving the Semgrep MCP server, with the place each answer should come from. Read each row as a question to answer in the organization's own Semgrep and agent admin consoles, not as a setting assumed to be on. The main takeaway is that per-user OAuth on an eligible plan, with managed agent configuration and a check for shared tokens, is the evidence set that holds up in review.

Control questionWhat the reviewer should confirmWhere the evidence comes from
Is the hosted server in use on an eligible plan?The AppSec Platform organization is on a Teams or Enterprise plan, including trials, and the reviewer records that the hosted server is still in beta.Semgrep MCP overview docs and the organization's Semgrep account plan page
Is OAuth used instead of an API token?Each user connects with OAuth, which Semgrep recommends. Note any client that falls back to a token and why.Semgrep MCP authentication docs and the client's connector list
What can a token do and who owns it?For any API token, the scope is limited to what the agent needs, and the owner's role caps that scope. Confirm the owner is a named, current user.Semgrep MCP authentication docs and the token list in Semgrep settings
Is the agent's admin setting enforced centrally?Claude Code managed settings enable the Guardian plugin, and Codex admins have added the Guardian marketplace in Agent Security. Confirm users cannot override these.Claude Code managed settings and the ChatGPT Admin Console Agent Security settings
Is the MCP servers policy on for GitHub Copilot?For Copilot Business or Enterprise, the MCP servers in Copilot policy must be on, because it is off by default. Record the policy state and its owner.GitHub Copilot organization policy and Semgrep MCP troubleshooting docs
Are shared tokens absent, and is Enterprise status confirmed where needed?No shared API tokens or service accounts are in use for daily work. Any read-only shared token for users who cannot complete browser sign-in is approved and held on an Enterprise plan.Semgrep Guardian authentication docs, Guardian enterprise deployment docs and the Semgrep plan record
Is the archived standalone repository still in use?An inventory shows no team still runs github.com/semgrep/mcp, which is archived and read-only. Installs should use the official semgrep binary.Internal inventory of agent configs and the archived semgrep/mcp repository README
Does revocation work as expected?A test user's OAuth grant or token is revoked, and the reviewer confirms the agent loses access and the event is traceable to that user. Record the date and result.Test record kept by the security team, checked against the Semgrep account and agent admin console

Questions buyers ask before approving the Semgrep MCP server

Is the hosted Semgrep MCP server production-ready given it is in beta?

The hosted Semgrep MCP server is documented as beta, so treat it as a controlled rollout rather than a settled standard until Semgrep's documentation changes that label. Ask Semgrep for its current support commitments, change notice practices and known limitations in writing before you approve it for a wide group. A reasonable pilot approach is to start with a named group of developers on one organization, review the tools they actually use, and confirm that your admins can disable or revoke access quickly. Re-check the beta label at each review, because the status and the features it covers may change.

Which Semgrep plan do we need, and do trials qualify for the hosted server?

The hosted server requires an AppSec Platform account in an organization on a Teams or Enterprise plan, and the Semgrep documentation states that trials qualify. Confirm with Semgrep which plan your organization is on, because the features available to each tier can differ and some controls, such as shared read-only tokens for users who cannot complete browser sign-in, require Semgrep Enterprise. Ask for the plan details in a quote so the scope matches what your reviewers need. Trial access is useful for testing, but plan your approval around the paid tier you intend to keep.

Should we use OAuth or API tokens as the default for the hosted server?

OAuth is the recommended way to connect to the hosted MCP server, and API tokens are for teams that prefer to manage the credential themselves or use a client without OAuth support. Under OAuth, a user's permissions follow their role in the organization they selected. With an API token, permissions are the token's scope, capped by the role of the token's owner. Semgrep's Guardian authentication guidance discourages shared API tokens and service accounts, because revoking one affects every user and activity cannot be tied to the right person. Make per-user OAuth the default and reserve tokens for documented exceptions with named owners.

What does a Semgrep MCP rollout cost, and which parts recur?

The costs fall into four groups: the Semgrep subscription (Teams or Enterprise), agent licenses for the coding tools your staff use, internal admin time, and any outside rollout help. The Semgrep subscription and agent licenses usually recur on their own billing cycles, while admin time for policy setup, pilot review and onboarding is largely one-time, with periodic review after that. Costs rise with the number of seats, the number of tools in scope and the amount of Enterprise-only control you need. Ask each vendor for the price of your exact plan and seat count in writing, and ask Semgrep to confirm which features your tier includes. No figures are given here because the research supplied for this page does not include pricing.

What can our own admins configure in the docs and consoles without outside help?

Much of the setup is within reach of an internal team, including reading the Semgrep MCP overview and authentication documentation, choosing OAuth or tokens, and reviewing who holds which role. For Claude Code, admins can enable the Semgrep Guardian plugin in managed settings. For Codex, admins can add the Guardian marketplace in the ChatGPT Admin Console under Agent Security settings. For GitHub Copilot Business or Enterprise, the MCP servers in Copilot policy setting is off by default and must be turned on before MCP servers are used. Your team still needs to verify each control in its own tenant, test the result and document who approved it.

What would an outside partner scope for a Semgrep MCP rollout?

An outside partner would scope the work in writing before starting, typically covering which clients and plans are in scope, the authentication model, the admin settings to configure, the pilot group and the evidence your reviewers need. DeployOpen's security testing covers AI agent rollouts: it tests the setup for prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings, then delivers a findings report with fixes and a retest. Engagements are fixed-scope, so deliverables and timelines are agreed before work begins, and a quote follows from that written scope. DeployOpen does not issue audit reports or certifications, so compliance sign-off stays with your auditors.

How DeployOpen tests and rolls out agent access to Semgrep

DeployOpen approaches Semgrep MCP server rollouts as a scoped, written engagement: first deciding between the hosted server and Guardian, then testing the setup your admins and agents will actually run. The work covers permissions, sign-in, admin approval and the evidence a security review will ask for.

How we scope

  • Written scope that names which coding agents, plans and server modes (hosted or Guardian) are in the rollout
  • Inventory of which staff use Claude Code, Codex, Cursor, Copilot or VS Code and how each connects
  • Agreed decision on OAuth per user versus any token, with shared credentials ruled in or out up front
  • Confirmation of Teams or Enterprise plan status, the Enterprise requirement for shared read-only tokens, and beta status

How we build

  • Configure admin controls such as managed plugin settings and marketplace approval for each agent in scope
  • Test the read-only URL and token scopes against the permissions each role should have
  • Test prompt injection and risky tool calls from scanned code, plus credential handling and client allowlisting
  • Verify where code and findings are sent, and check that the chosen setup matches the data flow the organization approved

How we hand over

  • Findings report with severity, reproduction steps and the fix for each issue
  • Written rollout guide covering admin settings, sign-in steps and a retirement plan for the archived standalone repository
  • Retest after fixes so the approved configuration is confirmed before wide rollout
  • Evidence pack for security reviewers: configuration records, test results and access decisions

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer when the official server or Guardian changes
  • Periodic review of token ownership, role changes and user access as staff join or leave
  • Re-testing when the hosted server leaves beta or when a new agent is added to the approved list
  • Clear hand-off points between DeployOpen and your identity, engineering and security teams

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.