MCP I18n Extractor
@martincik
关于 MCP I18n Extractor
MCP server to help with i18n translations
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP I18n Extractor?
MCP I18n Extractor is an MCP server that extracts i18n (internationalization) strings from JavaScript/TypeScript source files and outputs them as structured JSON files. It is designed for developers working on multilingual applications who need to automate the initial extraction of translation keys from their codebase.
How to use MCP I18n Extractor?
Install the npm package (@access-intelligence/mcp-i18n), then configure your MCP client to use the server. The server exposes a single tool operation, extract_i18n, which requires a sourcePath (path to the JS/TS file) and a targetPath (path for the output JSON).
Key features of MCP I18n Extractor
- Extracts i18n strings from direct object exports (
export default { ... }) - Preserves nested objects and arrays in the output JSON
- Handles template strings with variable interpolation
- Supports strings, numbers, booleans,
null, andundefined - Merges with existing JSON files instead of overwriting
- Replaces source files with a configurable migration message (can be disabled)
Use cases of MCP I18n Extractor
- Automatically generate a JSON translation file from a single JS/TS i18n module
- Migrate a codebase by replacing old i18n source files with a warning placeholder
- Integrate i18n extraction into a CI/CD pipeline via MCP client automation
FAQ from MCP I18n Extractor
What kind of i18n structures can it extract?
It extracts strings from direct object exports (e.g., export default { key: "value" }) and supports nested objects, arrays, template strings with variables, and basic data types (string, number, boolean, null, undefined).
Does the tool overwrite existing translation files?
No. When the target JSON file already exists, the extracted strings are merged into it, preserving any existing keys.
Can I prevent the source file from being replaced?
Yes. Set the environment variable DISABLE_SOURCE_REPLACEMENT to 'true' to keep the original source file intact after extraction.
What runtime or dependencies does it require?
It is an npm package that runs on Node.js. The README does not specify a minimum Node version but lists npm test for testing, implying a typical Node environment.
How do I customize the warning message added to replaced source files?
Use the WARNING_MESSAGE environment variable to set a custom string that will be written into the source file after extraction (if not disabled).
其他 分类下的更多 MCP 服务器
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
IDA Pro MCP
mrexodiaAI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
评论