Are you the author? Sign in to claim
translations-mcp
A Model Context Protocol (MCP) server that automatically discovers and searches translation files in your projects.
en folders as fallbackConfigure your MCP server to use a specific translation file:
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp",
"args": ["path/to/your/translation.json"]
}
}
}
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp",
"env": {
"TRANSLATION_FILE_PATH": "src/assets/locales/en/translation.json"
}
}
}
}
If no path is configured, the server will automatically search for translation files:
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp"
}
}
}
The project is organized into focused modules for better maintainability:
src/
├── index.ts # Main server entry point with MCP server setup
├── translation-discovery.ts # File discovery and search functionality
└── types.ts # TypeScript interfaces and types
index.ts: Main MCP server setup, tool handlers, and entry pointtranslation-discovery.ts: Handles file discovery, indexing, and search functionalitytypes.ts: TypeScript interfaces for type safety across modulesThe server provides two main tools:
Search for translation keys and values:
{
"name": "find_translation",
"arguments": {
"query": "search term",
"exact": false
}
}
query: String to search for in translation keys or valuesexact: Boolean (optional) - whether to perform exact matching (default: false)Manually refresh the translation index (useful after file changes):
{
"name": "refresh_translations",
"arguments": {}
}
Returns the current number of indexed entries and refresh status.
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp",
"args": ["public/locales/en/translation.json"]
}
}
}
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp",
"args": ["ClientApp/public/locales/en/translation.json"]
}
}
}
{
"mcpServers": {
"translations-mcp": {
"command": "translations-mcp",
"args": ["C:/projects/my-app/locales/en/translation.json"]
}
}
}
enThe server can find translation files in various project structures:
./en/translation.json (simple)./locales/en/translation.json (common)./src/assets/locales/en/translation.json (React/Angular)./ClientApp/public/locales/en/translation.json (ASP.NET Core with React)./Project.Name/ClientApp/public/locales/en/translation.json (deep .NET structures)Install globally via npm:
npm install -g translations-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm run test
# Development mode
npm run dev
The project includes several test scripts:
npm run test:server - Test basic server functionalitynpm run test:find - Test search functionalitynpm run test:quick - Quick integration testnpm run test:all - Run all testsThe server looks for these translation files in en folders:
{
"mcpServers": {
"translations": {
"command": "translations-mcp",
"args": ["path/to/your/translation.json"]
}
}
}
{
"mcpServers": {
"translations": {
"command": "translations-mcp"
}
}
}
✅ Eliminates confusion - No more loading wrong translation files
✅ Faster startup - No need to search directories
✅ Predictable behavior - Always uses the exact file you specify
✅ Works anywhere - Not limited to specific folder structures
✅ Production ready - Points to your actual translation files, not test data
npm run clean - Remove compiled filesnpm test - Run the main server functionality testnpm run test:server - Run comprehensive server tests with response parsingnpm run test:quick - Run quick global installation testnpm run test:all - Run all tests (server + quick)npm install to install dependenciessrc/ directorynpm run dev for development or npm test to verify functionalitynpm run build && npm startMIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows