# Anonyflow — how to use (mcp.ai)

Connect your Anonyflow account and use 5 tools for security and identity straight from your AI agent. Connect with your own API key. AnonyFlow offers a simple and powerful service for encryption-based data anonymization and community sharing, enabling GDPR, CCPA, and HIPAA data privacy protection compliance.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_anonyflow?ms=1787291280000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `anonyflow_anonymize_packet`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/anonyflow`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/anonyflow/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/anonyflow/anonymize/packet` — Tool to anonymize a JSON data packet with support for partial anonymization. Use when you need to conceal specific fields in structured data. If keys array is empty, the complete data packet will be a
  - body: { data: object, keys: string[] }
- `POST https://api.mcp.ai/api/anonyflow/anonymize/value` — Tool to anonymize a string or array of string values. Use when you need to conceal sensitive text before storage or transmission. Example: `AnonymizeValue().execute(AnonymizeValueRequest(data=['secret
  - body: { data: string[] }
- `POST https://api.mcp.ai/api/anonyflow/deanonymize/packet` — Tool to deanonymize a JSON data packet using your private key. Use after receiving an anonymized packet to recover specific fields.
  - body: { data: object, keys: string[] }
- `POST https://api.mcp.ai/api/anonyflow/deanonymize/value` — Tool to deanonymize one or more anonymized string values. Use when you need to recover the original plaintext values after encryption-based anonymization. Example: `DeanonymizeValue().execute(Deanonym
  - body: { data: string[] }
- `POST https://api.mcp.ai/api/anonyflow/test/connection` — Tool to test the connection to the AnonyFlow API. Use when verifying that the AnonyFlow service is reachable and operational before performing anonymization tasks. Example: `TestConnection().execute(T

## Example prompts
- "What can I do in Anonyflow?"
- "Show me a summary of my Anonyflow account"

## More
- Page: https://mcp.ai/anonyflow
- Agent spec (llms.txt): https://mcp.ai/anonyflow/llms.txt
- Postman collection: https://mcp.ai/anonyflow/postman.json
