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 🙏

© 2025 – Pkg Stats / Ryan Hefner

smackdab-api-grader-mcp

v1.0.0

Published

MCP client for Smackdab API Grader - connects Claude Desktop to the remote grading service

Readme

Smackdab API Grader MCP Client

Connect Claude Desktop to the Smackdab API Grader service through the Model Context Protocol (MCP).

Installation

Quick Start (No Installation)

Run directly with npx:

npx smackdab-api-grader-mcp

Global Installation

Install globally for easier access:

npm install -g smackdab-api-grader-mcp

Then run:

api-grader-mcp

Configuration for Claude Desktop

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "api-grader": {
      "command": "npx",
      "args": ["smackdab-api-grader-mcp"],
      "env": {
        "API_GRADER_KEY": "your-api-key-here"
      }
    }
  }
}

Or if you installed globally:

{
  "mcpServers": {
    "api-grader": {
      "command": "api-grader-mcp",
      "env": {
        "API_GRADER_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

Once connected, you can use these tools in Claude Desktop:

grade_contract

Grade an OpenAPI specification against best practices.

Example:

"Grade this OpenAPI spec: [paste your spec here]"

generate_api_id

Generate a unique API identifier (UUID v4) for the x-api-id field.

Example:

"Generate an API ID for my inventory management API"

validate_api_id

Check if an OpenAPI spec has a valid x-api-id.

list_checkpoints

List all available grading checkpoints and rules.

get_api_history

Get grading history for an API by its UUID.

get_api_improvements

Analyze improvement trends for an API.

compare_api_versions

Compare two versions of an API specification.

get_api_analytics

Get comprehensive analytics and metrics for an API.

version

Get version and connection information.

Command Line Options

api-grader-mcp [options]

Options:
  --api-url <url>    Remote API URL (default: https://smackdab-api-grader.onrender.com)
  --api-key <key>    API key for authentication
  --debug            Enable debug logging
  --test             Test connection to remote API
  --help             Show help message

Environment Variables

  • API_GRADER_URL: Remote API URL (default: https://smackdab-api-grader.onrender.com)
  • API_GRADER_KEY: API key for authentication
  • DEBUG: Enable debug logging (set to 'true')

Testing Connection

Test that the connection works:

npx @smackdab/api-grader-mcp --test

Using a Self-Hosted API

If you're running your own instance of the API grader:

{
  "mcpServers": {
    "api-grader": {
      "command": "npx",
      "args": ["smackdab-api-grader-mcp"],
      "env": {
        "API_GRADER_URL": "https://your-api.com",
        "API_GRADER_KEY": "your-api-key"
      }
    }
  }
}

Troubleshooting

Claude Desktop doesn't see the tools

  1. Make sure you've restarted Claude Desktop after updating the config
  2. Check that the command runs without errors: npx @smackdab/api-grader-mcp
  3. Enable debug mode to see detailed logs:
    "env": {
      "DEBUG": "true"
    }

Connection errors

  1. Test the connection: npx @smackdab/api-grader-mcp --test
  2. Check your API key is correct
  3. Verify the API URL is accessible

Permission errors on macOS/Linux

If you get permission errors, you may need to make the command executable:

npm install -g smackdab-api-grader-mcp
which api-grader-mcp  # Find the installation path
chmod +x /path/to/api-grader-mcp

How It Works

This MCP client acts as a bridge between Claude Desktop (which only supports local stdio connections) and the remote Smackdab API Grader service:

Claude Desktop <--stdio--> MCP Client <--HTTP--> API Grader Service

The client runs locally on your machine and translates between the MCP protocol that Claude Desktop understands and the REST API that the grader service provides.

Security

  • API keys are never sent to Claude, only to the API grader service
  • All communication with the API service is over HTTPS
  • The client runs locally on your machine
  • No data is stored locally except for debug logs (if enabled)

Support

  • Issues: https://github.com/smackdab/api-grader-mcp/issues
  • Documentation: https://github.com/smackdab/api-grader-mcp
  • API Grader Service: https://smackdab-api-grader.onrender.com

License

MIT