Single-tenant URLThe steps on this page use
https://semgrep.dev/api/mcp. On a single-tenant deployment, replace that URL with https://YOUR_TENANT.semgrep.dev/api/mcp. Use your subdomain for YOUR_TENANT. To connect to the read-only URL instead, see Read-only URL.Connect with OAuth
Configure the client with:- Transport: streamable HTTP
- URL:
https://semgrep.dev/api/mcp - Authentication: OAuth
mcp-remote, a third-party npm package:
Connect with an API token
Configure the client with:- Transport: streamable HTTP
- URL:
https://semgrep.dev/api/mcp - Header:
Authorization: Bearer YOUR_SEMGREP_APP_TOKEN
YOUR_SEMGREP_APP_TOKEN with a Web API or Read-only API token.
If your client supports only local servers over stdio, pass the header through mcp-remote. The following example stores the token in the configuration file. Keep that file out of version control.