🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

ai-translator-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-translator-mcp

AI Terminology Translation MCP Server - 专业AI术语翻译服务

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
4
-50%
Maintainers
1
Weekly downloads
 
Created
Source

AI术语翻译MCP服务器

这是一个专门用于AI领域专业术语翻译的MCP (Model Context Protocol) 服务器。该服务结合了专业术语库和DeepSeek人工智能,可以为AI领域论文和文档提供精准的翻译服务。

特点

  • 专业AI术语库支持(英语 ↔ 中文)
  • 基于DeepSeek API的智能翻译
  • 用户使用自己的API密钥,保证安全性和灵活性
  • 符合MCP标准,易于与各种应用集成

安装

npm install -g ai-translator-mcp

或者使用npx直接运行:

npx ai-translator-mcp

配置

环境变量(可选)

可以通过环境变量或.env文件配置服务器:

# 服务器配置
PORT=3000

# 术语表文件路径(可选,默认使用项目根目录下的terminology文件夹)
ENG_TERMS_PATH=路径/到/英文术语.csv
CHN_TERMS_PATH=路径/到/中文术语.csv

使用方法

MCP配置

在你的MCP配置中添加以下内容:

{
  "mcpServers": {
    "ai-translator": {
      "isActive": true,
      "name": "AI专业术语翻译服务",
      "command": "npx",
      "args": [
        "-y",
        "ai-translator-mcp"
      ]
    }
  }
}

调用翻译API

通过MCP调用翻译功能时,需要提供以下参数:

  • text: 需要翻译的文本
  • sourceLang: 源语言 ('en'或'zh')
  • targetLang: 目标语言 ('en'或'zh')
  • apiKey: 您的DeepSeek API密钥

调用术语查询API

通过MCP调用术语查询功能时,需要提供以下参数:

  • term: 需要查询的术语
  • sourceLang: 源语言 (可选,默认'en')
  • targetLang: 目标语言 (可选,默认'zh')

开发

安装依赖

npm install

启动开发模式

npm run dev

构建生产版本

npm run build

许可证

MIT

Keywords

mcp

FAQs

Package last updated on 23 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts