JSPM

mcp-chocolatey

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q75527F
  • License MIT

MCP server exposing Chocolatey (choco) commands as tools

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mcp-chocolatey) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    MCP Chocolatey logo

    MCP Chocolatey

    Chocolatey on the Model Context Protocol β€” searchable, installable, upgradable via tools.

    npm version downloads/week license node >=18


    πŸš€ Quick start (Claude Desktop)

    Add this entry to claude_desktop_config.json (Windows path: C:\Users\<you>\AppData\Roaming\Claude\claude_desktop_config.json).

    {
      "mcpServers": {
        "chocolatey": {
          "command": "npx",
          "args": ["-y", "mcp-chocolatey"],
          "env": {
            "NPX_SILENT": "1",
            "npm_config_loglevel": "silent"
          }
        }
      }
    }

    Restart Claude Desktop. Then try:

    • "List installed Chocolatey packages" (uses choco_list)
    • "Search for 7zip on Chocolatey" (uses choco_search)
    • "Check outdated Chocolatey packages" (uses choco_outdated)

    πŸ’‘ Tip: If your environment chatters on npx, you can run Node directly:
    command: "node", args: ["C:\Users\<you>\AppData\Roaming\npm\node_modules\mcp-chocolatey\src\server.js"].


    ✨ What you get

    • ⚑ Fully typed MCP tools backed by Chocolatey CLI
    • πŸ”§ Zero configuration β€” uses your existing choco install
    • πŸ–₯️ Works in standard Windows terminals and Claude Desktop

    πŸ› οΈ Tools implemented

    • choco_list β€” list local packages (-l)
    • choco_search β€” search remote packages (supports --exact, --pre)
    • choco_install β€” install by id (optional --version, -y)
    • choco_upgrade β€” upgrade by id or all
    • choco_uninstall β€” uninstall by id
    • choco_info β€” package info (--exact, --verbose)
    • choco_outdated β€” list outdated packages
    • choco_pin β€” add/remove/list pins
    • choco_feature β€” list/enable/disable features
    • choco_source β€” list/add/remove/enable/disable/update sources
    • choco_config β€” list/get/set/unset config values
    • choco_help β€” passthrough help

    πŸ”§ Troubleshooting

    "Unexpected token … not valid JSON" in Claude logs

    Any non‑JSON text on stdout can break MCP. This package avoids stdout noise; however, some environments make npx chatty. Fix: add the env shown above (NPX_SILENT, npm_config_loglevel) or run node directly to the server script.

    choco not found

    Ensure Chocolatey is on PATH. For a per‑user install it typically lives under C:\Users\<you>\AppData\Local\UniGetUI\Chocolatey\bin.


    πŸ—οΈ Local development

    # Start in stdio mode (stdout must be clean for MCP)
    npm run start:stdio

    πŸ“„ License

    MIT