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

grug-brain-mcp

v1.0.0

Published

MCP server that channels the Grug Brained Developer philosophy — complexity very, very bad

Downloads

13

Readme

🪨 grug-brain-mcp

An MCP server that channels the wisdom of The Grug Brained Developer into your Claude Code workflow.

complexity very, very bad.

Quick Start (Claude Code)

Add for all your projects (user scope):

claude mcp add grug-brain --scope user -- npx -y grug-brain-mcp

Add for current project only (default/local scope):

claude mcp add grug-brain -- npx -y grug-brain-mcp

Share with your team — add a .mcp.json at your project root:

{
  "mcpServers": {
    "grug-brain": {
      "command": "npx",
      "args": ["-y", "grug-brain-mcp"]
    }
  }
}

Verify it's connected:

/mcp

You should see grug-brain: connected.

Tools

Once connected, Claude Code will automatically use these when relevant — or you can ask for them directly:

| Tool | What it does | Example prompt | |------|-------------|----------------| | grug_review | Reviews code/architecture for complexity demons | "use grug_review on this service class" | | grug_advice | Grug's take on any software decision | "ask grug if we should use GraphQL" | | grug_say_no | Makes the case against a proposed feature/abstraction | "grug_say_no to adding a plugin system" |

Also exposes a grug://principles resource (all 20 core principles) and a complexity-check prompt template.

Usage Examples

🔍 Code Review — find the complexity demons

> Use grug_review on src/services/UserService.ts

Grug will point out things like: too many dependencies, over-abstracted class hierarchies, unnecessary generics, and suggest simpler alternatives.

> grug_review this auth middleware — is it too clever?
> Review our database layer with grug_review, focus on the ORM abstractions

🧠 Architecture Advice — ask grug before you regret

> Ask grug: should we split our monolith into microservices?

grug wonder why big brain take hardest problem, factoring system correctly, and introduce network call too

> grug_advice: we're debating between GraphQL and REST for our new API
> Ask grug: team wants to add Redis caching layer, worth the complexity?
> grug_advice: should we adopt Kubernetes for our 3-person startup?

🚫 Say No — let grug fight the feature creep

> PM wants real-time collaborative editing. Use grug_say_no.

Grug will either argue for "no" or propose an 80/20 compromise that delivers most of the value with a fraction of the complexity.

> grug_say_no to adding a plugin system with hot-reloading
> Architect wants to introduce event sourcing. grug_say_no, who_wants_it: "senior architect"
> grug_say_no to rewriting our working jQuery frontend in React

📋 Complexity Audit — quick health check

> Do a complexity-check on src/auth/middleware.ts

Returns a complexity demon rating from 1-5 clubs (🪨) and the top 3 things grug would simplify.

💡 Combine with your workflow

> Review the last PR diff from a grug perspective

> I'm about to refactor the payment module. Ask grug for advice first.

> We have 47 microservices. Ask grug what he thinks.

> grug_review the Dockerfile — is it overengineered?

Also works with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "grug-brain": {
      "command": "npx",
      "args": ["-y", "grug-brain-mcp"]
    }
  }
}

Grug's Core Philosophy (TL;DR)

All 20 principles from grugbrain.dev are baked in. The big ones:

  • Complexity very, very bad — the eternal enemy
  • Say "no" — best weapon against complexity demon
  • Say "ok" with 80/20 — when compromise necessary, deliver 80% value with 20% code
  • Don't abstract too early — let cut-points emerge naturally
  • Integration tests are the sweet spot (not unit, not e2e)
  • Locality of behavior > separation of concerns — put code on the thing that does the thing
  • Chesterton's fence — understand before you destroy
  • Microservices? — why take hardest problem and add network call too?
  • Logging — always more logging
  • FOLD — Fear Of Looking Dumb is complexity demon's greatest ally

How it works

The tools return structured prompts infused with grug philosophy. Claude then responds in grug voice, applying the principles from grugbrain.dev to your specific situation.

The server itself is ~100 lines of code. grug approve of this.

License

MIT

Credits

All grug wisdom from grugbrain.dev by Carson Gross, creator of htmx.

grug just package it up so complexity demon easier to fight.