Semgrep MCP security: permissions, read-only URL and token scopes

The hosted Semgrep MCP server limits agents through the read-only URL, API token scopes and the existing AppSec Platform permissions, on Teams or Enterprise plans. The read-only URL only filters the tool list, so a Read-only API token is required to restrict what the credential can change.

On this page

Can the Semgrep MCP server be limited to read-only use?

Yes, but only with two controls used together. The hosted Semgrep MCP server can be restricted to reads on a Teams or Enterprise plan, including trials, while the server is in beta. The first control is the read-only URL, which on multi-tenant deployments is the read-only path of the hosted endpoint. It removes tools that triage findings, generate fixes, apply policies, configure rules, create tickets, and start scans or workflows, so the client never sees them. The second control is a Read-only API token. The Semgrep documentation is explicit that the URL limits what the client is shown but does not limit the credential, so an agent holding a broader token could still call write operations through another route.

The reviewer must therefore confirm three things before approving the setup. First, that the agent is configured only with the read-only URL and not the general endpoint. Second, that the token issued for that agent has the Read-only scope, not Web API, which allows all read and write operations, and not Agent (CI), which allows writes on scans. Third, that the token is stored outside version control, since Semgrep advises treating it like a password. Member is not a supported token type for this server, so it should not be a fallback.

Open decisions remain. Confirm with Semgrep whether the read-only scope covers every tool your staff will need, and whether a separate Agentic Workflows restriction applies, because only admins can trigger or schedule those workflows through the server. Decide who may hold a token and how it is rotated and revoked. Finally, check the Semgrep troubleshooting guidance and your own test tenant to verify that a write attempt with the read-only token actually fails before you record the control as in place.

Permission controls by URL, token scope and plan

This table compares each control that limits what an agent can do through the hosted Semgrep MCP server: the read-only URL, the four API token scopes and the admin-only Agentic Workflows setting. Read each row for what it allows, whether the organization must configure it, and which plan or role it depends on. The main takeaway is that hiding tools from the client and restricting the credential are separate controls, and both are needed.

ControlWhat it allowsBuilt in or configured by the organization, and plan or role
Hosted server (beta)Hosted Model Context Protocol server, still in beta, which uses existing AppSec Platform permissions for every tool callRequires an AppSec Platform account in an organization on a Teams or Enterprise plan, including trials; confirm beta terms before approval
Read-only URLOnly read tools, plus discover, semgrep_account and semgrep_app_link; triage, fix generation, policy, rule, ticket and scan tools are left out of the clientConfigured by the organization through the endpoint the client uses; it limits tools the client sees but does not restrict the credential
Read-only API tokenReads only, so the credential cannot change data even if a write tool is reachedOrganization creates and manages the token; pair it with the read-only URL to limit both the tool list and the credential
Web API tokenAll read and write operations across the platformOrganization-issued token with the broadest scope; treat as a high-risk credential for agents
Agent (CI) tokenRead and write on scans onlyOrganization-issued token intended for scan pipelines; confirm it does not expose other write paths for your use case
Member tokenNot supported by the hosted MCP serverDo not plan rollout around this scope; use a supported token scope instead
Agentic Workflows (trigger or schedule)Starting or scheduling workflows through the MCP serverAdmin-only; regular members cannot trigger or schedule workflows through the server

How each Semgrep MCP tool call is checked

Three separate layers decide what an agent can do through the hosted Semgrep MCP server, and each one is set by a different owner. The URL decides which tools the client is shown. Each tool call that does get through is then sent through the same API route the AppSec Platform uses for its own users, and Semgrep checks permissions at that point. The API token scope decides what the credential itself can do. A reviewer should confirm all three layers separately, because the read-only URL alone does not limit the credential, as the Semgrep authentication docs state, and a token with broad scope can still act through any URL it reaches.

