MCP server: Claude Desktop
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
Claude Desktop reads MCP servers from claude_desktop_config.json. Open it from Claude Desktop’s Settings, in the Developer section, with Edit Config. The file is here:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the cloakapi entry under mcpServers:
{ "mcpServers": { "cloakapi": { "command": "cloakapi-mcp", "args": [], "env": { "CLOAKAPI_API_KEY": "cloak_your_key_here" } } }}If the file already has other servers, add cloakapi next to them inside the same mcpServers object.
Claude Desktop does not always get your shell’s PATH, so the server may fail to start with the command name alone. In that case 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" } } }}Restart and check
Quit Claude Desktop completely and open it again; closing the window is not enough. In Settings, the Developer section lists cloakapi and shows an error if it did not start. Claude Desktop writes MCP logs to ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows.
Then, in a new 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.
Text you type into Claude Desktop goes to Claude 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.