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

@pharmatools/opengate-mcp

v0.1.4

Published

MCP server for OpenGATE — let an AI agent check whether its answers are grounded in the provided context. Deterministic, no LLM judge.

Readme

@pharmatools/opengate-mcp

An MCP server that lets an AI agent check whether its own answers are grounded in the context it was given — before returning them.

It exposes one tool, check_grounding, backed by OpenGATE's deterministic grounding check. No LLM-as-judge: the verdict is reproducible and gold-anchored.

Why

An agent doing RAG or document QA can hallucinate a figure, drop a required fact, or answer confidently when the context doesn't actually contain the answer. check_grounding catches all three, deterministically:

  • Required facts you name must appear in the answer.
  • Every number in the answer must trace to the context (or the question).
  • Unanswerable questions must be declined, not fabricated.

Add it to your MCP client

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "opengate": {
      "command": "npx",
      "args": ["-y", "@pharmatools/opengate-mcp"]
    }
  }
}

Then, in a conversation, the agent can self-check:

Before you answer, use check_grounding with your draft answer and the retrieved passages.

The tool

check_grounding

| Argument | Type | Meaning | |---|---|---| | answer | string | The answer to check. | | context | string | string[] | The retrieved context it must be grounded in. | | question | string (optional) | The original question (lets its numbers count as grounded). | | expected_facts | string[] (optional) | Facts a correct answer must contain. | | allowed_new_numbers | string[] (optional) | Numbers the answer may introduce that aren't in the context. | | must_abstain | boolean (optional) | Set true when the context can't answer — the answer must then decline. |

Returns a GROUNDED / NOT GROUNDED verdict with named issues, plus structured output (grounded, issues, anchorsMissed, ungroundedNumbers, abstained).

Privacy

Runs entirely on your machine. check_grounding is a deterministic, local text comparison — the answer and context you pass are processed in memory and never transmitted or stored. No accounts, no analytics, no external network calls, no third-party model. Full policy: https://www.pharmatools.ai/privacy

Related

  • OpenGATE (the framework): https://github.com/nickjlamb/opengate
  • Evaluate a whole gold set in CI: Getting Started

MIT licensed.