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

bun-mcp-server

v3.3.0

Published

MCP server for Bun documentation

Readme

Bun Documentation MCP + Claude Code Plugin

A Model Context Protocol (MCP) server and Claude Code plugin that makes Claude a Bun expert. Provides intelligent access to Bun documentation with full-text search, plus skills, commands, and hooks that proactively guide you toward Bun-native APIs.

What's Included

MCP Server (4 tools)

| Tool | Description | | ----------------- | ------------------------------------------------ | | search_bun_docs | Full-text search with SQLite FTS5 + BM25 ranking | | grep_bun_docs | JavaScript regex pattern matching | | read_bun_doc | Read markdown documentation by slug (paginated) | | list_bun_docs | Browse docs by category |

Claude Code Plugin

| Component | Description | | -------------- | --------------------------------------------------------------------------------------------------------- | | 3 Skills | Pre-loaded knowledge: Bun-native APIs, Node-to-Bun migration recipes, testing/bundling/package management | | 1 Agent | bun-optimizer - proactively scans JS/TS files for Node.js patterns that should be Bun-native | | 2 Commands | /bun-docs:bun-check (audit project) and /bun-docs:bun-migrate (migrate a package/file) | | 1 Hook | Intercepts bun add express (and 40+ other packages) with Bun-native alternative warnings |

Installation

As a Claude Code Plugin (recommended)

# Add the marketplace
/plugin marketplace add chikingsley/bun-mcp-server

# Install the plugin
/plugin install bun-docs@bun-plugins

This gives you everything: MCP tools, skills, commands, agent, and hooks.

MCP Server Only

If you just want the documentation search tools:

claude mcp add bun-docs bunx bun-mcp-server

Local Plugin (for development)

# Symlink into your global plugins directory
mkdir -p ~/.claude/plugins
ln -s /path/to/bun-doc-mcp ~/.claude/plugins/bun-docs

Usage

Skills (automatic)

Just ask questions - Claude automatically activates the right skill:

  • "How do I create an HTTP server in Bun?" (activates bun-apis skill)
  • "Migrate this Express app to Bun" (activates bun-migration skill)
  • "How do I write tests with bun:test?" (activates bun-testing skill)

Commands

/bun-docs:bun-check              # Scan project for Node.js anti-patterns
/bun-docs:bun-check package.json # Audit specific file
/bun-docs:bun-migrate express    # Migrate a specific package to Bun-native
/bun-docs:bun-migrate src/db.ts  # Migrate a specific file

Hook (automatic)

When Claude runs bun add express, bun add pg, bun add ws, or any of 40+ Node.js packages, you'll see a warning like:

Bun Alternative Available express has a Bun-native replacement: Bun.serve()

Agent (automatic)

After Claude writes or edits JS/TS files, the bun-optimizer agent can proactively scan for Node.js patterns and suggest Bun-native replacements.

Packages Intercepted by Hook

Web Frameworks: express, koa, hapi, fastify, polka, micro Database: pg, postgres, better-sqlite3, ioredis, redis WebSocket: ws, socket.io, engine.io HTTP: node-fetch, cross-fetch, axios, got, ky, superagent Shell: execa, shelljs, cross-spawn Files: glob, fast-glob, globby, fs-extra, chokidar Env: dotenv, dotenv-expand Crypto: bcrypt, bcryptjs, argon2 Testing: jest, vitest, mocha, chai, jasmine Bundler: webpack, esbuild, rollup, parcel, tsup

Development

bun install
bun run build
bun run test
bun run lint
bun run typecheck

How the MCP Server Works

  1. Downloads Bun docs from GitHub (matching your Bun version) via sparse checkout
  2. Builds SQLite FTS5 search index with BM25 ranking
  3. Caches docs and index in ~/.cache/bun-mcp-server/{version}/
  4. Serves search, read, and browse tools over stdio

License

MIT