The second layer is where the AppSec Platform role model applies to agent calls. Semgrep documents that the hosted server uses the caller's existing AppSec Platform permissions, so an agent acting for a user should not be able to do more than that user could do in the platform. Before rollout, confirm which roles in your organization can edit projects, change policies, manage custom rules or update settings, and then check that the people whose sessions will drive agents hold no more than the access the agent should have. The Semgrep tools docs also say that only admins can trigger or schedule Agentic Workflows through the MCP server, which is a control to record in your approval decision.

The third layer is the credential. Semgrep's authentication docs say to treat the API token like a password and not to commit configuration files that contain it to version control. Choose the token scope deliberately: the Web API scope allows all read and write operations, the Read-only scope allows reads only, and the Agent (CI) scope allows read and write on scans. Member is not supported for this server. For an agent that only reviews findings, a Read-only token paired with the read-only URL is the narrowest combination the docs describe. Confirm with Semgrep how token rotation and revocation work for your plan before you issue tokens to developers.

Which Semgrep MCP tools change data or trigger work

The Semgrep MCP server exposes more than read access. Several tools edit projects, rules, policies, tickets, settings and scans, and each one is limited differently by the read-only URL, the API token scope and the user's role. Use the cards below to map each change to the control that removes it before you approve the hosted server for an agent.

Triaging and fixing findings

Triage tools change the status of findings in the AppSec Platform, and fix-generation tools produce changes an agent can propose or apply to code. Both are write actions on data your security team relies on for audit trails. The read-only URL removes these tools from the client's tool list, and a Read-only API token stops the credential from making them even if another URL is used. Check whether your agents need triage at all before granting it.

Tools docs

Applying policies and configuring rules

Policy tools change which findings block work across projects, and rule tools can create, update and delete custom rules. A change here affects every scan that uses the rule set, so one agent action can alter enforcement for a whole organization. Use the read-only URL to hide these tools from clients, and use a Read-only token so the credential cannot write rules even when a client connects to a different endpoint. Confirm who owns rule changes in your organization before any agent can make them.

Editing projects and organization settings

The full server can edit projects and update organization settings, which govern access and scanning defaults for the whole tenant. These changes depend on role, token scope and plan, so a permission that looks narrow may still reach settings if the token is a Web API token. Require a Read-only token for agent use, and confirm that no Web API token is stored in developer configuration. Review the administrator list alongside the token inventory.

Creating Jira and Linear tickets

Ticket tools create issues in Jira or Linear from Semgrep findings. This is an external write, so an agent can fill a tracker with duplicate or low-priority items, and the tickets become visible to the teams that work them. The read-only URL removes these tools, and a Read-only token blocks them at the credential level. If you want ticket creation, decide which project receives agent-created tickets and who reviews them.

Starting scans and Agentic Workflows

Scan tools start new scans, and Agentic Workflows can run multi-step work on code. The Semgrep tools docs state that only admins can trigger or schedule Agentic Workflows through the MCP server, so a non-admin user cannot start them even with a broader token. Scan tools still consume platform and CI resources, and an Agent (CI) token allows read and write on scans, so it is the token type to assess when scans are needed. Confirm which identities hold admin rights before approval.

Authentication docs

Decision path for an agent tool call

The path starts when an MCP client connects to either the full hosted URL or the read-only URL on a multi-tenant tenant. The read-only URL filters the tool list the client sees, but it does not limit the credential. Each tool call then goes through the same API route as the AppSec Platform, where Semgrep checks the user's permissions and the API token scope before allowing or denying the request. Check the URL choice, the token scope and the user's role at each control point.

How an agent tool call is filtered by URL and then checked against role and token scope.

Decisions to make before choosing URL and token scope

Before an agent connects to the hosted Semgrep MCP server, reviewers need to settle which URL it uses, which token scope backs it, who can trigger workflows and where credentials live. Each decision below changes what an agent can read or change, so each one should be recorded in the rollout approval.

Read-only URL or full URL

The read-only URL shows the client only read tools plus discover, semgrep_account and semgrep_app_link. The full URL also exposes tools that triage findings, generate fixes, apply policies, configure rules, create tickets and start scans. Reviewers should decide per client which URL is approved, and treat the read-only URL as a view control rather than a credential control. Default agents to the read-only URL unless a named workflow needs writes.

