MCP Server Setup
Use Vergate from Claude Code, Cursor, OpenClaw, or any MCP-compatible tool.
The Vergate MCP (Model Context Protocol) server lets AI coding assistants run security scans directly. It runs on your machine and talks to the Vergate cloud backend over HTTPS.
#Installation
#Via pip (recommended)
pip install vergate-mcp#Configuration
Set two environment variables:
export VERGATE_API_KEY="pk_your_key_here"
export VERGATE_BACKEND_URL="https://api.vergate.dev"
# Optional: pin the server to a single project
export VERGATE_PROJECT_ID="your-project-uuid"#Per-Project Keys (Recommended)
The dashboard can generate a project-scoped API key that locks the MCP server to a single project. With a scoped key the server automatically pins every tool to that project — you never pass project_id manually, and the key cannot read or modify any other project.
Create the key
Copy your client's snippet
{
"mcpServers": {
"vergate": {
"command": "vergate-mcp",
"env": {
"VERGATE_API_KEY": "pk_your_project_key_here",
"VERGATE_BACKEND_URL": "https://api.vergate.dev",
"VERGATE_PROJECT_ID": "your-project-uuid"
}
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"vergate": {
"type": "local",
"command": ["vergate-mcp"],
"enabled": true,
"environment": {
"VERGATE_API_KEY": "pk_your_project_key_here",
"VERGATE_BACKEND_URL": "https://api.vergate.dev",
"VERGATE_PROJECT_ID": "your-project-uuid"
}
}
}
}Protect the key
list_projects returns just that project, create_projectis disabled, and any other project's resources return 404.#Claude Code Setup
Install the MCP server
pip install vergate-mcpAdd to Claude Code config
~/.claude/claude_desktop_config.json or project .mcp.json:{
"mcpServers": {
"vergate": {
"command": "vergate-mcp",
"env": {
"VERGATE_API_KEY": "pk_your_key_here",
"VERGATE_BACKEND_URL": "https://api.vergate.dev"
}
}
}
}#opencode Setup
Add the same server to opencode.json (project) or ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"vergate": {
"type": "local",
"command": ["vergate-mcp"],
"enabled": true,
"environment": {
"VERGATE_API_KEY": "pk_your_key_here",
"VERGATE_BACKEND_URL": "https://api.vergate.dev",
"VERGATE_PROJECT_ID": "your-project-uuid"
}
}
}
}#Stdio Transport (Default)
The MCP server communicates over stdin/stdout using JSON-RPC 2.0. This is the default and recommended transport for Claude Code, opencode, and OpenClaw.
#HTTP/SSE Transport
For web-based tools (Lovable, Base44), use HTTP transport:
vergate-mcp --transport http --port 3001Important: Lovable and Base44 run in the cloud, so they cannot reach localhost. Expose the server with a tunnel (e.g. ngrok http 3001 or cloudflared tunnel --url http://localhost:3001) or deploy it on a public host, then register the public URL ending in /mcpin the tool's MCP settings and authenticate with your project key as a Bearer token.
The server exposes:
POST /mcp — JSON-RPC endpointGET /health — Health checkGET /sse — SSE stream
#Available Tools
| Tool | Description |
|---|---|
| scan_website | Run a passive + optional active scan |
| get_scan_results | Fetch results by scan ID |
| list_scans | List all your scans |
| profile_site | Technology stack profiling |
| performance_check | Performance analysis (Core Web Vitals) |
| seo_check | SEO or AEO analysis |
| accessibility_check | WCAG 2.1 AA audit |
| deliverability_check | Email DNS authentication checks |
| list_integrations | List connected providers |
| scan_integrations | Run security analysis on integrations |
| issue_badge | Issue a Verified badge for a project |
| verify_badge | Verify a badge JWT token |