npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@infinum/polyglot-mcp

v0.2.0

Published

MCP server for Polyglot, allows pushing translations to Polyglot

Readme

Polyglot MCP

An MCP server that connects Cursor and Claude Code to Polyglot, enabling you to fetch all translations for a project and create new translation keys with values across multiple locales.

Requirements

  • Node.js 18+
  • A Polyglot API token

Installation

Configure Cursor (MCP)

Add a custom MCP server entry for Polyglot in Cursor. You can do this via Cursor Settings → MCP or by editing your MCP configuration JSON. Use one of the options below. It can also be added to project at {project}/.cursor/mcp.json

Install MCP Server

{
    "mcpServers": {
        "polyglot-mcp": {
            "command": "npx",
            "args": ["-y", "@infinum/polyglot-mcp", "--polyglot-token=YOUR_POLYGLOT_TOKEN"]
        }
    }
}

Notes:

  • The server communicates over stdio, so no ports are required.
  • --polyglot-token=... must be provided as an argument.

Configure Claude Code (MCP)

Add the Polyglot MCP server to Claude Code using the following command:

claude mcp add polyglot --transport stdio -- npx -y @infinum/polyglot-mcp --polyglot-token=${POLYGLOT_TOKEN}

Notes:

  • Replace ${POLYGLOT_TOKEN} with your actual Polyglot API token or set it as an environment variable.
  • The server communicates over stdio, so no ports are required.

Project configuration (.polyglot-mcp.json)

Create a .polyglot-mcp.json file in the root of the project you are working on (the same folder you open in Cursor or Claude Code). The MCP server reads the Polyglot project ID from this file.

Example:

{
    "projectId": 123
}

Usage

What the server exposes

  • "fetch all translations": returns all languages and the full translation mapping for the configured Polyglot project.
  • "create translations": creates translation keys and values for multiple locales. The payload is a map of translation keys to { locale: value } objects.

Payload shape for creating translations (for reference):

{
    "welcome_message": {
        "en_US": "Welcome",
        "cs_CZ": "Vítejte"
    },
    "logout_button": {
        "en_US": "Log out",
        "cs_CZ": "Odhlásit se"
    }
}

Rules example to be used with this MCP

# Translations workflow

When creating new screens and adding text to the code:

1. Build screens and add raw text initially.
2. Propose translation key-value pairs. Use snake_case for translation keys.
3. Verify that the proposed keys are not already in use.
4. Push new translations to Polyglot MCP.
5. After the keys are successfully created in Polyglot, run `polyglothq pull` in the terminal to sync.
6. Replace raw text with translation keys in code.

Development (Contributing)

Build

bun install
bun run build

MCP Inspector

For local development (TypeScript without building):

bun run inspect

This runs the MCP server in dev mode. For Cursor integration, prefer a built artifact or the linked CLI as shown below.

Link (optional)

Link the CLI so the polyglot-mcp command is available on your PATH:

npm link

Configure Cursor (MCP)

Add a custom MCP server entry for Polyglot in Cursor.

{
    "mcpServers": {
        "polyglot-mcp": {
            "command": "polyglot-mcp",
            "args": ["--polyglot-token=YOUR_POLYGLOT_TOKEN"]
        }
    }
}