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

@dawmatt/api-grade-mcp

v0.5.0

Published

MCP server exposing api-grade capabilities for LLMs and agentic AI tooling

Readme

@dawmatt/api-grade-mcp

MCP (Model Context Protocol) server that exposes api-grade capabilities as seven AI tools — grade OpenAPI and AsyncAPI specifications directly from Claude Code, GitHub Copilot, or any MCP-compatible AI host.

Installation

npm install -g @dawmatt/api-grade-mcp

Or use without installing (recommended):

npx -y @dawmatt/api-grade-mcp

Quick Start

Claude Code

claude mcp add api-grade -- npx -y @dawmatt/api-grade-mcp

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "api-grade": {
      "command": "npx",
      "args": ["-y", "@dawmatt/api-grade-mcp"]
    }
  }
}

GitHub Copilot (VS Code Agent mode)

Create .vscode/mcp.json in your project root:

{
  "servers": {
    "api-grade": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@dawmatt/api-grade-mcp"]
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | grade-api | Letter grade, score, and summary — token-efficient overview | | grade-api-detailed | Full grade with all violations and diagnostics | | assert-api-grade | Pass/fail assertion for a minimum grade threshold | | grade-api-remediation-safety | Classified list of diagnostics filtered by remediation safety level (safe, humanreview, or unsafe), each with a risk/confidence indicator, for AI-assisted correction | | analyse-ruleset-safety | Per-rule risk, confidence, and remediation-safety analysis for a ruleset, independent of grading any spec | | set-ruleset-config | Set the default Spectral ruleset at session, workspace, or global scope | | get-ruleset-config | Get the active Spectral ruleset and which scope is effective |

Usage Examples

Once configured, ask your AI tool naturally:

Grade the API at /workspace/my-api/openapi.yaml
Check whether /workspace/my-api/openapi.yaml meets a minimum grade of B
Apply safe remediations to /workspace/my-api/openapi.yaml
Set the workspace default ruleset to https://github.example.com/org/standards/raw/main/ruleset.yaml

Default Ruleset Configuration

All grading tools support an optional rulesetPath per-request. To avoid supplying it every time, configure a default:

  • Session — in-memory, cleared on restart
  • Workspace — saved to .api-grade/config.json in the project root
  • Global — saved to ~/.api-grade/config.json

Precedence: per-request → session → workspace → global → built-in.

Supported auth: GitHub PAT (GITHUB_TOKEN env var).

Supported Spec Formats

  • OpenAPI 2.x (Swagger)
  • OpenAPI 3.x
  • AsyncAPI 2.x
  • AsyncAPI 3.x

Requirements

  • Node.js ≥ 20.0.0

Related Packages

| Package | Purpose | |---------|---------| | @dawmatt/api-grade | CLI tool — grade specs from the terminal | | @dawmatt/api-grade-core | Grading engine — embed in your own tools | | @dawmatt/backstage-plugin-api-grade | Backstage frontend card plugin | | @dawmatt/backstage-plugin-api-grade-backend | Backstage backend grading plugin |

Documentation

License

MIT