Polyglot - Model Contexts Protocol for Translation
Polyglot is an open-source implementation of the Model Contexts Protocol (MCP) focused on translation services. It provides a standardized way to handle translation requests across multiple languages using Claude Sonnet 3.5.
Supported Languages
- Arabic (ar)
- Chinese (zh)
- English (en)
- French (fr)
- Russian (ru)
- Spanish (es)
Features
- Standardized translation request format
- Support for multiple domains (legal, medical, general)
- Formality level control (formal/informal)
- Claude Sonnet 3.5 integration
- MCP protocol server (via FastMCP)
- API key authentication
Installation
Using uv (Recommended)
Using pip
Configuration
- Create a
.env
file in your project root:
- Make sure to keep your API key secure and never commit it to version control.
Running the MCP Server
The Polyglot MCP server uses FastMCP to expose translation tools and resources over the MCP protocol (SSE transport).
To start the server:
By default, the server will run on port 8001 using SSE transport.
Testing the MCP Server
Using MCP Inspector (Recommended)
- Install the MCP Inspector:
- Open the Inspector UI (the terminal will show a local address).
- Set the following in the Inspector UI:
- Transport Type: SSE
- URL:
http://localhost:8001/sse
- (Optional) Set Inspector Proxy Address if needed
- You can now interact with the translation tool and resources via the Inspector UI.
Using a Python MCP Client
You can also interact with the server programmatically using the MCP Python SDK:
Protocol Specification
The translation request follows this JSON structure:
Development
To set up the development environment:
License
MIT License
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that provides standardized translation services across six languages (Arabic, Chinese, English, French, Russian, Spanish) using Claude Sonnet 3.5, with support for different domains and formality levels.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -718045TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.Last updated -7184TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata.Last updated -818TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server providing machine translation capabilities via the Lara Translate API, featuring language detection and context-aware translations between numerous language pairs.Last updated -16657TypeScriptMIT License