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

poly-glot-mcp

v1.1.8

Published

MCP server for Poly-Glot AI — generate professional code comments & documentation in 12 languages directly from Claude, Goose, Cursor, or any MCP-compatible AI client

Downloads

95

Readme

🔌 poly-glot-mcp

MCP server for Poly-Glot AI — generate professional code comments & documentation in 12 languages directly from Claude, Goose, Cursor, Windsurf, or any MCP-compatible AI client.

npm version npm downloads License


⚠️ Pro Plan Required

The MCP server is available on Pro, Team, and Enterprise plans only.

| Plan | MCP calls/month | Price | |------|:--------------:|-------| | Free | 🔒 Not available | $0 | | Pro | 200 | $9/mo | | Team | 1,000 | $29/mo | | Enterprise | Unlimited | Custom |

👉 Upgrade at poly-glot.ai →

You need a POLYGLOT_SESSION_TOKEN from your account dashboard. Usage is tracked server-side — limits reset on the 1st of each month.


Tools

| Tool | Description | |------|-------------| | polyglot_add_doc_comments | Add JSDoc, Javadoc, PyDoc, Doxygen, KDoc, rustdoc, GoDoc, PHPDoc, YARD, Swift markup | | polyglot_add_why_comments | Add inline WHY-comments explaining reasoning & intent | | polyglot_add_all_comments | Doc-comments + WHY-comments in one pass | | polyglot_explain_code | Deep analysis: complexity, bugs, quality score, suggestions | | polyglot_list_languages | List all 12 supported languages + comment styles | | polyglot_list_models | List available models for your provider | | polyglot_github_app_info | Q&A about the Poly-Glot GitHub App |


Setup

1. Get your session token

  1. Sign up / log in at poly-glot.ai
  2. Upgrade to Pro or Team
  3. Copy your session token from the account dashboard

2. Configure your MCP client

Goose

# ~/.config/goose/config.yaml
extensions:
  poly-glot:
    type: stdio
    cmd: npx
    args: ["-y", "poly-glot-mcp"]
    env:
      POLYGLOT_PROVIDER: openai
      POLYGLOT_API_KEY: sk-your-key-here
      POLYGLOT_MODEL: gpt-4.1-mini
      POLYGLOT_SESSION_TOKEN: your-session-token
    name: poly-glot
    description: AI code documentation — JSDoc, Javadoc, PyDoc and more in 12 languages

Claude Desktop

{
  "mcpServers": {
    "poly-glot": {
      "command": "npx",
      "args": ["-y", "poly-glot-mcp"],
      "env": {
        "POLYGLOT_PROVIDER": "openai",
        "POLYGLOT_API_KEY": "sk-your-key-here",
        "POLYGLOT_MODEL": "gpt-4.1-mini",
        "POLYGLOT_SESSION_TOKEN": "your-session-token"
      }
    }
  }
}

Add to: ~/Library/Application Support/Claude/claude_desktop_config.json

Cursor / Windsurf

{
  "mcpServers": {
    "poly-glot": {
      "command": "npx",
      "args": ["-y", "poly-glot-mcp"],
      "env": {
        "POLYGLOT_PROVIDER": "anthropic",
        "POLYGLOT_API_KEY": "sk-ant-your-key-here",
        "POLYGLOT_MODEL": "claude-haiku-4-5",
        "POLYGLOT_SESSION_TOKEN": "your-session-token"
      }
    }
  }
}

Add to .cursor/mcp.json or .windsurf/mcp.json in your project root.

3. Use it

"Add JSDoc comments to this TypeScript file"
"Explain this Python class"
"Add WHY-comments to this Go code"
"Document this entire file with doc + why comments"
"What languages does Poly-Glot support?"

Configuration

| Variable | Required | Default | Description | |----------|:--------:|---------|-------------| | POLYGLOT_SESSION_TOKEN | ✅ Yes | — | Session token from poly-glot.ai (Pro+ required) | | POLYGLOT_API_KEY | ✅ Yes | — | Your OpenAI, Anthropic, or Google AI API key | | POLYGLOT_PROVIDER | No | openai | openai | anthropic | google | | POLYGLOT_MODEL | No | Smart default | Any valid model ID (see polyglot_list_models) |


Supported Models

OpenAI

| Model | Notes | |-------|-------| | gpt-4.1-mini ⭐ | Recommended — best quality-to-cost | | gpt-4.1 | Best quality | | gpt-4.1-nano | Fastest & cheapest | | gpt-4o | Great quality, widely supported | | o3 | Most powerful reasoning |

Anthropic

| Model | Notes | |-------|-------| | claude-sonnet-4-5 ⭐ | Recommended — excellent quality & speed | | claude-opus-4-5 | Most powerful Claude | | claude-haiku-4-5 | Fastest & cheapest |

Google

| Model | Notes | |-------|-------| | gemini-2.5-flash ⭐ | Recommended — fast, accurate, low cost | | gemini-2.5-pro | Most powerful Gemini | | gemini-2.5-flash-lite | Cheapest Gemini |


Supported Languages

JavaScript · TypeScript · Python · Java · C++ · C · C# · Go · Rust · Ruby · PHP · Swift · Kotlin · SQL


Privacy

  • Your code goes directly from this MCP server → OpenAI/Anthropic/Google API — never to Poly-Glot servers
  • Your API key is an environment variable — never logged or stored by Poly-Glot
  • Session token is verified server-side for plan/quota only — your code is never sent to us
  • Each tool call is a single, stateless AI API call

Links


License

AGPL-3.0-or-later © Harold Moses