Tools docs

Token scope per client or team

The URL does not limit the credential, so the token scope sets the real ceiling. Web API allows all read and write operations, Read-only allows reads only, and Agent (CI) allows read and write on scans. Member is not supported. Ask for a separate token per client or team so that revoking one agent does not affect others and each token's scope is recorded in the inventory.

Authentication docs

Agent (CI) tokens for pipeline scans only

An Agent (CI) token can read and write scan results, which suits a pipeline that uploads findings. It is a poor fit for an interactive coding agent on a developer laptop, where the same token would sit in local configuration. Reviewers should confirm that Agent (CI) tokens are issued only to CI systems and stored as pipeline secrets, and that developer agents use a Read-only token unless a write need is documented.

Admin rights for Agentic Workflows

Semgrep's tools documentation says only admins can trigger or schedule Agentic Workflows through the MCP server. That places the start and scheduling of automated work with a small group. Reviewers should name who holds admin rights in the AppSec Platform, confirm that non-admin staff cannot start workflows through an agent, and review that list whenever roles change.

Token storage outside version control

Semgrep's authentication docs say to treat the API token like a password and not to commit configuration files that contain it to version control. A token pasted into a shared MCP config file can leak through a repository, a dotfiles backup or a screenshot. Ask teams to store tokens in the approved secrets manager or the client's credential store, add MCP config files to ignore rules, and rotate any token that has been exposed.

Single-tenant or multi-tenant URL

The docs list a multi-tenant hosted URL and a single-tenant URL that uses your tenant name as the host. The URL choice determines which organization's data and permissions the agent reaches, so a wrong URL can point an agent at the wrong account. Reviewers should record the exact URL each client uses, confirm it matches the organization that owns the token, and check the tenant host against the account the security team administers.

Semgrep MCP overview

How the permission answer changes by situation

