Cline
MCP Server Setup Guide
Cline is an open-source autonomous AI coding agent for VS Code. MCP servers are configured via the Cline settings panel inside VS Code — a UI-based approach similar to Windsurf.
Prerequisites
- Cline extension — install from VS Code Marketplace (search "Cline")
- anonym.legal API key — Pro or Business plan
- LLM API key — Cline requires its own LLM (Claude, GPT-4o, etc.)
Installation via Cline Settings Panel
Open Cline MCP Settings
Click the Cline icon in the VS Code activity bar. In the Cline panel header, click the MCP Servers button (server icon) or go to Settings → MCP Servers.
Add New Server — HTTP Method
Click + Add Server. Select Remote (HTTP) and fill in:
Name: anonym-legal URL: https://anonym.legal/mcp Headers: Authorization: Bearer YOUR_API_KEY
Alternative: Manual JSON Config
Cline stores MCP config in VS Code's settings storage. You can also edit it directly in VS Code settings (Ctrl+Shift+P → Open User Settings JSON):
{
"cline.mcpServers": {
"anonym-legal": {
"url": "https://anonym.legal/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"disabled": false
}
}
}
Verify Connection
The Cline MCP panel shows all servers with connection status. A green dot indicates successful connection. You should see 7 tools listed under the anonym-legal server.
Available Tools (7)
free
tokens
free
free
free
free
free
Operators (6)
John Smith → [CLIENT] or [PERSON]
john@acme.com → (removed)
John Smith → a3f9b1...
4111-xxxx → enc:U2FsdGVkX1...
john@acme.com → jo**@****.com
John Smith → John Smith (tracked)
Using with Cline's Agentic Mode
Cline operates autonomously — it can chain multiple MCP tool calls in a single task. For PII-sensitive tasks, you can instruct it to always pre-anonymize:
IMPORTANT: Before processing any customer data in this task, use anonym_legal_anonymize_text to redact all personal information. After completion, use anonym_legal_detokenize_text to restore names in the final report. Task: Analyze the customer feedback in feedback.csv and write a summary report with key themes.
Troubleshooting
Server added but shows "failed" status
Check your API key. Test with curl: curl -H "Authorization: Bearer YOUR_KEY" https://anonym.legal/mcp. If you get a valid JSON response, the key is correct — try removing and re-adding the server in Cline.
Cline doesn't invoke MCP tools automatically
Cline may request confirmation before invoking tools in some modes. Check Cline's "Auto-approve MCP tools" setting if you want fully autonomous operation.
stdio setup: command not found
Use absolute path for npx. Cline runs commands in a restricted environment. Find the path: which npx (macOS/Linux). Example: /usr/local/bin/npx.