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

@upstream-intelligence/mcp

v0.1.0

Published

Model Context Protocol server for Upstream. CARC/RARC decoding, NCCI edit checking, CMS fee schedules, payer scorecards, and claim scrubbing for AI agents.

Downloads

64

Readme

@upstream-intelligence/mcp

Releases: npm | CHANGELOG

Model Context Protocol server for Upstream healthcare billing intelligence.

Gives any MCP compatible AI agent (Claude Desktop, Claude Code, Cursor, ChatGPT desktop apps, etc.) direct access to Upstream's free public healthcare intelligence endpoints.

No authentication required. No credit card. Rate limited per IP.


What it does

The server exposes Upstream's free public API as MCP tools. Ask your agent in plain English; the agent will pick the right tool and call it for you.

  • lookup_carc: decode any CARC (Claim Adjustment Reason Code) with plain English meaning, recommended action, and appeal strategy.
  • check_ncci_edit: check whether two CPT or HCPCS codes are subject to NCCI bundling, MUE unit limits, or modifier allowed overrides.
  • fee_schedule_lookup: CMS Medicare Physician Fee Schedule rates and RVU components, with optional locality adjustment.
  • payer_scorecard: public Payer Behavior Scorecard with denial rate, days to pay, overturn rate, and top denial reasons.
  • list_payer_scorecards: list every payer Upstream tracks, filterable by vertical (ABA, SNF, PT/OT, dental, etc.).
  • compare_payers: side by side comparison of 2 to 5 payers on the same metrics.
  • scan_claim: run the free claim scrubber, which catches NCCI conflicts, MUE overflow, missing modifiers, Dx-CPT mismatches, and timely filing risk before submission.
  • explain_denial: structured explanation combining CARC decoding with payer context and recommended appeal arguments.
  • upstream_status: health check of every wrapped endpoint from your current network.

Install

Claude Desktop

Add to your claude_desktop_config.json:

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

Restart Claude Desktop. The Upstream tools appear in the tools menu.

Claude Code

claude mcp add upstream -- npx -y @upstream-intelligence/mcp

Cursor

Add to .cursor/mcp.json:

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

Any MCP client

npx -y @upstream-intelligence/mcp

The server speaks MCP over stdio. Connect any client that supports stdio transport.


Example prompts

Once installed, try these in your agent:

"What does CARC CO-197 mean? Give me the appeal strategy for Aetna."

"Are CPT 97110 and 97140 bundled? If so, what modifier lets us bill both?"

"Compare denial rates and days to pay across Aetna, Anthem, UnitedHealthcare, and Cigna for ABA claims."

"Here's a claim: 97153 plus 97155 on the same day for Aetna, dx F84.0, DOS 2026-03-15. Run it through the scrubber and tell me if it will pay."

"Medicare allowable for 99214 in Manhattan?"


Configuration

Environment variables:

| Variable | Default | Purpose | |---|---|---| | UPSTREAM_API_BASE | https://api.upstream.cx/api/v1 | Point at a different Upstream instance (must resolve to an *.upstream.cx or localhost host). | | UPSTREAM_API_KEY | (unset) | If set, sent as X-API-Key on every request to the Upstream API. Raises your rate limit from 500 calls/month (free tier) to your plan tier. Never sent to public federal data sources (NPPES, NIH, Federal Register). | | UPSTREAM_MCP_LOG | (unset) | Set to 1 to emit structured JSON logs to stderr for every tool call, retry, and failure. Default is silent. Log lines never include request bodies, response bodies, headers, or URL query params. |


Rate limits

The free public endpoints are rate limited per IP. Set UPSTREAM_API_KEY to raise your rate limit from 500 calls/month (free tier) to your plan tier. Get a key at upstream.cx/developers.


Links


License

MIT. Do anything you want with it.