A team that only needs to read findings, such as a security review group or an audit support team, should connect to the read-only URL and use a Read-only API token. The URL hides tools that change state, but the token is what stops the credential from writing, so both controls are needed.

  • Endpoint: on multi-tenant, which exposes the read tools plus discover, semgrep_account and semgrep_app_link`.
  • Token: a Read-only API token, which allows reads only. Do not give the same agent a Web API token for convenience.
  • Excluded tools: triaging findings, generating fixes, applying policies, configuring rules, creating tickets and starting scans or workflows are left out of this URL.
  • Shared configuration: keep the token out of version control and out of shared agent config files, since the authentication docs say to treat it like a password.

Before rollout, confirm that the client lists only read tools and that a test write attempt fails under the read-only token.

Gaps the read-only URL and token scopes leave open

The read-only URL narrows which tools an agent sees, but it does not narrow the credential behind it. Several gaps remain between a read-only setup and what a token can actually do, and each one needs a deliberate control before staff connect coding agents to the hosted server. The cards below cover what to close and what to confirm with Semgrep.

URL alone does not limit the credential

The read-only URL only controls which tools the client is shown. Semgrep's docs state it does not limit the credential, so a token with broader rights still permits write operations if a client calls them through another route. Pair the read-only URL with a Read-only API token so both the tool list and the credential are restricted. Confirm with Semgrep that the token scope is enforced on every API route the MCP server uses.

Authentication docs

Web API scope allows all writes

The Web API token scope permits all read and write operations. A token created with this scope and placed in an agent configuration can triage findings, edit projects, change policies and update organization settings. Treat it as an administrative credential, avoid it for individual developer agents, and reserve it for owners who need full platform access. Ask Semgrep which operations this scope covers in your plan.

Token scope reference

Hosted server is still in beta

The hosted Semgrep MCP server is documented as beta. Tool names, permission behavior and read-only URL handling can change between releases, so a control verified last quarter may not hold today. Re-test the read-only URL and token combination after each documented change, and record which version of the client and server your review covered. Ask Semgrep for its change notice process and the stability commitments it makes for beta features.

MCP overview docs

Member tokens are not supported

Semgrep documents that the Member role is not supported for the hosted MCP server. Teams that assume a least-privilege Member token for developers will find no such option, so developer agents may end up on a Read-only or Web API token. Decide which role each agent user needs, then confirm with Semgrep how read-only and agent-scoped tokens are issued and revoked for individual developers.

Authentication docs

Tool catalog depends on role and plan

The full server can edit projects, manage custom rules, apply policies, create Jira and Linear tickets and update organization settings, with the exact set depending on role, token scope and plan. Two users on the same organization may therefore see different tools. Only admins can trigger or schedule Agentic Workflows. Review the tool list each role receives in a test organization, and ask Semgrep to confirm the mapping for your plan.

Tools and capabilities

Client allowlisting and audit sit outside scope

Token scopes and URLs do not decide which AI clients may connect, and this page does not cover the audit trail for MCP calls. Your agent platform's allowlist, approval prompts and logging determine whether an unapproved client or a rogue configuration file can reach the server. Store the token in a secrets manager rather than in project files, since Semgrep advises treating it like a password. Confirm with Semgrep which call events its platform records.

Evidence a security reviewer asks for on Semgrep MCP permissions

This table lists the records a reviewer should collect before approving the hosted Semgrep MCP server, with the source of each item in the Semgrep docs or AppSec Platform settings. Use it as a checklist: if an item cannot be produced, treat the permission it covers as unverified.

Evidence itemWhat to collectWhere it comes from
Endpoint each agent usesThe exact MCP URL configured in each client, marked as full or read-only, per agent and per developer groupHosted URLs listed in the Semgrep MCP overview and authentication docs, checked against each client's MCP configuration
Token scope and ownerFor each credential, its scope (Web API, Read-only, or Agent (CI)), the named owner, and the date it was issuedAPI token settings in the AppSec Platform, mapped to the scopes described in the authentication docs
Role of each user who calls the serverThe AppSec Platform role of every person whose permissions the agent inherits, and confirmation that Member is not usedOrganization member and role settings in the AppSec Platform, with the authentication docs as the reference for inherited permissions
Admin-only Agentic WorkflowsList of workflows that an admin can trigger or schedule through the MCP server, and who holds admin rightsTools docs, which state that only admins can trigger or schedule Agentic Workflows, plus the admin list in AppSec Platform settings
Write-capable tools in useRecord of which full-server tools are enabled for each client, such as project edits, rule changes, policy changes, tickets and settingsTools docs, which list the write actions the full server can perform, compared with the client configuration
Token storage locationWhere each token is kept, who can read it, and confirmation that no configuration file holding it is committed to version controlAuthentication docs, which say to treat the API token like a password and not to commit it
Troubleshooting and change recordsLogs of connection failures, scope changes and client reconfigurations, with the steps taken to resolve each oneTroubleshooting docs for the hosted MCP server, plus your own change tickets and client configuration history

Questions buyers ask before approving Semgrep MCP permissions

Is the read-only URL enough to limit what an AI agent can do?

No. The read-only URL only limits which tools the client sees: it provides the tools that read data, plus the discover, semgrep_account and semgrep_app_link tools, and leaves out tools that change things such as triaging findings, generating fixes, applying policies, configuring rules, creating tickets, and starting scans and workflows. Semgrep's documentation states that it does not limit the credential itself. A reviewer who needs the agent to be unable to write should pair the read-only URL with a Read-only API token, and should confirm with Semgrep how the two controls interact in their tenant.

What does a Read-only API token prevent that the URL does not?

A Read-only API token restricts the credential itself to reads, so write operations should be refused even if a client calls a tool that is not hidden from its tool list. Semgrep documents four token scopes for the hosted server: Web API allows all read and write operations, Read-only allows reads only, Agent (CI) allows read and write on scans, and Member is not supported. Confirm with Semgrep that the token is enforced at the API route for every tool, and test the boundary with a non-production organization before approving broader use.

Can Member tokens be used with the hosted Semgrep MCP server?

No, according to Semgrep's documentation, Member is not a supported token scope for the hosted MCP server. The supported scopes are Web API, Read-only and Agent (CI). Teams that expected to hand out individual member-level access should plan around the supported scopes instead, and should confirm the current list with Semgrep before writing it into an approval policy, because scope names and availability can change during beta.

Is the hosted Semgrep MCP server ready for production use given its beta status?

Semgrep describes the hosted MCP server as being in beta, so it should be treated as a feature that can change. The server requires an AppSec Platform account in an organization on a Teams or Enterprise plan, including trials. Before a production rollout, ask Semgrep for the current support terms, the change notice process, and any known limits for beta features, and run the read-only and token scope tests in a controlled group first. Beta status does not by itself answer whether the controls are adequate for your data.

What must an organization configure itself to keep the agent restricted?

Several controls sit with the customer rather than the default setup. The organization must choose the server URL (the read-only URL or the full server), issue tokens with the narrowest scope that fits the use case, and decide who can create tokens. Semgrep's documentation says only admins can trigger or schedule Agentic Workflows through the MCP server, so admin roles should be reviewed. Semgrep also advises treating the API token like a password and not committing configuration files that contain it to version control. Store tokens in your secret manager and document the owner of each token.

What drives the effort and cost of restricting Semgrep MCP access?

The main drivers are the number of teams and coding agents involved, how many distinct token scopes you need, and how much testing your security team wants before approval. Costs fall into three groups: the Semgrep plan itself (Teams or Enterprise is required for the hosted server), internal time to define scopes and owners, and any outside testing. Semgrep's pricing is set by Semgrep, so ask for the plan details and what the tenant includes in a written quote. Recurring costs include token rotation and periodic review of which clients hold which scope.

Does an outside firm need to help set up Semgrep MCP permissions?

Not necessarily. The read-only URL and token scopes are configured in your Semgrep tenant, and a team with access to the admin settings can do the basic setup. An outside firm becomes useful when you want independent testing of whether an agent can perform actions the policy forbids, or when you need written evidence for a security review. DeployOpen tests AI agent setups, including tool and file permissions, credential handling and admin settings, and delivers a findings report with fixes and a retest. Scope and deliverables are agreed in writing before any work starts.

Who should approve a broader token or a write-capable URL?

The approval should sit with a named owner in security, with the platform or engineering lead who owns the Semgrep tenant as a required second approver. The request should state the agent, the user group, the exact scope and the business reason, and it should record why the read-only URL and Read-only token were not enough. Semgrep documents that write-capable tools can edit projects, change custom rules, apply policies, create Jira and Linear tickets and update organization settings, so those actions deserve a formal decision. Review the grant on a fixed schedule and revoke it when the use case ends.

How DeployOpen tests Semgrep MCP permissions before rollout

DeployOpen reviews how a Semgrep MCP connection is actually limited before staff rely on it, starting from the URL the client connects to and the token behind it. The review covers which tools the agent can see, what the credential can change, and whether admins have the controls they need to enforce those limits. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • We confirm which Semgrep deployment, hosted URL and plan your organization uses before testing begins.
  • We list each MCP client and role that will connect, including whether read-only or full URLs are in use.
  • We agree in writing which token scopes, Agent (CI) tokens and admin-only workflows are inside the review.

How we build

  • We build a test matrix that compares what each URL exposes against what each token scope can actually do.
  • We attempt write actions such as triaging findings, editing rules, applying policies and creating tickets under each credential.
  • We check token storage and configuration files for committed secrets, since the token should be handled like a password.

How we hand over

  • You receive a findings report that ties each permission gap to the URL, token scope or role that caused it.
  • Each finding comes with a recommended fix, such as a narrower token scope, a read-only URL or an admin-only setting.
  • We retest the fixed configuration and document the results so your security team can review the evidence.

How we support

  • Ongoing support and continuous testing are available as a retainer when rules, roles or clients change.
  • We can rerun the permission checks after Semgrep updates the MCP server, since the hosted server is in beta.
  • We prepare evidence for your access reviews and security questionnaires, without issuing any audit report or attestation.

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.