{"id":30869796,"url":"https://github.com/DevnagriAI/devnagriai-translate-mcp","last_synced_at":"2025-09-07T22:19:24.009Z","repository":{"id":303584565,"uuid":"1015971742","full_name":"DevnagriAI/devnagriai-translate-mcp","owner":"DevnagriAI","description":"MCP server for translation services with focus on Indic languages, Powered by Devnagri AI","archived":false,"fork":false,"pushed_at":"2025-07-22T13:32:55.000Z","size":220,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-23T04:23:19.510Z","etag":null,"topics":["ai","devnagri","devnagri-ai","indic-languages","mcp","mcp-client","mcp-server","translation","translation-platform","translation-service"],"latest_commit_sha":null,"homepage":"https://devnagri.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevnagriAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-08T09:50:33.000Z","updated_at":"2025-07-25T17:48:42.000Z","dependencies_parsed_at":"2025-07-08T11:41:28.710Z","dependency_job_id":"3828dfb2-14c0-41c4-9e2d-551257565c27","html_url":"https://github.com/DevnagriAI/devnagriai-translate-mcp","commit_stats":null,"previous_names":["devnagriai/devnagriai-translate-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DevnagriAI/devnagriai-translate-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevnagriAI%2Fdevnagriai-translate-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevnagriAI%2Fdevnagriai-translate-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevnagriAI%2Fdevnagriai-translate-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevnagriAI%2Fdevnagriai-translate-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevnagriAI","download_url":"https://codeload.github.com/DevnagriAI/devnagriai-translate-mcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevnagriAI%2Fdevnagriai-translate-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274103270,"owners_count":25222769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","devnagri","devnagri-ai","indic-languages","mcp","mcp-client","mcp-server","translation","translation-platform","translation-service"],"created_at":"2025-09-07T22:04:19.600Z","updated_at":"2025-09-07T22:19:23.991Z","avatar_url":"https://github.com/DevnagriAI.png","language":"JavaScript","funding_links":[],"categories":["🤖 AI/ML"],"sub_categories":[],"readme":"# @devnagriai/devnagriai-translate-mcp\n\nA JavaScript-based Model Context Protocol (MCP) server providing translation, language detection, and supported language listing via Devnagri AI APIs, with a focus on Indic languages.\n\n## Features\n\n- **Text Translation** between 35+ languages (including all major Indic languages)\n- **Language Detection** for any input text\n- **Supported Languages Listing**\n- **MCP Protocol**: Ready for AI tool integration\n- **Robust Error Handling and Validation**\n- **Extensive Test Suite**\n\n## Table of Contents\n\n- [Features](#features)\n- [Quick Start](#quick-start)\n- [API Key Procurement](#api-key-procurement)\n- [Installation](#installation)\n  - [NPX (Recommended)](#npx-recommended)\n  - [Manual Installation](#manual-installation)\n- [Usage](#usage)\n  - [Direct Integration](#direct-integration)\n  - [Running the Server](#running-the-server)\n- [MCP Tools](#mcp-tools)\n  - [Tool: translate](#tool-translate)\n  - [Tool: detect_language](#tool-detect_language)\n  - [Tool: list_supported_languages](#tool-list_supported_languages)\n- [Configuration](#configuration)\n- [Testing](#testing)\n- [Contributing](#contributing)\n- [Support](#support)\n- [Security](#security)\n- [License](#license)\n\n## Quick Start\n\n```bash\nnpx @devnagriai/devnagriai-translate-mcp API_KEY=\"your_devnagri_api_key\"\n```\n\n## API Key Procurement\n\nTo use the Devnagri Translation API, you need an API key. Follow these steps:\n\n1. **Sign Up**\n   - Go to [Devnagri Dashboard](https://app.devnagri.com/) and sign up for a free account.\n\n2. **Access API Hub**\n   - After logging in, navigate to the **API Hub** section from the sidebar menu.\n\n3. **Select the Translation API**\n   - Click on **Get API Key**.\n   - Click **Create**.\n   - Enter a name for the API key.\n   - Click **Save**.\n   \n\n4. **Copy API Key**\n   - Copy the generated API key. Keep it secure and do not share it publicly.\n\n## Installation\n\n### NPX (Recommended)\n\nThe simplest way to use this MCP server is through npx, which allows you to run it without installing:\n\n```bash\nnpx @devnagriai/devnagriai-translate-mcp API_KEY=\"your_devnagri_api_key\"\n```\n\nThis is ideal for integration with AI tools like Claude, GPT, Windsurf, and Cursor.\n\n### Manual Installation\n\nIf you prefer to install the server locally:\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/DevnagriAI/devnagriai-translate-mcp.git\ncd devnagriai-translate-mcp\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Set up environment variables:\n\nCreate a `.env` file in the root directory with the following content:\n\n```\nDEVNAGRI_API_KEY=your_devnagri_api_key\n```\n\n## Usage\n\n### Direct Integration\n\nFor local/private use or development, add the server to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"devnagri-translation\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@devnagriai/devnagriai-translate-mcp\",\n        \"API_KEY=\\\"your_devnagri_api_key\\\"\"\n      ]\n    }\n  }\n}\n```\n\n### Running the Server\n\nStart the server:\n\n```bash\nnpm start\n```\n\nFor development with auto-reload:\n\n```bash\nnpm run dev\n```\n\nThis MCP server can be used with any MCP client. For example, using the MCP CLI client:\n\n```bash\nmcp-client --transport stdio -- node src/index.js\n```\n\n### Integration with AI Tools\n\n#### Windsurf\n\nIn `~/.codeium/windsurf/mcp_config.json`:\n\n```json\n{\n  \"devnagri-translation\": {\n    \"command\": \"npx\",\n    \"args\": [\n      \"@devnagriai/devnagriai-translate-mcp\",\n      \"API_KEY=\\\"your_devnagri_api_key\\\"\"\n    ]\n  }\n}\n```\n\n#### Cursor\n\nIn Cursor's settings:\n\n```json\n{\n  \"tools\": {\n    \"devnagri-translation\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"@devnagriai/devnagriai-translate-mcp\",\n        \"API_KEY=\\\"your_devnagri_api_key\\\"\"\n      ],\n      \"transport\": \"stdio\"\n    }\n  }\n}\n```\n\n#### Claude\n\nIn Claude Desktop App:\n\n1. Go to Settings \u003e Extensions\n2. Click \"Add Custom Extension\"\n3. Select \"Add from local server\"\n4. Enter the following details:\n   - Name: Devnagri Translation Service\n   - Command: `npx @devnagriai/devnagriai-translate-mcp API_KEY=\"your_devnagri_api_key\"`\n   - Transport: stdio\n\nOr use this configuration:\n\n```json\n{\n  \"devnagri-translation\": {\n    \"command\": \"npx\",\n    \"args\": [\n      \"@devnagriai/devnagriai-translate-mcp\",\n      \"API_KEY=\\\"your_devnagri_api_key\\\"\"\n    ],\n    \"transport\": \"stdio\"\n  }\n}\n```\n\n## MCP Tools\n\nThe following tools are exposed via this MCP server:\n\n| Tool Name                | Description                                 |\n|--------------------------|---------------------------------------------|\n| `translate`              | Translate text between supported languages  |\n| `detect_language`        | Detect the language of given text           |\n| `list_supported_languages` | List all available languages               |\n\nRefer to `examples/mcp_config_example.json` for sample tool configuration.\n\n### Tool: translate\n\nTranslates text from source language to target language.\n\n**Parameters**:\n- `source_text` (string, required): The text to be translated\n- `source_language` (string, required): The source language code (e.g., \"en\")\n- `target_language` (string, required): The target language code (e.g., \"hi\")\n- `translation_type` (string, optional): Type of translation requested (\"literal\" or \"base\", defaults to \"literal\")\n\n**Returns**:\n```json\n{\n  \"translated_text\": \"नमस्ते, आप कैसे हैं?\",\n  \"source_language\": \"en\",\n  \"target_language\": \"hi\",\n  \"translation_type\": \"literal\"\n}\n```\n\n### Tool: detect_language\n\nDetects the language of the provided text.\n\n**Parameters**:\n- `text` (string, required): The text for language detection\n\n**Returns**:\n```json\n{\n  \"detected_language\": \"en\",\n  \"confidence_score\": 0.98,\n  \"supported\": true\n}\n```\n\n### Tool: list_supported_languages\n\nReturns a list of all supported languages for translation.\n\n**Parameters**:\n- None\n\n**Returns**:\n```json\n[\n  {\n    \"name\": \"English\",\n    \"native_name\": \"English\",\n    \"code\": \"en\"\n  },\n  {\n    \"name\": \"Hindi\",\n    \"native_name\": \"हिन्दी\",\n    \"code\": \"hi\"\n  },\n  // ... more languages\n]\n```\n\n## Configuration\n\n- **API Key**: Required. Pass as an environment variable or command-line argument: `API_KEY=\"your_devnagri_api_key\"`\n- **Port**: Defaults to 8080 (can be configured via MCP protocol parameters)\n- **.env Support**: You may place your API key in a `.env` file for local development.\n\n## Testing\n\nRun the test suite with:\n\n```bash\nnpm test\n```\n\nTest coverage includes unit and integration tests for all MCP tools and API client logic.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Submit a pull request describing your changes\n\n## Support\n\n- For API issues, contact [Devnagri Support](https://devnagri.com/contact-us/)\n- For MCP server issues, open a GitHub issue in this repository\n\n## Security\n\n- **Never share your API key publicly**\n- Rotate API keys periodically via the Devnagri dashboard\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevnagriAI%2Fdevnagriai-translate-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDevnagriAI%2Fdevnagriai-translate-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDevnagriAI%2Fdevnagriai-translate-mcp/lists"}