Polyglot
Polyglot - Modellkontextprotokoll für die Übersetzung
Polyglot ist eine Open-Source-Implementierung des Model Contexts Protocol (MCP) mit Fokus auf Übersetzungsdiensten. Es bietet eine standardisierte Möglichkeit, Übersetzungsanfragen in mehreren Sprachen mithilfe von Claude Sonnet 3.5 zu bearbeiten.
Unterstützte Sprachen
Arabisch (ar)
Chinesisch (zh)
Englisch (en)
Französisch (fr)
Russisch (ru)
Spanisch (es)
Related MCP server: Cloud Translation API MCP Server
Merkmale
Standardisiertes Format für Übersetzungsanfragen
Unterstützung für mehrere Domänen (Recht, Medizin, Allgemein)
Kontrolle des Formalitätsgrades (formell/informell)
Claude Sonnet 3.5-Integration
MCP-Protokollserver (über FastMCP)
API-Schlüsselauthentifizierung
Installation
Verwendung von UV (empfohlen)
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install the package and its dependencies
uv pip install .
# For development, install with dev dependencies
uv pip install ".[dev]"Verwenden von pip
# Install the package and its dependencies
pip install .
# For development, install with dev dependencies
pip install ".[dev]"Konfiguration
Erstellen Sie eine
.envDatei im Stammverzeichnis Ihres Projekts:
ANTHROPIC_API_KEY=your_api_key_hereBewahren Sie Ihren API-Schlüssel sicher auf und übergeben Sie ihn niemals der Versionskontrolle.
Ausführen des MCP-Servers
Der Polyglot MCP-Server verwendet FastMCP , um Übersetzungstools und -ressourcen über das MCP-Protokoll (SSE-Transport) bereitzustellen.
So starten Sie den Server:
python -m polyglot.serverStandardmäßig wird der Server auf Port 8001 unter Verwendung des SSE-Transports ausgeführt.
Testen des MCP-Servers
Verwenden von MCP Inspector (empfohlen)
Installieren Sie den MCP Inspector:
npx @modelcontextprotocol/inspectorÖffnen Sie die Inspector-Benutzeroberfläche (das Terminal zeigt eine lokale Adresse an).
Legen Sie in der Inspector-Benutzeroberfläche Folgendes fest:
Transporttyp: SSE
URL:
http://localhost:8001/sse(Optional) Legen Sie bei Bedarf die Inspector-Proxy-Adresse fest
Sie können jetzt über die Inspector-Benutzeroberfläche mit dem Übersetzungstool und den Ressourcen interagieren.
Verwenden eines Python MCP-Clients
Sie können auch programmgesteuert mit dem Server interagieren, indem Sie das MCP Python SDK verwenden:
from mcp.client.sse import sse_client
import asyncio
async def main():
async with sse_client(url="http://localhost:8001/sse") as (read, write):
# Example: call the translate tool
request = {
"tool": "translate",
"args": {
"request": {
"version": "1.0",
"type": "translation_request",
"metadata": {
"source_language": "fr",
"target_language": "en",
"domain": "legal",
"formality": "formal",
"api_key": "your_api_key_here" # Required for authentication
},
"data": {"text": "Le contrat a été signé hier à Genève."}
}
}
}
await write(request)
response = await read()
print(response)
asyncio.run(main())Protokollspezifikation
Die Übersetzungsanforderung folgt dieser JSON-Struktur:
{
"version": "1.0",
"type": "translation_request",
"metadata": {
"source_language": "fr",
"target_language": "en",
"domain": "legal",
"formality": "formal",
"api_key": "your_api_key_here" // Required for authentication
},
"data": {
"text": "Le contrat a été signé hier à Genève."
}
}Entwicklung
So richten Sie die Entwicklungsumgebung ein:
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and activate a virtual environment
uv venv
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
# Install development dependencies
uv pip install ".[dev]"Lizenz
MIT-Lizenz
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server providing machine translation capabilities via the Lara Translate API, featuring language detection and context-aware translations between numerous language pairs.221,34995MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server that enables AI agents to interact with Google's Cloud Translation API for translating text between languages.
- AlicenseNot gradedqualityCmaintenanceMCP server for managing i18n JSON translation files. Provides Claude with structured read/write access to translation files for adding keys, checking coverage, and finding duplicates.351MIT
- AlicenseNot gradedqualityAmaintenanceAI-powered translation MCP server with EU AI Act compliance, enabling automated translation workflows via the MCP protocol.8MIT
Related MCP Connectors
Translate MCP — wraps LibreTranslate API (https://libretranslate.com/)
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for AI dialogue using various LLM models via AceDataCloud
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/namiraprita/polyglot-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server