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

@chuxin0816/coco

v0.1.2

Published

MCP server wrapper for the coco CLI AI tool

Readme

Coco MCP Server

MCP (Model Context Protocol) server wrapper for the coco CLI AI assistant tool.

Overview

This MCP server exposes the coco CLI tool as an MCP tool, allowing AI assistants like Claude Desktop to interact with coco programmatically.

Prerequisites

  • Node.js 18 or higher
  • The coco CLI tool must be installed and available in your PATH

To verify coco is installed:

coco --version

Installation

Using npx (Recommended)

No installation needed! Just configure your MCP client to use npx (see Configuration section below).

Global Installation

npm install -g @chuxin0816/coco

Local Development

git clone <your-repo>
cd coco-mcp
npm install
npm run build

Configuration

Claude Desktop

Add the following to your Claude Desktop configuration file:

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Configuration:

{
  "mcpServers": {
    "coco": {
      "command": "npx",
      "args": ["@chuxin0816/coco"]
    }
  }
}

Or if you installed globally:

{
  "mcpServers": {
    "coco": {
      "command": "coco-mcp"
    }
  }
}

Or use the Claude CLI:

claude mcp add @chuxin0816/coco

Other MCP Clients

For other MCP clients, configure them to run coco-mcp as a stdio server.

Available Tools

coco_query

Execute a query using the coco CLI AI assistant.

Parameters:

  • prompt (required, string): The prompt/question to send to coco

Example Usage:

In Claude Desktop, you can use this tool by asking Claude to:

  • "Use coco to explain what a closure is in JavaScript"
  • "Ask coco to generate a Python function for sorting a list"
  • "Query coco about best practices for React hooks"

Development

Build

npm run build

Watch Mode

npm run watch

Testing Locally

You can test the MCP server locally using the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Or test it directly:

node dist/index.js

The server will start and wait for MCP protocol messages on stdin.

How It Works

  1. The MCP server runs as a stdio server
  2. When the coco_query tool is called, it executes coco -p "prompt"
  3. The output from coco is returned to the MCP client
  4. The client (e.g., Claude Desktop) can then use this information in the conversation

Troubleshooting

"coco: command not found"

Make sure coco is installed and available in your PATH. Test with:

which coco
coco --version

Permission Issues

If you get permission errors, make sure the compiled JavaScript file is executable:

chmod +x dist/index.js

Server Not Starting

Check the stderr output for error messages. The server logs to stderr (not stdout, which is used for MCP protocol communication).

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.