Enables containerized deployment of the translation service using official Docker images and Docker Compose for simplified management.
Supports configuration through environment variables loaded from .env files for API keys and server settings.
Serves as the runtime environment for the MCP server, enabling the translation service to operate as a Node.js application.
Used for package management and running scripts within the MCP server ecosystem.
Used in the integration examples showing how to connect to the MCP server programmatically.
AiryLark MCP 专业翻译服务器
这是AiryLark项目的ModelContextProtocol(MCP)服务器模块,提供专业级高精度翻译服务接口。MCP是一种标准协议,允许智能助手与外部服务进行结构化交互,使复杂翻译能力可直接被Claude等大型AI模型调用。
专业翻译优势
- 三阶段翻译流程:分析规划、分段翻译、全文审校,确保专业领域文档的翻译质量
- 领域术语识别:自动识别专业文本领域,提取关键术语并确保术语一致性
- 质量评估系统:提供全面翻译质量评估,包括准确性、流畅性、术语使用和风格一致性
- 多语言支持:支持中文、英文、日语、韩语、法语、德语等多种语言互译
- 风格与格式保持:根据文本类型自动调整翻译风格,保持原文的专业性和表达方式
适用场景
- 技术文档翻译:软件文档、API文档、技术规范等专业内容翻译
- 学术论文翻译:确保学术术语准确,保持学术文体风格
- 法律文件翻译:保证法律术语准确性和表述精确性
- 医疗资料翻译:专业医学术语翻译和医疗文献本地化
- 金融报告翻译:准确翻译金融术语和复杂财务概念
安装
- 确保已安装Node.js (v18+)和npm
- 安装依赖:
- 配置环境变量:
创建.env
文件或设置以下环境变量:
使用方法
开发环境
启动开发服务器:
生产环境
构建并启动服务器:
MCP工具接口
服务器提供以下MCP标准工具:
1. 翻译工具 (translate_text)
专业级文本翻译,自动适应不同领域和文体风格。
参数:
text
: 需要翻译的源文本target_language
: 目标语言代码 (如'zh'、'en'、'ja'等)source_language
: (可选)源语言代码high_quality
: (可选)是否启用高精度翻译流程,默认为true
使用场景:
- 设置
high_quality=true
用于专业文档、学术论文等对精度要求高的场景 - 设置
high_quality=false
用于非正式内容或需要快速翻译的场景
2. 翻译质量评估工具 (evaluate_translation)
对翻译结果进行全面质量评估,提供详细反馈。
参数:
original_text
: 原始文本translated_text
: 翻译后的文本detailed_feedback
: (可选)是否提供详细反馈,默认为false
评估指标:
- 准确性:译文是否准确传达原文意思
- 流畅性:译文是否符合目标语言表达习惯
- 术语使用:专业术语翻译的准确性和一致性
- 风格一致性:译文是否保持原文风格
资源接口
- supported_languages: 支持的语言列表
- URI:
languages://list
- URI:
与AI助手集成
本服务器设计为与支持MCP协议的AI助手无缝集成,使AI能够提供专业级翻译服务:
Claude Chat与Cursor等MCP客户端配置
在支持MCP协议的AI助手应用中,可通过以下方式配置与AiryLark翻译服务器的连接:
Cursor配置
在Cursor设置或配置文件中添加以下MCP服务器配置:
Claude Chat配置
在Claude Chat中,可以通过以下步骤开启MCP服务器连接:
- 进入设置页面
- 找到"开发者设置"或"外部工具"选项
- 添加新的MCP服务器,填写名称与URL
- 服务器URL填写
https://airylark-mcp.vcorp.ai/sse
配置完成后,AI助手便可以使用"translate_text"和"evaluate_translation"工具,轻松处理各类专业文档翻译需求。
服务器配置与运行
AiryLark MCP服务器支持多种部署和运行方式,以下是常用配置方法:
Docker部署
使用官方发布的Docker镜像是最简单的部署方式:
Docker Compose部署
使用项目提供的docker-compose.yml文件,配合官方镜像可以更方便地管理服务:
运行服务:
服务器配置示例
您也可以使用类似以下的配置方式来定义和启动MCP服务器:
这种配置方式适用于需要在应用内直接管理MCP服务器生命周期的场景。
许可证
本项目使用与AiryLark主项目相同的定制许可证,详见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.
A ModelContextProtocol server providing high-quality translation services with a three-stage translation workflow (analysis, segmented translation, full-text review) that supports multiple languages and integrates with Claude and OpenAI-compatible models.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that helps large language models process code repositories by providing file tree generation, code merging, and code analysis capabilities.Last updated -321JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides DeepL translation capabilities, allowing AI assistants to translate text between supported languages via the DeepL API.Last updated -8143JavaScriptMIT License
Gladia MCPofficial
-securityAlicense-qualityOfficial Model Context Protocol server that enables interaction with powerful Speech-to-Text and Audio Intelligence APIs, allowing clients like Claude Desktop to transcribe audio, analyze speech, translate content, and more.Last updated -2PythonMIT License- -securityAlicense-qualityA Model Context Protocol server that enables developers to integrate advanced text-to-speech and video translation capabilities into their applications through simple API calls.Last updated -PythonMIT License