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
Chocolatey on the Model Context Protocol β searchable, installable, upgradable via tools.
π 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 orall
choco_uninstall
β uninstall by idchoco_info
β package info (--exact
,--verbose
)choco_outdated
β list outdated packageschoco_pin
β add/remove/list pinschoco_feature
β list/enable/disable featureschoco_source
β list/add/remove/enable/disable/update sourceschoco_config
β list/get/set/unset config valueschoco_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