Purpose: privatools-mcp (package name @privatools/mcp) is the MCP server client for PrivaTools, used to let AI assistants connect to the PrivaTools /api/v1 file processing API, thereby calling more than 140 privacy-focused PDF, document, image, audio, video, OCR, archive, and accessibility tools. PrivaTools itself is a closed-source web and API application; the client in this repository (including the Antigravity plugin, Gemini CLI extension, and MCPB manifest) is open source under the MIT license.
Key capabilities: The client is implemented using only Node.js (>=20) ESM built-in modules (fs, path, fetch, FormData, Blob, crypto), has zero external runtime dependencies, and keeps the npm, OCI, and .mcpb supply chain footprint minimal. It is stateless and implements both generations of the MCP protocol: the new stateless core (2026-07-28) supports server/discover, per-request protocol version validation, returning structured results, and tools/list cache directives; the legacy handshake compatibility can negotiate down to 2024-11-05, supporting initialize, notifications/initialized, notifications/cancelled, and ping. Each tool defines title, annotations, inputSchema, and outputSchema; successful calls return both structuredContent and serialized JSON in TextContent; input validation failures and API/file errors are returned as Tool Execution Errors (isError: true), making it easy for the model to self-correct.
Tool design: To avoid writing all endpoints into tools/list and consuming a large number of tokens, the server exposes only 6 progressive discovery tools and strictly separates reads from writes, without mixing safe reads and destructive deletes in the same tool.
Usage: It can be run locally over stdio via npx -y @privatools/mcp, or run from source (node /path/to/privatools-mcp/bin/privatools-mcp.mjs), use the container image ghcr.io/ethereaglehq/privatools-mcp, or connect directly to the hosted Streamable HTTP endpoint https://api.privatools.me/mcp。托管端点无需 You can use the sync tools with just an API key, and since PrivaTools v2.7.39 anonymous async jobs are supported (192-bit capability job_id, same single-format restrictions as sync, retained for no more than 1 hour); an optional PrivaTools API key (X-API-Key / PRIVATOOLS_API_KEY) can increase quotas. Documentation and setup guides are at privatools.me/mcp, and the OpenAPI specification is at api.privatools.me/api/v1/openapi.json. The repository provides configuration examples for Claude Desktop/Claude Code, Cursor, VS Code, Google Antigravity, Gemini CLI, Codex, and others; you can also point PRIVATOOLS_API_URL to another compatible /api/v1 endpoint.
Privacy and limitations: The client does not create databases or cache files to disk, and only writes output files explicitly requested by the user (or outputs automatically named alongside the input); binary files are streamed between the local disk and the API without base64 encoding into LLM messages, and only concise metadata is returned. Anonymous async job results on the hosted endpoint expire on the server within 1 hour and can be deleted immediately via privatools_delete_job. Protocol traffic uses only JSON-RPC 2.0 over stdout, diagnostic information (PRIVATOOLS_MCP_DEBUG=1) is written only to stderr, and API keys are never logged or echoed. By default the server can read and write OS paths of the running user; PRIVATOOLS_MCP_ALLOWED_DIRS can be used to restrict read/write directories, and paths are resolved via fs.realpath to block .. traversal and symlinks pointing outside the allowlist; paths containing null bytes or out-of-bounds paths are rejected before any network request; existing output files will not be overwritten unless overwrite: true is explicitly passed.
Use cases: Suitable for users who need to process PDFs, documents, images, audio/video, OCR, archives, and accessibility-related files within AI assistant sessions while wanting to reduce context usage and maintain privacy and a stateless design.
Limitations and not yet provided: The materials do not provide a specific list of tool names, detailed limits for each format, pricing and fee information, performance metrics, or effectiveness data; PrivaTools is a closed-source application; the client being open source does not mean the server is open source.