# ZeroPath MCP (local)
claude mcp add --scope user zeropath \
--env ZEROPATH_BASE_URL=https://zeropath.com \
--env ZEROPATH_TOKEN_ID=<your-token-id> \
--env ZEROPATH_TOKEN_SECRET=<your-token-secret> \
--env ZEROPATH_ORG_ID=<your-org-id> \
-- uvx --from git+https://github.com/ZeroPathAI/zeropath-mcp-server zeropath-mcp-server
# SD Elements MCP (remote HTTP, optional)
claude mcp add --scope user --transport http sde-mcp-server \
https://<your-sde-instance>.sdelements.com/mcp \
--header "sde-api-key: <your-sde-api-key>"
Set up the ZeroPath integration
1. Provision ZeroPath and add teammates
If you do not have a ZeroPath tenant yet, see Accounts. Once the Security Compass integration is enabled on your organization, you can add teammates. ZeroPath roles are Admin, Member, and Viewer; see ZeroPath Teams and Permissions.
To add a teammate, go to Settings > Members, click Invite, enter the email address, and choose a role.
2. Connect a repository
ZeroPath scans a Git repository, so connect one before you map it. In the ZeroPath dashboard, go to Repositories > Add repository and follow the flow for your provider.
-
GitHub. Use the Install Github App button in the Add a Repository dialog. The GitHub App requests read access to code plus read/write access to checks and pull requests, so ZeroPath can post results and open fix pull requests.
-
GitLab. Use a group or project access token, or a dedicated account personal access token, with the
apiscope. The Maintainer role is recommended for automatic project webhooks. Connect under Add repository > GitLab. See the ZeroPath GitLab guide. -
Bitbucket. Connect through Add repository > Bitbucket. For Bitbucket Data Center, see the ZeroPath Bitbucket Data Center guide.
-
Azure Repos. Connect from the Azure tab of the same dialog. See the ZeroPath Azure DevOps guide.
| You can also connect a repository by direct URL with an access token, which is how many SD Elements pilots are set up. Token connections scan correctly but do not get the full set of GitHub App features, such as automatic pull request checks and fix pull requests. |
For provider walkthroughs, see the ZeroPath Quick Start.
3. Prepare the SD Elements project
ZeroPath does not change how you build a project in SD Elements. Create the project, complete its survey, and review the resulting Countermeasures. A typical web application project has a few hundred Countermeasures across phases such as Requirements and Development.
Complete the survey before you sync, because ZeroPath syncs the Countermeasures that SD Elements marks as relevant to the project. See Set up your SD Elements project in the ZeroPath documentation.
4. Connect SD Elements in the ZeroPath dashboard
This is a one-time step for each ZeroPath organization. See Connect your SD Elements instance in the ZeroPath documentation.
-
In ZeroPath, go to Settings > Integrations > Add Integration > Security Compass.
-
Enter your SD Elements Base URL and API Token.
-
Leave Enable Integration on, and click Create Integration.
| Enter the SD Elements API key only in the ZeroPath dashboard. Do not paste it into an AI assistant. Credentials never pass through the agent. |
5. Install the MCP servers
Two MCP servers drive the assistant side of the integration.
| Server | What it covers | Install |
|---|---|---|
The general ZeroPath tools (repositories, scans, issues, rules) and the Security Compass tools (project mappings, rule sync, audit, and push of the latest scan) in one server. The Security Compass tools appear automatically once the integration is enabled on your organization. See MCP installation for requirements. |
Runs locally through |
|
SD Elements MCP (optional) |
Your own hosted SD Elements server. It lets the assistant explore your SD Elements projects and Countermeasures. Authenticate with either an SD Elements API key (in the |
Nothing to install. It is hosted at |
Choose API key or OAuth 2.1 for the SD Elements MCP server
SD Elements supports OAuth 2.1 for its MCP server, so each user can sign in from their own client instead of storing an API key in a configuration file.
| Method | How to configure it |
|---|---|
OAuth 2.1 |
Add the SD Elements MCP server in your client using only its URL ( |
API key |
Include the |
The examples below use the API key method. To use OAuth 2.1 instead, remove the sde-api-key header from the SD Elements entry and complete the sign-in flow described in the OAuth guide.
| The ZeroPath MCP server and the ZeroPath connection to SD Elements are unaffected by this choice. ZeroPath authenticates to SD Elements with the API key you enter in the ZeroPath dashboard (step 4). |
The ZeroPath MCP uses four values: your ZeroPath base URL, organization ID, API token ID, and API token secret. For SD Elements MCP deployment and authentication details, see Agentic AI Workflow.
securitycompass-mcp is deprecated. Its tools are now part of the ZeroPath MCP. If you configured it earlier, remove it.
|
Claude Code
Run these commands, substituting your values. All options come before the server name, and -- separates the name from the command that launches the server. --scope user makes the servers available in all your projects.
If you prefer a file, the same two servers go under the mcpServers key in .mcp.json. See the Claude Code MCP documentation.
The Claude Code extension for VS Code uses the same MCP configuration as the CLI, so the commands above apply as they are. You can also run them in the VS Code integrated terminal. To confirm the setup, open the chat panel, type /mcp, and check that both servers show Connected. See Claude Code in VS Code.
Cursor
Cursor reads MCP servers from ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project), under the mcpServers key. See the Cursor MCP documentation.
{
"mcpServers": {
"zeropath": {
"command": "uvx",
"args": ["--from", "git+https://github.com/ZeroPathAI/zeropath-mcp-server", "zeropath-mcp-server"],
"env": {
"ZEROPATH_BASE_URL": "https://zeropath.com",
"ZEROPATH_TOKEN_ID": "<your-token-id>",
"ZEROPATH_TOKEN_SECRET": "<your-token-secret>",
"ZEROPATH_ORG_ID": "<your-org-id>"
}
},
"sde-mcp-server": {
"url": "https://<your-sde-instance>.sdelements.com/mcp",
"headers": {
"sde-api-key": "<your-sde-api-key>"
}
}
}
}
GitHub Copilot
GitHub Copilot in VS Code reads MCP servers from .vscode/mcp.json (per workspace) or your user settings.json, under the servers key. See the GitHub MCP documentation.
{
"servers": {
"zeropath": {
"command": "uvx",
"args": ["--from", "git+https://github.com/ZeroPathAI/zeropath-mcp-server", "zeropath-mcp-server"],
"env": {
"ZEROPATH_BASE_URL": "https://zeropath.com",
"ZEROPATH_TOKEN_ID": "<your-token-id>",
"ZEROPATH_TOKEN_SECRET": "<your-token-secret>",
"ZEROPATH_ORG_ID": "<your-org-id>"
}
},
"sde-mcp-server": {
"url": "https://<your-sde-instance>.sdelements.com/mcp",
"headers": {
"sde-api-key": "<your-sde-api-key>"
}
}
}
}
Codex (CLI and VS Code extension)
The Codex CLI and the Codex extension for VS Code share one configuration file, ~/.codex/config.toml. Add both servers under mcp_servers, using the url and http_headers fields for the hosted SD Elements server. See the Codex MCP documentation.
[mcp_servers.zeropath]
command = "uvx"
args = ["--from", "git+https://github.com/ZeroPathAI/zeropath-mcp-server", "zeropath-mcp-server"]
[mcp_servers.zeropath.env]
ZEROPATH_BASE_URL = "https://zeropath.com"
ZEROPATH_TOKEN_ID = "<your-token-id>"
ZEROPATH_TOKEN_SECRET = "<your-token-secret>"
ZEROPATH_ORG_ID = "<your-org-id>"
[mcp_servers.sde-mcp-server]
url = "https://<your-sde-instance>.sdelements.com/mcp"
http_headers = { "sde-api-key" = "<your-sde-api-key>" }
In the VS Code extension, you can add the same servers from the gear menu under MCP servers, then select Restart extension. To confirm the setup, run /mcp in Codex and check that both servers are listed.
6. Check your setup
Once a client is configured, ask your assistant: "Show me the Security Compass integration currently configured for my ZeroPath organization." You will see either the existing integration and its mappings, or a confirmation that none is set up yet. To test the SD Elements connection from ZeroPath, see Test the connection.
Then confirm the SD Elements credentials work: ask "Test my Security Compass connection against project <SDE project ID>." The assistant reports success and the number of Countermeasures it can see. In the dashboard, open Manage Security Compass integration, enter a project ID under Add Mapping, and click Test Connection.