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

@perufitlife/pocketbase-security-mcp

v0.1.0

Published

MCP server for PocketBase security: audit collections for permissive API rules, preview fixes, and apply rule updates from your AI coding agent.

Readme

PocketBase Security MCP Server

The only PocketBase auditor that closes the loop: scan, preview the fix, and apply the rule update — all from inside Claude Code, Cursor, or Cline. Active probe confirms every leak live with an anonymous fetch.

Why this exists

Every other PocketBase auditor (there are basically zero) would just print findings and stop. This one is an MCP server: your AI coding agent can call it directly to audit, see what a fix would change, and patch the rule itself. No copy-paste between tabs.

Tools

| Tool | What it does | |---|---| | audit_project | Scans the PocketBase instance, returns findings JSON. Active probe ON by default. Caches result. | | list_findings | Lists cached findings by index, optionally filtered by severity. | | preview_fix | Describes what apply_fix would change without calling the API. | | apply_fix | PATCHes the collection rule. Requires confirm: true and an explicit rule_value. Re-audits and reports whether the finding is gone. |

Install

npm install -g @perufitlife/pocketbase-security-mcp

Or via npx from the MCP config:

{
  "mcpServers": {
    "pocketbase-security": {
      "command": "npx",
      "args": ["-y", "@perufitlife/pocketbase-security-mcp"],
      "env": {
        "POCKETBASE_URL": "https://my.pb.io",
        "POCKETBASE_ADMIN_EMAIL": "[email protected]",
        "POCKETBASE_ADMIN_PASSWORD": "..."
      }
    }
  }
}

Workflow inside Claude Code

> audit my pocketbase instance
[calls audit_project → returns 3 critical / 2 high]

> show me the criticals
[calls list_findings severity=critical]

> what would fixing finding 0 do?
[calls preview_fix finding_index=0]

> apply that fix with rule "@request.auth.id != \"\" && @request.auth.id = ownerId"
[calls apply_fix with confirm: true]
[re-audits, confirms the leak is closed]

Differential vs every passive scanner

  • Active probe: not just "this rule looks bad" — we actually fetch the data anonymously to confirm.
  • Auto-remediation: zero copy-paste. The agent applies the fix.
  • Re-audit after fix: instant verification, no manual re-run.

License

MIT. Open source. Built by @Perufitlife.

For the standalone CLI, see https://github.com/Perufitlife/pocketbase-security-skill For Supabase, see https://github.com/Perufitlife/supabase-security-mcp