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

specky-mcp

v1.0.2

Published

🦔 Transform Swagger/OpenAPI specs into MCP servers for LLMs

Readme

Specky


Specky converts any Swagger/OpenAPI specification into a Model Context Protocol (MCP) server, enabling LLMs like Claude to interact with REST APIs intelligently.

Features

  • Smart Search Mode (default) - 2 meta-tools instead of 100+ tools
  • Full OpenAPI Support - Swagger 2.0, OpenAPI 3.0 & 3.1
  • Multiple Auth Methods - API Key, Bearer, Basic, OAuth2
  • Beautiful CLI - Colors, spinners, ASCII art
  • Filtering Options - By tags, path patterns
  • Dual Usage - CLI or library

Quick Start

# Install globally
npm install -g specky-mcp

# Start MCP server (search mode by default)
specky https://petstore.swagger.io/v2/swagger.json

# List available endpoints
specky ./api.yaml --list --verbose

Search Mode (Default)

Instead of exposing all API endpoints as tools, Specky provides 2 intelligent meta-tools:

| Tool | Description | |------|-------------| | search_endpoints | Find relevant API endpoints by keywords | | call_endpoint | Call any endpoint by its ID |

Example LLM conversation:

User: "Find all pet-related endpoints"
Claude: [calls search_endpoints(query="pet")]
        → Found: get_pet_pet_id, post_pet, delete_pet_pet_id...

User: "Get pet with ID 123"  
Claude: [calls call_endpoint(endpoint_id="get_pet_pet_id", petId=123)]
        → { "id": 123, "name": "Fido", "status": "available" }

Why Search Mode?

| Problem with Full Mode | Search Mode Solution | |------------------------|---------------------| | 100+ tools overwhelm LLM context | Only 2 tools exposed | | Model confusion choosing tools | Natural language search | | Slow tool listing | Instant response |

CLI Options

specky <spec> [options]

Arguments:
  spec                     Path or URL to Swagger/OpenAPI spec

Options:
  -m, --mode <mode>        Server mode: search (default) or full
  --tags <tags>            Filter by tags (comma-separated)
  --include <pattern>      Include paths matching regex
  --exclude <pattern>      Exclude paths matching regex
  -a, --auth <type>        Auth: none|apikey|bearer|basic|oauth2
  -t, --token <token>      Bearer token or API key
  -b, --base-url <url>     Override base URL
  -v, --verbose            Verbose output
  --list                   List endpoints and exit
  -h, --help               Show help

Authentication

# Bearer Token
specky api.yaml --auth bearer --token $TOKEN

# API Key
specky api.yaml --auth apikey --key $KEY --header X-API-Key

# Basic Auth
specky api.yaml --auth basic --username admin --password secret

Filtering

# Only pet and store endpoints
specky api.yaml --tags pet,store

# Only paths starting with /api/v2
specky api.yaml --include "^/api/v2"

# Exclude admin endpoints
specky api.yaml --exclude "/admin"

Claude Desktop Integration

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "my-api": {
      "command": "npx",
      "args": ["specky-mcp", "https://api.example.com/swagger.json"]
    }
  }
}

Library Usage

import { createSearchModeServer } from 'specky-mcp';

const { server, tools, start } = await createSearchModeServer({
  spec: './swagger.json',
  auth: { type: 'bearer', token: process.env.API_TOKEN }
});

console.log(`Loaded ${tools.length} endpoints`);
await start();

License

MIT © 2024