Find your editor below and follow the instructions. Each guide shows the exact config file path and JSON you need — copy, paste, and go.
Cursor
.cursor/mcp.jsonCreate a file called .cursor/mcp.json in your project root (or your home directory for global access). Cursor will detect the MCP server on its next restart.
json
{
"mcpServers": {
"safeweave": {
"command": "npx",
"args": ["-y", "safeweave-mcp"],
"env": {
"SAFEWEAVE_LICENSE_KEY": "sw_free_xxx"
}
}
}
}
Note: Omit the env block entirely to use the free tier — no license key needed.
Claude Code
Terminal commandClaude Code supports adding MCP servers directly from the command line. Run a single command and Claude picks it up immediately — no file editing, no restart.
shell
# Add SafeWeave as an MCP server (free tier — no key needed)
$ claude mcp add safeweave -- npx -y safeweave-mcp
# With a license key for paid-plan features
$ claude mcp add safeweave \
-e SAFEWEAVE_LICENSE_KEY=sw_free_xxx \
-- npx -y safeweave-mcp
Note: Run claude mcp list to verify SafeWeave appears in the active servers.
VS Code / Copilot
.vscode/mcp.jsonCreate .vscode/mcp.json in your workspace root. VS Code with GitHub Copilot agent mode will detect it automatically. Works with any Copilot-enabled extension.
json
{
"servers": {
"safeweave": {
"command": "npx",
"args": ["-y", "safeweave-mcp"],
"env": {
"SAFEWEAVE_LICENSE_KEY": "sw_free_xxx"
}
}
}
}
Note: Requires VS Code 1.99+ with GitHub Copilot agent mode enabled.
Windsurf
~/.codeium/windsurf/mcp_config.jsonWindsurf reads MCP configuration from a global config file in your home directory. Create or edit the file at ~/.codeium/windsurf/mcp_config.json.
json
{
"mcpServers": {
"safeweave": {
"command": "npx",
"args": ["-y", "safeweave-mcp"],
"env": {
"SAFEWEAVE_LICENSE_KEY": "sw_free_xxx"
}
}
}
}
Note: Restart Windsurf after saving the config to load the new MCP server.