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

bars-mcp-server

v1.0.1

Published

MCP server for Bars - Library Documentation Service with up-to-date documentation and code examples

Readme

🍺 Bars MCP Server

npm version License: MIT

Bars is a comprehensive library documentation service that provides up-to-date documentation and code examples for any library. It works as a Model Context Protocol (MCP) server for AI assistants like Cursor, Claude, VS Code, and more.

✨ Features

  • 🔍 Smart Search: Find libraries quickly with intelligent search
  • 📚 Rich Documentation: Get comprehensive documentation with code examples
  • Fast & Reliable: Powered by Firebase with sub-second response times
  • 🔧 MCP Compatible: Works with all major AI assistants
  • 🌐 Live API: Access to live documentation service

🚀 Quick Start

Install in Cursor

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

{
  "mcpServers": {
    "bars": {
      "command": "npx",
      "args": ["-y", "bars-mcp-server"]
    }
  }
}

Install in Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "bars": {
      "command": "npx",
      "args": ["-y", "bars-mcp-server"]
    }
  }
}

Install in VS Code

Add to your VS Code MCP config:

{
  "servers": {
    "Bars": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "bars-mcp-server"]
    }
  }
}

Install in Zed

Add to your Zed settings.json:

{
  "context_servers": {
    "Bars": {
      "command": {
        "path": "npx",
        "args": ["-y", "bars-mcp-server"]
      },
      "settings": {}
    }
  }
}

Install in Windsurf

Add to your Windsurf MCP config:

{
  "mcpServers": {
    "bars": {
      "command": "npx",
      "args": ["-y", "bars-mcp-server"]
    }
  }
}

🛠️ Usage

Once installed, you can use Bars in your AI assistant:

Search for React documentation using Bars
Get Next.js routing examples with Bars
Find TypeScript best practices using Bars

🔧 Available Tools

  • resolve-library-id: Search for libraries and get Bars-compatible IDs
  • get-library-docs: Fetch comprehensive documentation for any library

🌐 Live Service

  • Website: https://bars-fca85.web.app
  • API: https://api-h76uo622iq-uc.a.run.app

⚙️ Configuration

Environment Variables

{
  "mcpServers": {
    "bars": {
      "command": "npx",
      "args": ["-y", "bars-mcp-server"],
      "env": {
        "DEFAULT_MINIMUM_TOKENS": "10000"
      }
    }
  }
}

Alternative Runtimes

Using Bun

{
  "mcpServers": {
    "bars": {
      "command": "bunx",
      "args": ["-y", "bars-mcp-server"]
    }
  }
}

Using Deno

{
  "mcpServers": {
    "bars": {
      "command": "deno",
      "args": ["run", "--allow-env", "--allow-net", "npm:bars-mcp-server"]
    }
  }
}

🐳 Docker Support

FROM node:20-alpine
RUN npm install -g bars-mcp-server
CMD ["bars-mcp"]

🧪 Testing

Test the installation:

echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "resolve-library-id", "arguments": {"libraryName": "react"}}}' | npx -y bars-mcp-server

🔧 Development

Local Development

git clone https://github.com/doctorai/bars-mcp-server.git
cd bars-mcp-server
npm install
npm run build
npm test

Building

npm run build

📝 API Reference

Search Libraries

GET https://api-h76uo622iq-uc.a.run.app/v1/search?query={library_name}

Get Documentation

GET https://api-h76uo622iq-uc.a.run.app/v1/{library_path}?tokens={count}&topic={topic}

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📄 License

MIT License - see LICENSE file for details.

🆚 Comparison with Context7

Bars provides the same functionality as Context7 but with:

  • ✅ Your own infrastructure
  • ✅ Firebase-powered reliability
  • ✅ Custom branding
  • ✅ Full control over data and features

📞 Support

  • 🌐 Website: https://bars-fca85.web.app
  • 🐛 Issues: https://github.com/doctorai/bars-mcp-server/issues
  • 📧 Email: [email protected]

Built with ❤️ using Firebase, TypeScript, and the Model Context Protocol.