Cursor
MCP Server-setupgids
Cursor verbindt met anonym.legal via HTTP — geen installatie, geen Node.js. Voeg de eindpunt-URL en uw API-sleutel toe aan .cursor/mcp.json en klaar.
Voorwaarden
- Cursor — versie 0.40+ voor MCP-ondersteuning. Download op cursor.sh
- anonym.legal API-sleutel — Pro of Bedrijfsplan (vereist voor MCP-toegang). Verkrijg er een op anonym.legal
- Geen Node.js, geen npm, geen lokale installatie — anonym.legal's MCP-server werkt volledig via HTTP. Er is niets om lokaal te downloaden of uit te voeren.
Installatie
Maak het MCP-configuratiebestand
Maak .cursor/mcp.json in uw projectroot (per-project) of ~/.cursor/mcp.json (globaal, van toepassing op alle projecten):
{
"mcpServers": {
"anonym-legal": {
"url": "https://anonym.legal/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Herlaad Cursor
Druk op Cmd/Ctrl+Shift+P → Ontwikkelaar: Venster opnieuw laden. Of start Cursor volledig opnieuw op.
Controleer in Cursor-instellingen
Ga naar Cursor Settings → Features → MCP (of het MCP-paneel in de zijbalk). U zou moeten zien anonym-legal als actieve server met 7 hulpmiddelen.
Omgevingsvariabelen gebruiken (aanbevolen)
Houd uw API-sleutel uit het configuratiebestand met een .env bestand of Cursor's omgevingsuitbreiding:
{
"mcpServers": {
"anonym-legal": {
"url": "https://anonym.legal/mcp",
"headers": {
"Authorization": "Bearer ${ANONYM_LEGAL_API_KEY}"
}
}
}
}
ANONYM_LEGAL_API_KEY=your_actual_api_key_here
⚠ Belangrijk: Voeg toe .cursor/mcp.json naar .gitignore als het uw API-sleutel rechtstreeks bevat. Commit nooit geheimen naar versiebeheer.
Beschikbare hulpmiddelen (7)
gratis
tokens
gratis
gratis
gratis
gratis
gratis
Operatoren (6)
John Smith → [CLIENT] of [PERSON]
john@acme.com → (verwijderd)
John Smith → a3f9b1...
4111-xxxx → enc:U2FsdGVkX1...
john@acme.com → jo**@****.com
John Smith → John Smith (bijgehouden)
Gebruik met Cursor Agent
In Cursor's Agent-modus (Cmd+I of het Agent-paneel) zijn MCP-hulpmiddelen automatisch beschikbaar. U kunt deze rechtstreeks in uw gesprek gebruiken:
Before sending this to the API, use anonym_legal_anonymize_text to redact all emails and replace all person names with [USER]. "Send a welcome email to Hans Mueller (hans@example.de) and CC his manager Lisa Schneider (lisa@company.de)."
1. Read the file customer_data.json 2. Use anonym_legal_analyze_text to identify all PII fields 3. Use anonym_legal_anonymize_text with redact for emails, replace for names 4. Write the anonymized version to customer_data_anon.json 5. Show me a summary of what was removed
Project vs globaal bereik
- Actief alleen in deze werkruimte
- Kan projectspecifieke API-sleutel gebruiken
- Goed voor teamprojecten (met .gitignore)
- Vastgelegd in repo (alleen env vars!)
- Actief in alle Cursor-projecten
- Enkele configuratie onderhouden
- Goed voor persoonlijk gebruik
- Opgeslagen in thuismap
Probleemoplossing
MCP-server verschijnt niet in Cursor-instellingen
Controleer JSON-syntaxis — Cursor negeert ongeldige JSON stil. Valideer op jsonlint.com. Zorg ook dat het bestand op .cursor/mcp.json (niet .cursorrules).
Verbinding mislukt met https://anonym.legal/mcp
Controleer of uw API-sleutel correct is en op Pro/Business-plan staat. Test rechtstreeks: curl -H "Authorization: Bearer YOUR_KEY" https://anonym.legal/mcp — zou een MCP-manifest moeten retourneren.
Hulpmiddelen verschijnen maar aanroepen mislukken met 402
U bent uit tokens. Controleer saldo met anonym_legal_get_balance of vul aan op anonym.legal.
401/403 van het MCP-eindpunt
Controleer dubbel de Authorization koptekst is exact Bearer YOUR_API_KEY (let op de spatie na "Bearer") en dat de sleutel niet is ingetrokken of geroteerd in uw anonym.legal-account.
Server niet gevonden / geen hulpmiddelen vermeld
Controleer of uw plan MCP-toegang omvat — de gratis en basisniveaus niet. Controleer uw niveau met anonym_legal_get_balance of in uw accountdashboard.