Order Confirmed via Polar.sh: Your MCPShield Pro / Team archive (mcpshield-pro-v1.0.0.tar.gz) and license key (MCPSHIELD-...) are available in your Polar customer portal and confirmation email.
Open Polar Downloads
v1.0.0 Release Aligned with OWASP MCP Top 10 (2025) & EU AI Act Annex IV (August 2, 2026 Enforcement) Launch Live Browser Auditor
Guide 03 / Workstation & IDE Security

Hardening Cursor (.cursor/mcp.json) & Claude Desktop Configurations

Step-by-step workstation hardening playbook for Cursor IDE and Claude Desktop mcp.json files: secret injection, directory scoping, and safe --fix backups.

1. Standard MCP Configuration File Paths

2. Eliminating Plaintext Tokens in .cursor/mcp.json

Developers frequently paste live GitHub Personal Access Tokens (ghp_...), OpenAI keys (sk-proj-...), or production PostgreSQL connection strings directly into .cursor/mcp.json. MCPShield detects 10+ credential formats and replaces them with environment references while masking the secret in terminal logs (ghp_998***REDACTED***).

3. Scoping Filesystem & Database Servers

Never pass /Users/username or / to @modelcontextprotocol/server-filesystem. Scope the server to the active repository root (./workspace) and connect database MCP servers to read-only replicas.

4. Running Safe Auto-Remediation (--fix)

# Writes hardened config to .cursor/mcp.hardened.json without touching original
node ./bin/mcpshield.mjs fix ./.cursor/mcp.json

# In-place update automatically creates ./.cursor/mcp.json.bak first
node ./bin/mcpshield.mjs fix ./.cursor/mcp.json --in-place
Audit Your Configuration Now: Paste your mcp.json into the 100% Client-Side MCPShield Browser Workbench or license the Offline Pro CLI & EU AI Act Annex IV Compliance Suite on Polar.sh.