MCP server: Cursor
Install @cloakapi/mcp-server 0.6.2 from npm and run cloakapi-mcp, as described in MCP server. Version 0.5.1 remains on npm and bundles @cloakapi/sdk 1.5.0. Versions 0.4.0 and 0.4.1 were withdrawn, and their downloads answer HTTP 410.
Edit the configuration file
Cursor reads MCP servers from mcp.json:
~/.cursor/mcp.jsonfor all your projects.cursor/mcp.jsonin a project for that project only
Add the cloakapi entry under mcpServers:
{ "mcpServers": { "cloakapi": { "command": "cloakapi-mcp", "args": [], "env": { "CLOAKAPI_API_KEY": "cloak_your_key_here" } } }}Keep your key out of a project file that you commit; put the entry in ~/.cursor/mcp.json instead.
If Cursor cannot start the server by name, use absolute paths for node and the server script, as shown in If the client cannot find the command:
{ "mcpServers": { "cloakapi": { "command": "/usr/local/bin/node", "args": ["/usr/local/lib/node_modules/@cloakapi/mcp-server/src/bin.js"], "env": { "CLOAKAPI_API_KEY": "cloak_your_key_here" } } }}Reload and check
Open Cursor Settings and go to the MCP section. The cloakapi server is listed there with its tools and a status; turn it off and on again, or restart Cursor, after you change mcp.json.
Then, in the agent chat:
Use the cloakapi detect_pii tool on: "Please email Jane Doe at jane.doe@example.com or call +1 415 555 0134."The result reports "entity_count": 3.
Your prompts and the code Cursor reads go to Cursor’s model as usual, and tool results join the conversation. For the full tool list and what each tool sends, see What leaves the device and what does not.