Polytranslator

com.polytranslator由 polytranslator.com 发布官方发布者v1.1.1更新于 Oct 25, 2026

Translate PDFs, scans, Office files and EPUB across 475 languages and styles, preserving layout.

已验证Streamable HTTP可网页运行效率与工作流文件与存储AI 与机器学习

概览

AI 生成的概览

Polytranslator 的远程 MCP 服务器,让助手在保留版面的前提下翻译文档和文本,支持 475 种语言,按预付额度计费。

可以做什么
提交文档(PDF、扫描件、Office 文件、EPUB、图片)进行翻译,轮询完成状态或获取下载链接,可选择保留版面、表格和图片,或仅输出纯文本。提交前免费获取文档报价。翻译纯文本,并列出支持的语言和风格。查询账户剩余的预付额度,并取回此前的文档结果。
适用场景
适合需要让助手翻译合同、法律文书或扫描版 PDF 等真实文档且不破坏排版的场景,也适合翻译短文本并在消耗额度前确认费用。
运行要求
远程 Streamable HTTP 端点,无需安装。所有请求都需认证:通过客户端 OAuth 登录,或在 Authorization 请求头中提供 API 密钥。翻译需要带预付额度的 Polytranslator 账户。
安装前请注意
翻译会消耗预付额度;每份文档先报价,失败会退款,并可设置单次请求的消费上限。该连接可读取额度余额和账户文档结果,但不能购买额度或更改计费设置。请妥善保管 API 密钥,勿提交到版本库,用完后在控制台撤销连接。文档会上传到第三方服务,下载链接在 24 小时内无需密钥即可访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Polytranslator,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.polytranslator%2Ftranslator/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "polytranslator": {
      "type": "http",
      "url": "https://www.polytranslator.com/api/mcp"
    }
  }
}

README

Polytranslator API

Document translation API that keeps the layout. Translate PDFs (including scans), Word, PowerPoint, Excel, EPUB and photos across 475 languages and styles, including ancient and low-resource languages such as Ancient Greek, Coptic and Old English. Native documents keep their format; photos return as PNG and other supported inputs are converted to an editable document format. Text translation, webhooks and a remote MCP server for AI agents use the same prepaid credits. Use an API key for REST integrations or connect an assistant with OAuth. No subscription required.

Quickstart

sh
export POLYTRANSLATOR_API_KEY=pk_live_...export IDEMPOTENCY_KEY=$(uuidgen) # Keep this value when retrying this submission.
# 1. Submit (returns 202 with a document id)curl https://www.polytranslator.com/api/v1/documents \  -H "Authorization: Bearer $POLYTRANSLATOR_API_KEY" \  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \  -F [email protected] -F tgt=spa_Latn -F max_credits=500
# 2. Set DOCUMENT_ID to the returned id, then wait (up to 60 s per request).export DOCUMENT_ID=REPLACE_WITH_RETURNED_IDcurl "https://www.polytranslator.com/api/v1/documents/$DOCUMENT_ID?wait=60" \  -H "Authorization: Bearer $POLYTRANSLATOR_API_KEY"
# Repeat step 2 while status is queued or processing.# 3. Once status is completed, download the translated file.curl -OJ https://www.polytranslator.com/api/v1/documents/$DOCUMENT_ID/file \  -H "Authorization: Bearer $POLYTRANSLATOR_API_KEY"

Runnable examples:

What it does

Formats inPDF (text-based or scanned), DOCX, PPTX, XLSX, EPUB, PNG, JPG, WEBP, HEIC; DOC, ODT, RTF, TXT, Markdown, HTML, XML, SRT, VTT, TeX, Pages → DOCX; XLS, ODS, CSV, TSV, Numbers → XLSX; PPT, ODP, Keynote → PPTX; MOBI, AZW3, FB2 → DOCX
OutputNative PDF, DOCX, PPTX, XLSX and EPUB keep their format; photos return as PNG, and converted inputs use the format shown above. Layout, tables and images are preserved, with scan/photo text translated in place (output=formatted). Or choose translated text only (output=text).
Limits50 MB, 1,000 PDF pages, 1,000,000 characters per document; 5 documents in progress per account
Languages and styles475 catalog entries; source auto-detected; GET /v1/languages
Tiersfast and advanced (the most accurate)
PricePrepaid credit packs from $9.99 (300 credits) to $99.99 (5,000). Every document is quoted for free before you pay and charged exactly its quote; failed documents are refunded. Text: 1 credit per 1,000 characters (fast), 3 (advanced).
Async?wait= long-poll, or a signed webhook (callback_url) when the document finishes
SafetyIdempotency-Key on submissions (a retry never charges twice), max_credits spending cap per request
AgentsHeadless signup and purchase with a Stripe Shared Payment Token, OpenAPI, llms.txt, remote MCP server

