xiaoquisme
MCP Serverxiaoquismepublic

translate mcp server

A translation server based on MCP architecture, supporting multi-language translation and text-to-speech functionality.

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Python
Language
-
License

About This Server

A translation server based on MCP architecture, supporting multi-language translation and text-to-speech functionality.

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Translate MCP Server

A translation server based on MCP architecture, supporting multi-language translation and text-to-speech functionality.

Features

  • Support for translation between multiple languages
  • Optional text-to-speech functionality
  • Built on FastAPI and MCP (Model Control Plane)
  • Integration with various large language models using LiteLLM

Installation

Prerequisites

  • Python 3.12+
  • LLM API access for translation (such as OpenAI, Ollama, etc.)
  • API access for speech synthesis (such as OpenAI TTS)

Installation Steps

  1. Clone the repository
git clone https://github.com/yourusername/translate-mcp-server.git
cd translate-mcp-server
  1. Install dependencies
uv sync

Configuration

Copy the .env-example file and rename it to .env, then modify the configuration as needed:

API_KEY=xxxx               # API key for the translation model
API_BASE=http://localhost:11434  # API base URL (e.g., when using Ollama)
MODEL='ollama/llama3:latest'     # Model to use
VOICE_API_KEY=sk-xxxx     # API key for voice service (e.g., OpenAI)
VOICE_MODEL='openai/tts-1' # Voice model
MOTHER_LANGUAGE='zh'       # Mother language setting, used for TTS processing logic

Running

Running locally

python main.py

By default, the server will run at http://localhost:9988.

Running with Docker

docker network create mcp_network
docker compose up -d

By default, the server will run at http://localhost:30100.

NOTE: when in container want to access host use host.docker.internal instead of localhost.

MCP Usage

{
  "mcpServers": {
    "translate": {
      "url": "http://localhost:9988/mcp"
    }
  }
}

Contributing

Issues and pull requests are welcome!

Quick Start

1

Clone the repository

git clone https://github.com/xiaoquisme/translate-mcp-server
2

Install dependencies

cd translate-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerxiaoquisme
Repotranslate-mcp-server
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation