JSON-translations-MCP-server

JSON-translations-MCP-server

0

The JSON Translations MCP Server is a tool for managing translation files in JSON format, enabling updates and retrievals of translations via a dot-notation path. It supports multiple languages and maintains the original JSON structure.

JSON Translations MCP Server

A Model Context Protocol (MCP) server for updating and retrieving translations in JSON files.

Features

  • Update translations in JSON files using a dot-notation path
  • Retrieve translations from JSON files using a dot-notation path
  • Support for multiple language files
  • Preserves JSON structure and formatting
  • Handles nested translation keys
  • Graceful error handling
  • Optional default translations path

Setup and Usage

Prerequisites

  • Node.js or Bun

Installation

  • Install globally via npm: npm install -g json-translations-mcp-server
  • Clone and install from source: bun install or npm install

Run

  • Global install: json-translations-mcp-server --path /path/to/translations
  • From source: bun start --path /path/to/translations or npm run start -- --path /path/to/translations

Development

Testing

  • Test using: bun test