anymize-mcp
v1.0.10
Published
Model Context Protocol (MCP) server for text and document anonymization using the Anymize API. Supports text anonymization with reversible placeholders and OCR-based document processing for secure data handling.
Maintainers
Readme
anymize MCP Server
A Model Context Protocol (MCP) server for text and document anonymization using the anymize API.
Setup Options
Option 1: Local Server (File Processing + Text)
For applications that support direct MCP server configuration, add to your MCP client configuration:
Step 1: Install Globally
First, install the anymize-mcp package globally:
npm install -g anymize-mcpStep 2: Find Required Paths
Find Node Executable Path
PowerShell:
where.exe nodeExample output: C:\Users\username\AppData\Roaming\nvm\v22.11.0\node.exe
macOS/Linux:
which nodeExample output: /Users/username/.nvm/versions/node/v22.11.0/bin/node
Find Anymize MCP Installation Path
npm root -gPowerShell example output: C:\Users\username\AppData\Roaming\nvm\v22.11.0\node_modules
macOS/Linux example output: /Users/username/.nvm/versions/node/v22.11.0/lib/node_modules
The anymize-mcp server script will be at: [npm root -g]/anymize-mcp/build/index.js
Quick Path Check
PowerShell:
Test-Path "$(npm root -g)\anymize-mcp\build\index.js"macOS/Linux:
ls "$(npm root -g)/anymize-mcp/build/index.js"Step 3: MCP Configuration
Single Directory
Windows example:
{
"mcpServers": {
"anymize": {
"command": "C:\\Users\\username\\AppData\\Roaming\\nvm\\v22.11.0\\node.exe",
"args": [
"C:\\Users\\username\\AppData\\Roaming\\nvm\\v22.11.0\\node_modules\\anymize-mcp\\build\\index.js",
"C:\\path\\to\\your\\documents"
],
"env": {
"ANYMIZE_API_KEY": "your-api-key-here"
}
}
}
}macOS/Linux example:
{
"mcpServers": {
"anymize": {
"command": "/Users/username/.nvm/versions/node/v22.11.0/bin/node",
"args": [
"/Users/username/.nvm/versions/node/v22.11.0/lib/node_modules/anymize-mcp/build/index.js",
"/path/to/your/documents"
],
"env": {
"ANYMIZE_API_KEY": "your-api-key-here"
}
}
}
}Multiple Directories
Windows example:
{
"mcpServers": {
"anymize": {
"command": "C:\\Users\\username\\AppData\\Roaming\\nvm\\v22.11.0\\node.exe",
"args": [
"C:\\Users\\username\\AppData\\Roaming\\nvm\\v22.11.0\\node_modules\\anymize-mcp\\build\\index.js",
"C:\\path\\to\\documents",
"C:\\path\\to\\downloads"
],
"env": {
"ANYMIZE_API_KEY": "your-api-key-here"
}
}
}
}macOS/Linux example:
{
"mcpServers": {
"anymize": {
"command": "/Users/username/.nvm/versions/node/v22.11.0/bin/node",
"args": [
"/Users/username/.nvm/versions/node/v22.11.0/lib/node_modules/anymize-mcp/build/index.js",
"/path/to/documents",
"/path/to/downloads"
],
"env": {
"ANYMIZE_API_KEY": "your-api-key-here"
}
}
}
}Step 4: Generate Your Configuration
PowerShell
Write-Host "Node path: $(where.exe node)"
Write-Host "Anymize MCP path: $(npm root -g)\anymize-mcp\build\index.js"macOS/Linux
echo "Node path: $(which node)"
echo "Anymize MCP path: $(npm root -g)/anymize-mcp/build/index.js"Then copy the paths into your MCP client configuration, replacing the document directory paths with your actual directories.
Option 2: n8n MCP Client Tool
Use n8n's built-in MCP Client Tool node for seamless integration:
- Add the MCP Client Tool node to your workflow
- Configure the node settings:
- Endpoint URL:
https://mcp.anymize.ai/mcp - Server Transport:
HTTP Streamable - Authentication:
Header Auth
- Endpoint URL:
- Create Header Auth credentials:
- Name:
x-anymize-api-key - Value:
your-api-key-here
- Name:
Get API Key
Sign up at Anymize.ai to get your API key.
Usage Examples
Anonymize Text
Prompt:
Anonymize this text: "My name is John Smith, email [email protected], and I work at ABC Corp located at 123 Main Street."Result:
My name is [[Name-abc123]], email [[Email-def456]], and I work at [[Organization-ghi789]] located at [[Address-jkl012]].Restore Original Text
Prompt:
Restore this anonymized text: "Contact [[Name-abc123]] at [[Email-def456]] for more information."Result:
Contact John Smith at [email protected] for more information.Process Documents (Local Server Only)
Prompt:
Please anonymize the contract document at /path/to/documents/contract.pdfResult:
[Extracts text from PDF and returns anonymized version]
EMPLOYMENT AGREEMENT
This agreement is between [[Organization-abc123]] and [[Name-def456]].
Employee address: [[Address-ghi789]]
Phone: [[Phone-jkl012]]
...Multi-language Support
Prompt:
Anonymize this German text: "Mein Name ist Hans Müller und ich wohne in Berlin."Result:
Mein Name ist [[Name-abc123]] und ich wohne in [[Location-def456]].Supported File Types
- Images: PNG, JPG, JPEG, GIF, BMP, TIFF
- Documents: PDF, DOCX, TXT
Available Tools
Local Server
anonymize_text- Anonymize personal information in textdeanonymize_text- Restore original text from anonymized versionfile_anonymization- Process files through OCR and anonymize content
n8n Integration
anonymize_text- Anonymize personal information in textdeanonymize_text- Restore original text from anonymized version
