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

api-oracle

v0.1.0

Published

MCP server that finds, evaluates, and recommends the best API for any programming task

Readme

API Oracle

An MCP server that gives Claude Code the ability to find, evaluate, and recommend the best API for any programming task.

When a developer asks "what should I use to send emails?" — API Oracle returns a structured recommendation with working code, honest gotchas, pricing details, and everything needed to get started immediately.

What It Does

Exposes 3 MCP tools to Claude Code:

| Tool | Description | |------|-------------| | find_best_api | Recommend the best API for a task with quick-start code | | compare_apis | Side-by-side comparison of 2-5 APIs | | get_api_setup_guide | Complete setup instructions for a specific API |

Knowledge Base

35 curated API entries across 13 categories:

| Category | APIs | |----------|------| | Email | Resend, SendGrid, Postmark | | Payments | Stripe, Razorpay | | AI | OpenAI, Anthropic, Replicate, Resemble AI | | Storage | Cloudinary, UploadThing | | Auth | Clerk, Auth0 | | Search | Algolia | | Messaging | Twilio, Vonage, Pusher, Ably | | Communication | Stream Chat, Sendbird | | Database | Supabase, Firebase, PlanetScale, Upstash, Neon | | Media | Mux, Deepgram, imgix | | Maps | Mapbox, Google Maps Platform | | Notifications | OneSignal, Knock, Novu | | Analytics | Sentry, PostHog |

Quick Start

1. Install dependencies

node --version  # Must be >= 24.x (see .nvmrc)
npm install

2. Build

npm run build

3. Seed the database

npm run seed

4. Connect to Claude Code

Add to ~/.claude/claude.json under mcpServers:

{
  "mcpServers": {
    "api-oracle": {
      "command": "node",
      "args": ["dist/index.js"],
      "cwd": "/absolute/path/to/api-oracle"
    }
  }
}

5. Restart Claude Code

The api-oracle server will now appear in your MCP servers list.

Development

npm run dev        # Run with tsx (no build needed)
npm test           # Run unit tests (56 tests)
npm run validate   # Validate all JSON entries + cross-references
npm run seed       # Seed database
npm run e2e        # Run 8 end-to-end query scenarios

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | DB_PATH | ./data/api-oracle.db | SQLite database file location | | LOG_LEVEL | info | Log level (debug, info, warn, error) | | NODE_ENV | development | Environment |

Adding New APIs

  1. Create src/entries/<category>/<slug>.json
  2. Fill in all schema fields (see docs/adding-apis.md)
  3. npm run validate — verify schema and cross-references
  4. npm run seed — load into database
  5. npm test — run tests

See docs/adding-apis.md for the full guide and JSON template.

Architecture

src/
├── index.ts              # Entry point
├── server.ts             # McpServer setup + tool registration
├── tools/                # MCP tool handlers
│   ├── find-api.ts       # find_best_api
│   ├── compare-apis.ts   # compare_apis
│   └── get-setup-guide.ts# get_api_setup_guide
├── knowledge/            # Core logic
│   ├── schema.ts         # Zod schema + TypeScript types
│   ├── db.ts             # SQLite CRUD (better-sqlite3)
│   ├── search.ts         # Search entry point
│   └── scorer.ts         # Weighted ranking engine
├── entries/              # API knowledge base (35 JSON files)
│   ├── ai/               # openai, anthropic, replicate, resemble-ai
│   ├── analytics/        # sentry, posthog
│   ├── auth/             # clerk, auth0
│   ├── communication/    # stream-chat, sendbird
│   ├── database/         # supabase, firebase, planetscale, upstash, neon
│   ├── email/            # resend, sendgrid, postmark
│   ├── maps/             # mapbox, google-maps
│   ├── media/            # mux, deepgram, imgix
│   ├── messaging/        # twilio, vonage, pusher, ably
│   ├── notifications/    # onesignal, knock, novu
│   ├── payments/         # stripe, razorpay
│   ├── search/           # algolia
│   └── storage/          # cloudinary, uploadthing
└── utils/
    ├── logger.ts         # Structured stderr logger
    └── config.ts         # Environment config

See docs/scoring-logic.md for how the ranking algorithm works.

Roadmap (V0.3+)

  • Semantic search — vector embeddings for better query understanding (replace LIKE)
  • More APIs — Datadog, Stripe Billing, Twilio Segment, Cloudflare Workers KV, etc.
  • Live validation — periodically verify pricing/rate limits are still accurate
  • Graph relationships — boost APIs commonly used together
  • Category browsing — new tool: list_apis_by_category
  • Feedback loop — track which recommendations developers actually use