Cursor
Install the bundled x-security MCP server with one script, then ask Cursor to run a scan. Your own Cursor model does the detection; a bundled, LLM-free gate keeps only controls that cite a real file:line in your code.
Install
The Cursor zip ships install.sh plus a self-contained runtime (bin/mcp.mjs, bin/cli.mjs). The installer is idempotent — it merges only the x-security server block and never touches other servers in your config.
# 1. Download the Cursor zip from /download and unzip it.
$ unzip ~/Downloads/x-security-cursor-0.1.0.zip -d ~/x-security-cursor
# 2. Run the installer. It writes the 'x-security' MCP server into
# ~/.cursor/mcp.json using absolute paths to the bundled runtime.
$ cd ~/x-security-cursor && ./install.sh
Found Node v20.11.0
Wrote 'x-security' MCP server to /Users/you/.cursor/mcp.json
Done. Reload Cursor so it picks up the new MCP server.After it runs, your ~/.cursor/mcp.json gains a server that launches the bundled MCP runtime on Node. It needs no npx, reaches no network, and makes no SaaS call for detection.
{
"mcpServers": {
"x-security": {
"command": "node",
"args": ["/Users/you/x-security-cursor/bin/mcp.mjs"],
"env": { "X_SECURITY_CLI_CMD": "node /Users/you/x-security-cursor/bin/cli.mjs" }
}
}
}Run a scan
Open the repo you want covered and ask Cursor, in plain language, to scan it. The MCP server drives the same inventory → profile → detect → verify → emit loop the Claude plugin runs.
> run a x-security scan on this repoThe verify gate
Cursor proposes findings; the bundled LLM-free CLI byte-matches every citation against your source before anything compiles. Unverifiable findings are dropped to reviewRequired; a citation proves the model read the code, and you review every policy before anything deploys. Full taxonomy and gate mechanics: detection capabilities.
Codex
The download page also ships a Codex bundle — the same self-contained MCP server and CLI, with an installer that registers the x-security server for Codex.
# 1. Download the Codex zip from /download and unzip it.
$ unzip ~/Downloads/x-security-codex-0.1.0.zip -d ~/x-security-codex
# 2. Run the installer. It registers the self-contained MCP server
# using absolute paths — no npx, no network.
$ cd ~/x-security-codex && ./install.shPrivacy
On the free-plugin path no x-security servers are involved. Your code goes only to the model provider behind your subscription; see trust & data flow.
%USERPROFILE%\.cursor\mcp.json. Use node as the command and a forward-slash absolute path to bin/mcp.mjs / bin/cli.mjs, e.g. C:/Users/you/x-security-cursor/bin/mcp.mjs.