MCP server and editor setup

Run the SafeWeave MCP server with npx and connect Claude Code, Cursor, VS Code or Windsurf.

What it is

The MCP server runs the scanners on your machine. Your assistant scans, explains and fixes in one chat. Nothing leaves your computer on the free and self-hosted plans.

Install

npx -y safeweave-mcp

Set SAFEWEAVE_LICENSE_KEY so you get every scanner your plan includes. Lost your key? See Your account. Node.js 20 or later is required.

Claude Code

Run this in your project folder:

claude mcp add safeweave -e SAFEWEAVE_LICENSE_KEY=your-license-key -- npx -y safeweave-mcp

Restart Claude Code. For slash commands and a pre-push check as well, add the Claude plugin.

Cursor

  1. Open Settings → MCP, or create .cursor/mcp.json in your project (or ~/.cursor/mcp.json for every project).
  2. Add:
{
  "mcpServers": {
    "safeweave": {
      "command": "npx",
      "args": ["-y", "safeweave-mcp"],
      "env": { "SAFEWEAVE_LICENSE_KEY": "your-license-key" }
    }
  }
}
  1. Restart Cursor.

VS Code

For GitHub Copilot in VS Code, create .vscode/mcp.json. Note the top-level key is servers, not mcpServers:

{
  "servers": {
    "safeweave": {
      "command": "npx",
      "args": ["-y", "safeweave-mcp"],
      "env": { "SAFEWEAVE_LICENSE_KEY": "your-license-key" }
    }
  }
}

Then run Cmd+Shift+P → Reload Window (Ctrl+Shift+P on Windows and Linux).

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "safeweave": {
      "command": "npx",
      "args": ["-y", "safeweave-mcp"],
      "env": { "SAFEWEAVE_LICENSE_KEY": "your-license-key" }
    }
  }
}

Restart Windsurf.

No install

Prefer nothing on your machine? Use Cloud MCP.

Also