@privatools/mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@privatools/mcp Convert report.docx to PDF and save it as report.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@privatools/mcp
A zero-dependency, stateless, dual-era Model Context Protocol (MCP) server for the PrivaTools /api/v1 file-processing API — giving AI assistants access to 140+ privacy-first PDF, document, image, audio, video, OCR, archive, and accessibility tools through 6 progressive-discovery tools.
Built on pure Node.js (>= 20) ESM built-ins (fs, path, fetch, FormData, Blob, crypto) with zero external runtime dependencies, keeping the npm, OCI, and .mcpb supply-chain footprint minimal.
Docs & setup guide: privatools.me/mcp
Local stdio package (npm):
@privatools/mcpRemote Streamable HTTP endpoint:
https://api.privatools.me/mcpOfficial MCP Registry:
io.github.ethereaglehq/privatoolsContainer image (OCI):
ghcr.io/ethereaglehq/privatools-mcpSource & issues: github.com/ethereaglehq/privatools-mcp
Privacy Policy & Security: privatools.me/privacy · privatools.me/security
Protocol Support (Dual-Era MCP 2026-07-28 + Legacy <= 2025-11-25)
@privatools/mcp implements both modern and legacy MCP protocol eras concurrently over stdio:
Modern stateless core (
2026-07-28):server/discoveradvertising supported protocol versions, capabilities, server metadata (name,version,title,description,websiteUrl,icons), and cache hints (ttlMs,cacheScope).Per-request
_meta["io.modelcontextprotocol/protocolVersion"]validation, returning-32022(UnsupportedProtocolVersionError) withdata: { supported, requested }on version mismatch.resultType: "complete"and_meta["io.modelcontextprotocol/serverInfo"]on modern results.tools/listcache directives (ttlMs,cacheScope: "public").
Legacy handshake compatibility (
2025-11-25,2025-06-18,2025-03-26,2024-11-05):Full
initialize,notifications/initialized,notifications/cancelled, andpingsupport with version negotiation down to2024-11-05.JSON-RPC batching is cleanly rejected for protocol versions
>= 2025-06-18(and stateless2026-07-28), while remaining supported for negotiated2025-03-26/2024-11-05sessions.
Structured tool metadata & SEP-1303 error semantics:
Every tool defines
title,annotations(readOnlyHint,destructiveHint,idempotentHint,openWorldHint),inputSchema, andoutputSchema.Successful
tools/callresponses return bothstructuredContent(conforming tooutputSchema) and serialized JSON inTextContentfor backwards compatibility.Tool input validation failures and API/file errors return Tool Execution Errors (
isError: true) rather than raw JSON-RPC protocol exceptions so models can self-correct.
Related MCP server: infytool-mcp
Why 6 tools instead of 200+ schemas?
Dumping every PrivaTools endpoint into tools/list would consume tens of thousands of tokens in every agent session. Instead, @privatools/mcp exposes 6 progressive-discovery tools with strict read/write separation (no single tool mixes safe reads and destructive deletes):
Tool | Title | Annotations | Purpose |
| Search PrivaTools Operations |
| Search and filter |
| Inspect PrivaTools Operation Schema |
| Inspect exact endpoint path, HTTP method, upload field names ( |
| Run PrivaTools File Operation |
| Run any synchronous |
| Submit Async PrivaTools Job |
| Submit an asynchronous background job ( |
| Check or Download PrivaTools Job |
| Read-only on the server: poll job status ( |
| Delete PrivaTools Async Job |
| Dedicated destructive tool to immediately delete a completed server-side job artifact or cancel a running job ( |
Requirements
Node.js 20+ (for local stdio execution via
npx -y @privatools/mcpor from source)An optional PrivaTools API key from your account on privatools.me for authenticated higher-quota access
Setup
You can run the server via npx -y @privatools/mcp, directly from this repository (node /path/to/privatools-mcp/bin/privatools-mcp.mjs), via Docker (ghcr.io/ethereaglehq/privatools-mcp), or connect directly to the hosted Streamable HTTP endpoint (https://api.privatools.me/mcp).
Official MCP Registry:
package.jsondeclares"mcpName": "io.github.ethereaglehq/privatools", matchingserver.json(published via GitHub Actions OIDC in.github/workflows/publish.yml).
Claude Desktop / Claude Code
Claude Code CLI:
# Local stdio (reads/writes local files directly)
claude mcp add privatools \
-e PRIVATOOLS_API_KEY="YOUR_API_KEY" \
-e PRIVATOOLS_MCP_ALLOWED_DIRS="$HOME/Documents:$HOME/Downloads" \
-- npx -y @privatools/mcp
# Remote Streamable HTTP (no local runtime)
claude mcp add --transport http privatools https://api.privatools.me/mcpClaude Desktop (claude_desktop_config.json):
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"privatools": {
"command": "npx",
"args": ["-y", "@privatools/mcp"],
"env": {
"PRIVATOOLS_API_KEY": "YOUR_API_KEY",
"PRIVATOOLS_MCP_ALLOWED_DIRS": "/Users/you/Documents:/Users/you/Downloads"
}
}
}
}Or in a project .mcp.json when running directly from a local checkout:
{
"mcpServers": {
"privatools": {
"command": "node",
"args": ["./bin/privatools-mcp.mjs"],
"env": {
"PRIVATOOLS_API_KEY": "${PRIVATOOLS_API_KEY}",
"PRIVATOOLS_MCP_ALLOWED_DIRS": "${PWD}"
}
}
}
}Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"privatools": {
"command": "npx",
"args": ["-y", "@privatools/mcp"],
"env": {
"PRIVATOOLS_API_KEY": "YOUR_API_KEY",
"PRIVATOOLS_MCP_ALLOWED_DIRS": "/path/to/workspace"
}
}
}
}For remote Streamable HTTP in Cursor, use { "mcpServers": { "privatools": { "url": "https://api.privatools.me/mcp" } } }. See docs/listings/install-links.md for verified one-click deeplinks.
VS Code
Use the one-click badges at the top of this README or add .vscode/mcp.json:
{
"servers": {
"privatools": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@privatools/mcp"],
"env": {
"PRIVATOOLS_API_KEY": "${input:privatools_api_key}"
}
}
},
"inputs": [
{
"id": "privatools_api_key",
"type": "promptString",
"description": "Optional PrivaTools API key from privatools.me",
"password": true
}
]
}For remote Streamable HTTP in VS Code, set "type": "http" and "url": "https://api.privatools.me/mcp".
Gemini CLI
Install as a Gemini CLI extension directly from this repository:
gemini extensions install https://github.com/ethereaglehq/privatools-mcpOr add directly to ~/.gemini/settings.json (or .gemini/settings.json):
{
"mcpServers": {
"privatools": {
"command": "npx",
"args": ["-y", "@privatools/mcp"],
"env": {
"PRIVATOOLS_API_KEY": "$PRIVATOOLS_API_KEY",
"PRIVATOOLS_MCP_ALLOWED_DIRS": "$PWD"
}
}
}
}Codex
Add to ~/.codex/config.toml:
[mcp_servers.privatools]
command = "npx"
args = ["-y", "@privatools/mcp"]
[mcp_servers.privatools.env]
PRIVATOOLS_API_KEY = "YOUR_API_KEY"
PRIVATOOLS_MCP_ALLOWED_DIRS = "/path/to/workspace"Custom PrivaTools-Compatible Endpoint
Point PRIVATOOLS_API_URL at another PrivaTools-compatible /api/v1 endpoint if you want the client to target a non-default base URL (defaults to https://api.privatools.me/api/v1):
{
"mcpServers": {
"privatools-custom": {
"command": "npx",
"args": ["-y", "@privatools/mcp"],
"env": {
"PRIVATOOLS_API_URL": "https://your-privatools-compatible-endpoint.example/api/v1",
"PRIVATOOLS_API_KEY": "YOUR_API_KEY_IF_REQUIRED",
"PRIVATOOLS_MCP_ALLOWED_DIRS": "/path/to/working-dir"
}
}
}
}PRIVATOOLS_API_KEY is omitted from requests when unset.
Privacy & Stateless Design
Zero local state:
@privatools/mcpcreates no databases, caches no files on disk, and writes nothing except the output files you explicitly request (or auto-named outputs next to inputs).Minimal context footprint: Binary files are streamed to/from local disk rather than base64-encoded into LLM messages; only concise metadata (
output_path,bytes,media_type, relevantX-*headers) is returned to the model.Short-lived async artifacts: Background job results expire within one hour on PrivaTools servers and can be deleted immediately via
privatools_delete_job.Stdout isolation: All protocol traffic uses newline-delimited JSON-RPC 2.0 on
stdout. Diagnostics (whenPRIVATOOLS_MCP_DEBUG=1) go exclusively tostderr, andPRIVATOOLS_API_KEYis never logged or echoed in error payloads.Full privacy policy: https://privatools.me/privacy
Filesystem Sandboxing (PRIVATOOLS_MCP_ALLOWED_DIRS)
By default, the server can read and write paths accessible to the OS user running it. To restrict all file reads and writes to specific folders, set PRIVATOOLS_MCP_ALLOWED_DIRS using your OS path delimiter (: on Linux/macOS, ; on Windows):
export PRIVATOOLS_MCP_ALLOWED_DIRS="$HOME/Documents:$HOME/Downloads"When set:
Every input file and output path is resolved through
fs.realpath(catching..traversal and symlinks pointing outside the allowlist).Paths containing null bytes or pointing outside the allowlist are rejected before any network request is made.
Existing output files are never overwritten unless
overwrite: trueis explicitly passed.
Environment Variables
Variable | Default | Description |
|
| Base URL for the PrivaTools v1 API. |
| (unset) | Sent in the |
| (unset) | Optional path-delimiter-separated directory allowlist for reads and writes. |
|
| Per-request HTTP timeout in milliseconds. |
| (unset) | Set to |
Running Tests, MCPB Packaging & Conformance Checks
# Unit & stdio integration tests
node --test test/*.test.mjs
# Validate .mcpb manifest and bundle inputs
node scripts/build-mcpb.mjs --check
# Verify npm package payload contents
npm pack --dry-run
# MCP Inspector CLI conformance (strict schema portability + tool calls)
npx -y @modelcontextprotocol/inspector --cli node bin/privatools-mcp.mjs \
--method tools/list --strict --format json
npx -y @modelcontextprotocol/inspector --cli --protocol-era modern \
node bin/privatools-mcp.mjs --method tools/list --strict --format jsonLicense
The @privatools/mcp client in this repository is licensed under the MIT License — see LICENSE.
Available Tools
6 toolsprivatools_delete_jobDelete PrivaTools Async JobADestructiveIdempotentInspect
Permanently delete a completed PrivaTools asynchronous job's server-side artifact or cancel a queued/running job (DELETE /api/v1/jobs/{job_id}).
Inputs: job_id (required). Returns: ok, headers, deletion
privatools_describe_toolInspect PrivaTools Operation SchemaARead-onlyIdempotentInspect
Inspect the exact endpoint, HTTP method, accepted file upload fields, form/query parameters, constraints, cost, async support, and response media types for a PrivaTools operation slug or alias.
Inputs: operation (required). Returns: id, ok, cost, path, +16 more
privatools_job_statusCheck or Download PrivaTools JobARead-onlyIdempotentInspect
Poll an asynchronous job's status (action: 'status') or download its completed artifact to output_path (action: 'download'). Read-only on the server — use privatools_delete_job to cancel or delete a job.
Inputs: job_id (required), action, download, overwrite, +1 more. Returns: ok, job, data, bytes, +6 more
privatools_list_toolsSearch PrivaTools OperationsARead-onlyIdempotentInspect
Search and filter PrivaTools /api/v1 operations by keyword query, category, or mode (sync/async). Uses the live /api/v1 catalog (or OpenAPI spec) with an automatic offline fallback.
Inputs: mode, limit, query, offset, +1 more. Returns: ok, limit, total, offset, +5 more
privatools_run_toolRun PrivaTools File OperationAInspect
Execute any synchronous PrivaTools /api/v1/ file or document tool against local file(s) and parameters. Binary outputs are written directly to disk (without overwriting unless overwrite: true) and concise metadata + X-* headers are returned; JSON-returning tools return their JSON response directly. See the full OpenAPI specification at https://api.privatools.me/api/v1/openapi.json and MCP documentation at https://privatools.me/mcp.
Inputs: operation (required), params, file_path, overwrite, +4 more. Returns: ok, data, bytes, headers, +4 more
privatools_submit_jobSubmit Async PrivaTools JobAInspect
Submit an asynchronous background job (POST /api/v1/jobs) for supported heavy/large operations such as 'merge', 'compress', 'grayscale', or 'pdf-to-text'. Completed job artifacts expire automatically within one hour and can be removed early with privatools_delete_job.
Inputs: operation (required), options, file_path, file_paths, +1 more. Returns: ok, job, headers, idempotency_key
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The three discovery/execution tools (list, describe, run) are clearly separated by purpose, and job tools cover submit/status/delete distinctly. Minor overlap exists between privatools_run_tool and privatools_submit_job for the same operations (sync vs. async), and privatools_job_status bundles two actions (status poll and artifact download), but descriptions make the boundaries readable.
Every tool uses the same privatools_<verb>_<noun> snake_case convention (list_tools, describe_tool, run_tool, submit_job, delete_job, job_status). The pattern is predictable and the shared prefix groups the server's tools cleanly.
Six tools is well-scoped for an API-proxy server: three for discovery/inspection/execution and three for async job lifecycle. No tool feels redundant or missing from the count perspective.
The surface covers discovery, inspection, synchronous execution, and the full async job lifecycle (submit, poll/download, cancel/delete). The only notable gap is a list-jobs operation to enumerate outstanding jobs without a known job_id, which is a minor workaround rather than a dead end.
Maintenance
Related MCP Connectors
144 deterministic file tools: PDF, image, media, convert, analyze. Connect in one click (OAuth).
Hosted document tools for agents: extract, parse, classify, convert, OCR, sign, and redact.
Video, audio, and image processing for AI agents: convert, transcribe, upscale - 150+ operations.
Image & PDF tools for AI agents: compress, convert, resize, PDF, AI vision, pipeline.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePrivacy-first file tools for AI agents, enabling operations like PDF merge/split, image compression/convert, metadata stripping, and background removal without storing files.62 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to discover 180+ free in-browser file tools and return deep-link URLs without uploading any files.44 npmMIT
- AlicenseBqualityCmaintenanceEnables AI agents to convert documents, images, and data files across 50+ format pairs and to run PDF/image operations such as merge, split, compress, rotate, protect, unlock, extract text, and resize or compress images. Files are passed URL-in and returned URL-out (or saved locally in stdio mode), with tools for checking credits and generating Stripe checkout or billing-portal links.18MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to search and run over 500 tools for PDF, text, data, crypto, network, and conversion tasks, with file processing done locally or at the edge so inputs are not uploaded.MIT