Measured examples on the fast tier: a short Word contract costs 1 credit; a one-page scanned court filing costs 19 credits.

Use it from AI agents (MCP)

Remote Streamable HTTP server, nothing to install. Tools: translate_document, get_document, quote_document, translate_text, list_languages, get_credit_balance. Completed documents come back as download links that work without a key for 24 hours.

ChatGPT / Claude web connectors (OAuth)

Add https://www.polytranslator.com/api/mcp as a custom connector or MCP server in a client that supports remote MCP and OAuth. Sign in to Polytranslator and approve the connection. You do not need to copy an API key into the assistant. Connector availability depends on your client and account settings.

Each connection can translate documents and text, read your purchased credit balance, and retrieve your account's API document results. It cannot buy credits, change billing settings or manage API keys. Documents and text still spend purchased credits; approving a connection does not buy a credit pack. Any automatic refill you already enabled continues under its existing settings. Revoke a connection from the API dashboard by revoking its MCP: <client name> key.

For implementers: OAuth uses the translation scope and authorization code flow with S256 PKCE. Public clients can use an HTTPS Client ID Metadata Document (CIMD) with token_endpoint_auth_method: none. Dynamic client registration (DCR) also remains available for public clients (none) and confidential clients (client_secret_basic or client_secret_post). Access tokens last one hour; refresh tokens rotate and expire 30 days after connection creation.

The resource is exactly https://www.polytranslator.com/api/mcp; include it in authorization and token requests. The issuer is https://www.polytranslator.com/api/oauth. Discovery endpoints are /.well-known/oauth-protected-resource/api/mcp and /.well-known/oauth-authorization-server/api/oauth.

All MCP transport requests, including initialization and tool listing, require authentication. Missing or invalid credentials receive HTTP 401 with a WWW-Authenticate discovery challenge so clients start OAuth immediately. Directories can inspect the six tools without signing in through the public server card. OAuth access tokens work only through MCP; direct REST requests use API keys.

API-key clients

API-key authentication remains supported. The configurations below use an API key; keep it out of source control. The REST examples and Postman collection also use API keys.

Claude Code

sh
claude mcp add --transport http polytranslator https://www.polytranslator.com/api/mcp \  --header "Authorization: Bearer $POLYTRANSLATOR_API_KEY"

Cursor (.cursor/mcp.json)

json
{  "mcpServers": {    "polytranslator": {      "url": "https://www.polytranslator.com/api/mcp",      "headers": { "Authorization": "Bearer YOUR_API_KEY" }    }  }}

VS Code (.vscode/mcp.json)

json
{  "servers": {    "polytranslator": {      "type": "http",      "url": "https://www.polytranslator.com/api/mcp",      "headers": { "Authorization": "Bearer YOUR_API_KEY" }    }  }}

Codex (~/.codex/config.toml)

toml
[mcp_servers.polytranslator]url = "https://www.polytranslator.com/api/mcp"bearer_token_env_var = "POLYTRANSLATOR_API_KEY"

Registry entry: mcp/server.json (com.polytranslator/translator). Also listed on Smithery.

How it compares

A sourced comparison with DeepL, Google Cloud Translation, Azure AI Translator and Amazon Translate (formats, scans, limits, languages, pricing, minimum charges, setup) is at https://www.polytranslator.com/guides/document-translation-api/.

Postman

Open the public Postman collection, or import postman/polytranslator.postman_collection.json, and set the apiKey collection variable to your API key. Keep the populated value private; do not include credentials in a published workspace or exported collection. The baseUrl variable defaults to https://www.polytranslator.com/api.

About

Polytranslator is built by the authors of From LLM to NMT: Advancing Low-Resource Machine Translation with Claude (Enis & Hopkins, 2024, arXiv:2404.13813). Questions: [email protected].

The examples in this repository are MIT licensed.

来源:README.md,提交 c30a2d1

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

2
  1. v1.1.1最新Sep 24, 2026
  2. v1.0.0Sep 23, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分