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

@rog0x/mcp-i18n-tools

v1.0.2

Published

Internationalization and localization tools for AI agents via MCP

Downloads

257

Readme

@rog0x/mcp-i18n-tools

Internationalization and localization tools for AI agents, exposed as an MCP (Model Context Protocol) server.

Tools

detect_locale

Detect the language and locale of a given text string. Returns the detected language code (BCP 47), language name, writing script, confidence score (0-1), and alternate language candidates.

Supported languages: English, Spanish, French, German, Portuguese, Italian, Russian, Japanese, Korean, Chinese, Arabic, Hindi, Thai, Greek, Hebrew.

extract_i18n_keys

Extract hardcoded user-facing strings from source code that should be internationalized. Finds strings in:

  • JSX/TSX attributes (title, placeholder, label, alt, aria-label, etc.)
  • HTML template text and attributes
  • console.log / console.warn / console.error calls
  • throw new Error(...) messages
  • alert() / confirm() / prompt() dialogs
  • Variable assignments with i18n-relevant names (message, label, title, etc.)

Returns each string with its line/column, surrounding context, pattern type, and a suggested i18n key.

analyze_translations

Analyze translation JSON files for consistency across locales. Detects:

  • Missing keys — present in reference locale but absent in others
  • Extra keys — present in a locale but not in the reference
  • Structure mismatches — a key is a string in one locale but an object in another
  • Interpolation mismatches{variable} placeholders differ between locales
  • Empty values — keys with blank translations
  • Unused keys — keys not referenced in source code (requires a list of used keys)

plural_rules

Generate plural form categories for a given locale following CLDR rules. Shows which plural categories the language uses and classifies any test numbers you provide.

| Language | Categories | | ---------- | ----------------------------------- | | English | one, other | | French | one, other | | Russian | one, few, many, other | | Arabic | zero, one, two, few, many, other | | Polish | one, few, many, other | | Japanese | other | | Chinese | other |

format_locale

Format numbers, currencies, dates, and relative times for any locale using the Intl APIs. Supports:

  • Numbers — decimal, percent, unit; compact/scientific/engineering notation
  • Currency — symbol, narrowSymbol, code, and name displays
  • Dates — short, medium, long, full styles with date parts breakdown
  • Relative time — long, short, narrow styles with auto-numeric formatting

Setup

npm install
npm run build

MCP Configuration

{
  "mcpServers": {
    "i18n-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-i18n-tools/dist/index.js"]
    }
  }
}

License

MIT