MCP server for Snyk API & Web (Probely) — create targets, run scans, manage findings
Project description
Snyk API & Web MCP Server
Connect your AI coding assistant to Snyk API & Web so it can onboard scan targets, configure authentication, run DAST scans, and triage findings — all through natural language.
Built on FastMCP 2.0, works with Cursor, Claude Code, Devin, and any MCP-compatible client.
Naming note: Snyk API & Web was formerly known as Probely. The API endpoints (
api.probely.com), web console (plus.probely.app), and MCP tool names (probely_*) still use the legacy domain and prefix. Environment variables and config sections use the newSAW/sawnaming.
See USER_GUIDE.md for usage, examples, and tool reference.
This repository is closed to public contributions. We appreciate community interest, but we do not accept pull requests, issues, or other contributions from external contributors at this time. If you have found a security issue, please see SECURITY.md.
Requirements
- Python 3.10+
- Node.js 18+ and npm (for web target login recording via
playwright-cli; optional if using Playwright MCP instead) - Snyk API & Web API key
Quick Start
1. Get Your API Key
Go to https://plus.probely.app/api-keys and create an API key.
Important
Use a custom role, limited-scope API key for the Snyk API & Web MCP Server. Create the key only with the permissions required for the intended actions. Do not use a highly privileged or global API key, as this can affect your entire account and its resources.
2. Install
Cursor Marketplace (recommended for Cursor users)
Install directly from the Cursor Marketplace:
- Open the Snyk API & Web plugin page and click Install, or go to Settings → Plugins and search for Snyk API & Web
- Set your API key as an environment variable before launching Cursor:
export MCP_SAW_API_KEY="your-api-key"
The plugin installs the MCP server, rules, and skills automatically.
Devin MCP Marketplace (Devin users)
Install directly from Devin's MCP Marketplace:
- Open Devin and go to Settings → Configuration.
- Under MCP servers, click Open MCP Marketplace.
- Search for Snyk API & Web and click Install.
- When prompted, enter your API key.
No manual configuration needed — Devin handles the setup automatically.
One-command install (any MCP client)
uvx --from git+https://github.com/snyk/saw-mcp.git saw-mcp
Or add to your MCP client configuration:
{
"mcpServers": {
"SAW": {
"command": "uvx",
"args": ["--from", "git+https://github.com/snyk/saw-mcp.git", "saw-mcp"],
"env": {
"MCP_SAW_API_KEY": "your-api-key"
}
}
}
}
Alternative installation methods
Install from release tarball
tar -xzvf SnykAPIWeb-<version>.tgz
cd SnykAPIWeb
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Download from Releases and replace <version> with the actual version number (e.g., 1.0.0).
Clone from source
git clone https://github.com/snyk/saw-mcp.git
cd saw-mcp
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
3. Store Your API Key
The server reads your API key from (in order of precedence): environment variable MCP_SAW_API_KEY → .env file → config/config.yaml.
Option A: Environment variable (recommended for Marketplace / uvx installs)
export MCP_SAW_API_KEY="your-api-key"
Option B: .env file (recommended for source installs)
Run the setup script (prompts securely, no key in shell history):
./scripts/setup-env.sh
Or pipe from a secret manager: op read 'op://vault/item/key' | ./scripts/setup-env.sh
This writes a .env file in the project root (gitignored). The server loads it automatically at startup.
Option C: Secret reference (avoids storing the key in plaintext anywhere)
MCP_SAW_API_KEY and the config api_key field also accept a reference that is resolved at runtime, so the literal key never sits in a file:
export MCP_SAW_API_KEY="op://vault/saw-mcp/api-key" # resolved via the 1Password CLI (`op`)
export MCP_SAW_API_KEY="env:MY_SAW_KEY" # read from another environment variable
Avoid committing a plaintext key.
config/config.yamlis gitignored, and a plaintext key read from it logs a warning at startup.
4. Install Browser Automation (web targets with login)
Web target onboarding records login sequences in a real browser. Preferred for coding agents: playwright-cli via Shell:
npm install -g @playwright/cli@latest
playwright-cli install-browser chromium
Or run ./scripts/setup-playwright.sh from a cloned repo.
Alternative: install Playwright MCP as a second MCP server (better for MCP-only clients without Shell). See Web target prerequisites.
5. Configure Your IDE
If you installed from the Cursor or Devin marketplace, configuration is automatic. For other clients, add to your MCP client configuration:
{
"mcpServers": {
"SAW": {
"command": "uvx",
"args": ["--from", "git+https://github.com/snyk/saw-mcp.git", "saw-mcp"],
"env": {
"MCP_SAW_API_KEY": "your-api-key"
}
}
}
}
For host-specific setup see the Installation Guides.
Additional configuration options
- Override the base URL: add
"MCP_SAW_BASE_URL": "https://your-instance-url"to theenvblock. - Use a config file: set
"MCP_SAW_CONFIG_PATH": "/path/to/config.yaml"instead. - Set log level: add
"MCP_SAW_LOG_LEVEL": "DEBUG"(options: DEBUG, INFO, WARNING, ERROR, CRITICAL; default: INFO).
6. Start Using
Ask your AI assistant to:
- "Configure a Snyk API & Web API target from this OpenAPI schema / Swagger document / Postman collection."
- "Configure a Snyk API & Web web target for this authenticated application."
See prompts.md for a full catalog of example prompts — from simple one-liners to complex multi-target workflows.
Web target prerequisites
The SAW MCP server talks to the Snyk API & Web platform — it does not include a browser. To onboard web targets with login sequences, the AI needs browser automation via one of:
| Path | Best for | Setup |
|---|---|---|
playwright-cli (preferred) |
Cursor, Devin, Claude Code, Cloud Agents with Shell | npm install -g @playwright/cli@latest && playwright-cli install-browser chromium |
| Playwright MCP (fallback) | MCP-only clients without Shell (e.g. Claude Desktop) | Add Playwright MCP to your IDE's MCP config |
Workflow:
- Prompt with the target URL and credentials — e.g. "Add target example.com with credentials user@example.com / password123".
- The AI records the login in a browser (
playwright-clior Playwright MCP). - SAW MCP tools create the target and upload the sequence in the Probely sequence-recorder format.
Without browser automation, the AI falls back to form login (probely_configure_form_login) — simple single-page login only; no multi-step flows or 2FA.
See the Cursor installation guide for setup details.
IDE Integration
Detailed per-host guides live in docs/installation-guides/:
| Host | Guide |
|---|---|
| Cursor | install-cursor.md |
| Claude Desktop | install-claude.md |
| Devin / Other IDEs | install-devin.md |
Packaging
bash scripts/package.sh
Creates dist/SnykAPIWeb-<version>.tgz (version from snyk_apiweb/__init__.py).
Development & Testing
Run the Server (standalone)
Running the server directly starts it and waits for an MCP client connection. This is mainly useful for development and debugging:
./venv/bin/python -m snyk_apiweb.server
Development Mode (hot reload)
For active development with automatic reload on file changes:
./scripts/dev.sh
License
This project is licensed under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snyk_apiweb_mcp-1.2.0.tar.gz.
File metadata
- Download URL: snyk_apiweb_mcp-1.2.0.tar.gz
- Upload date:
- Size: 42.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca2d7c69b3a2cab5feb5982812cb51254a59a26d85dd118b7129c0719071daf5
|
|
| MD5 |
5dd0dc6f5aa48296277fa62b2e479ac1
|
|
| BLAKE2b-256 |
12edef578c37b2ebaf56fad45b6444113e2656d5cd0bbb960f21e39e71b942f9
|
Provenance
The following attestation bundles were made for snyk_apiweb_mcp-1.2.0.tar.gz:
Publisher:
release.yml on snyk/saw-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snyk_apiweb_mcp-1.2.0.tar.gz -
Subject digest:
ca2d7c69b3a2cab5feb5982812cb51254a59a26d85dd118b7129c0719071daf5 - Sigstore transparency entry: 2206878669
- Sigstore integration time:
-
Permalink:
snyk/saw-mcp@5ec3ebadf898cd6d45ef247d13b3ff789488e701 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/snyk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5ec3ebadf898cd6d45ef247d13b3ff789488e701 -
Trigger Event:
push
-
Statement type:
File details
Details for the file snyk_apiweb_mcp-1.2.0-py3-none-any.whl.
File metadata
- Download URL: snyk_apiweb_mcp-1.2.0-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a9b60602dc05b72dc1099f144d43995e6cff96b0a80ceea7f2002bc5dff01b
|
|
| MD5 |
c407b0c48609c129147e306d123df11a
|
|
| BLAKE2b-256 |
234b003cbefca8e86ebaadc439f2de06d21f3915382fd376b1f09c0965824213
|
Provenance
The following attestation bundles were made for snyk_apiweb_mcp-1.2.0-py3-none-any.whl:
Publisher:
release.yml on snyk/saw-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snyk_apiweb_mcp-1.2.0-py3-none-any.whl -
Subject digest:
16a9b60602dc05b72dc1099f144d43995e6cff96b0a80ceea7f2002bc5dff01b - Sigstore transparency entry: 2206878703
- Sigstore integration time:
-
Permalink:
snyk/saw-mcp@5ec3ebadf898cd6d45ef247d13b3ff789488e701 -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/snyk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5ec3ebadf898cd6d45ef247d13b3ff789488e701 -
Trigger Event:
push
-
Statement type: