DeepL MCP Server: Neural Translation API
Translate text with DeepL's neural models via the MCP server API for fast, accurate translations and rewrites.
npx -y @DeepLcom/deepl-mcp-serverOverview
The DeepL MCP Server implements the Model Context Protocol (MCP) to expose DeepL’s neural translation and rewrite models over a lightweight HTTP API. It provides a consistent, developer-friendly interface for translating, rewriting, and batch-processing text, suitable for integration into web apps, back-end services, and automation scripts.
This server acts as a bridge between your applications and DeepL’s model infrastructure. Run it locally, in a container, or in production to centralize translation logic, cache results, restrict access via API keys, and standardize request/response formats across services.
Features
- Simple HTTP endpoints for translate, rewrite/paraphrase, and model discovery
- Batch translation support (multiple segments per request)
- Configurable formality and language options
- Local deployment via Docker or source install
- Environment-based configuration and API-key forwarding to DeepL
- Health and OpenAPI endpoints for monitoring and integration
- Designed for low-latency calls to DeepL’s neural models
Installation / Configuration
Prerequisites: Git, Docker (optional), Node.js (if running from source).
- Clone the repository
2A. Run with Docker
# Example: run container and pass DeepL API key as env
2B. Run from source (Node.js)
# install dependencies and start
# set env values (see .env.example) then
- Configuration via environment variables (example .env)
PORT=8080
DEEPL_API_KEY=your_deepl_api_key
DEEPL_API_URL=https://api.deepl.com
DEFAULT_TARGET_LANG=EN
LOG_LEVEL=info
Notes:
- DEEPL_API_KEY is required for the server to forward requests to DeepL.
- DEEPL_API_URL can point to DeepL’s public API or a private endpoint.
- Use a process manager (systemd, pm2) or container orchestrator for production.
Available Resources
Common HTTP endpoints exposed by the server:
| Path | Method | Description |
|---|---|---|
| /health | GET | Health check; returns status and basic metrics |
| /v1/models | GET | List available translation/rewrite models and metadata |
| /v1/translate | POST | Translate one or more text segments |
| /v1/rewrite | POST | Paraphrase or rewrite text with optional style controls |
| /openapi.json | GET | OpenAPI schema for client generation |
Example request/response for /v1/translate (JSON) Request:
Response:
Use Cases
- Single-line translation (curl)
Response will contain the translated text and model metadata.
- Batch translation for localization Send multiple segments at once to translate UI strings or document chunks. This reduces overhead by batching network calls.
- Rewriting/paraphrasing for content editing (Python)
=
- Integrating into a web app (Node.js fetch example)
;
;
data.translations.text; // "Hola"
Operational Notes
- Monitor /health and integrate the OpenAPI schema for client generation.
- Use TLS and API gateway rules in production to protect the forwarded DEEPL_API_KEY and to enforce rate limits.
- Consider caching repeated translations at the application layer to reduce requests to DeepL and lower latency/costs.
- The server is intentionally minimal—extend or fork if you need advanced routing, quotas, or additional model controls.
For full source, issues, and contribution guidelines, see the GitHub repository: https://github.com/DeepLcom/deepl-mcp-server.