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

mcp-discovery-api

v1.0.0

Published

Agent-native discovery and routing layer for MCP servers. Enables AI agents to autonomously discover, evaluate, and select the best MCP servers for their tasks.

Downloads

21

Readme

MCP Discovery API

Agent-native discovery and routing layer for Model Context Protocol (MCP) servers. Enables AI agents to autonomously discover, evaluate, and select the best MCP servers for their tasks.

Features

  • Semantic Search: Find MCP servers using natural language queries
  • Performance Metrics: Get real-time latency, uptime, and reliability data
  • Server Comparison: Compare multiple MCP servers side-by-side
  • Agent-Native: Works seamlessly with Claude, Cursor, and other MCP clients

Installation

Using npx (Recommended)

npx @mcp-tools/discovery

Manual Installation

npm install -g @mcp-tools/discovery
mcp-discovery

Configuration

Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "discovery": {
      "command": "npx",
      "args": ["-y", "@mcp-tools/discovery"],
      "env": {
        "SUPABASE_URL": "your-supabase-url",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key",
        "OPENAI_API_KEY": "your-openai-api-key"
      }
    }
  }
}

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "discovery": {
      "command": "npx",
      "args": ["-y", "@mcp-tools/discovery"],
      "env": {
        "SUPABASE_URL": "your-supabase-url",
        "SUPABASE_SERVICE_ROLE_KEY": "your-service-role-key",
        "OPENAI_API_KEY": "your-openai-api-key"
      }
    }
  }
}

Tools

discover_mcp_server

Find MCP servers matching a natural language requirement.

Input:

{
  "need": "database with authentication",
  "constraints": {
    "max_latency_ms": 200,
    "required_features": ["auth", "realtime"],
    "exclude_servers": ["deprecated-server"]
  },
  "limit": 5
}

Output:

{
  "recommendations": [
    {
      "server": "supabase-mcp-server",
      "npm_package": "@supabase/mcp-server",
      "install_command": "npx -y @supabase/mcp-server",
      "confidence": 0.94,
      "description": "Open source Firebase alternative...",
      "capabilities": ["postgres", "auth", "storage", "realtime"],
      "metrics": {
        "avg_latency_ms": 120,
        "uptime_pct": 99.9,
        "last_checked": "2026-01-17T10:30:00Z"
      },
      "docs_url": "https://supabase.com/docs",
      "github_url": "https://github.com/supabase/mcp-server"
    }
  ],
  "total_found": 1,
  "query_time_ms": 245
}

get_server_metrics

Get detailed performance metrics for a specific MCP server.

Input:

{
  "server_id": "postgres-server",
  "time_range": "24h"
}

Output:

{
  "server": {
    "id": "uuid",
    "name": "PostgreSQL Server",
    "slug": "postgres-server"
  },
  "metrics": {
    "current": {
      "latency_ms": 85,
      "success_rate": 0.99,
      "uptime_pct": 99.95,
      "active_connections": 42
    },
    "history": [
      {
        "timestamp": "2026-01-16T10:00:00Z",
        "latency_ms": 82,
        "success_rate": 1.0,
        "uptime_pct": 100
      }
    ]
  }
}

compare_servers

Compare multiple MCP servers side-by-side.

Input:

{
  "server_ids": ["postgres-server", "sqlite-server", "mongodb-server"],
  "compare_by": ["latency", "uptime", "features"]
}

Output:

{
  "servers": [
    {
      "id": "uuid",
      "name": "PostgreSQL Server",
      "slug": "postgres-server",
      "capabilities": ["postgres", "sql", "database"],
      "metrics": {
        "latency_ms": 85,
        "uptime_pct": 99.95,
        "success_rate": 0.99
      },
      "ranking": {
        "by_latency": 1,
        "by_uptime": 1,
        "by_features": 2
      }
    }
  ]
}

Environment Variables

| Variable | Description | Required | |----------|-------------|----------| | SUPABASE_URL | Your Supabase project URL | Yes | | SUPABASE_SERVICE_ROLE_KEY | Supabase service role key | Yes | | OPENAI_API_KEY | OpenAI API key for embeddings | Yes | | LOG_LEVEL | Log level (debug, info, warn, error) | No |

Database Setup

  1. Create a new Supabase project at supabase.com

  2. Enable the pgvector extension in the SQL editor:

    CREATE EXTENSION IF NOT EXISTS vector;
  3. Run the schema from src/db/schema.sql in the SQL editor

  4. Seed the initial data:

    npm run seed
    npm run generate-embeddings

Development

Setup

git clone https://github.com/yksanjo/mcp-discovery.git
cd mcp-discovery
npm install
cp .env.example .env
# Edit .env with your credentials

Build

npm run build

Run Locally

npm run dev

Test

npm test

Seed Data

npm run seed
npm run generate-embeddings

Deployment

Railway

  1. Create a new project on Railway
  2. Connect your GitHub repository
  3. Add environment variables
  4. Deploy

Docker

docker build -t mcp-discovery .
docker run -e SUPABASE_URL=... -e SUPABASE_SERVICE_ROLE_KEY=... -e OPENAI_API_KEY=... mcp-discovery

Quick Start

Test it instantly

# Use the CLI
npx @mcp-tools/discovery search "database server"

# Or use the API directly
curl https://mcp-discovery-production.up.railway.app/api/v1/discover \
  -H "Content-Type: application/json" \
  -d '{"need": "email automation", "limit": 5}'

Example Usage

User: "I need to store user profiles with authentication"

Claude calls: discover_mcp_server({ need: "store user profiles with authentication" })

Returns: Supabase MCP server with 0.94 confidence

Claude: "I recommend the Supabase MCP server. It provides PostgreSQL database
with built-in authentication, real-time subscriptions, and row-level security.

To install: npx -y @supabase/mcp-server"

API Access

Hosted API: https://mcp-discovery-production.up.railway.app

| Tier | Price | Queries/Month | Features | |------|-------|---------------|----------| | Free | $0 | 100 | Basic discovery, Server info | | Pro | $29/mo | 10,000 | All free features, Performance metrics, Priority support | | Enterprise | Custom | Unlimited | All pro features, SLA, Custom integrations |

Get an API key:

curl -X POST https://mcp-discovery-production.up.railway.app/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"email": "[email protected]"}'

Distribution Strategy

Platform Integrations

Priority targets:

  1. Cursor - Aggressively building MCP support

  2. Continue.dev - Open source, easier entry

    • Open GitHub issue proposing integration
    • Submit PR adding discovery tool
  3. Zed Editor - Growing fast, MCP-friendly

Content & SEO

Planned pages:

  • /servers - Full MCP server directory
  • /servers/database - Category pages
  • /guides/choosing-mcp-server - Educational content
  • /compare/[server-a-vs-server-b] - Comparison pages

MCP Registry Submission

PR submitted to: https://github.com/modelcontextprotocol/servers

Architecture

┌─────────────────────────────────────┐
│   AI Agent (Claude, Cursor, etc)   │
│   Working on user task              │
└────────────┬────────────────────────┘
             │
             │ Calls: discover_mcp_server(need)
             ↓
┌─────────────────────────────────────┐
│   MCP DISCOVERY SERVER              │
│   @mcp-tools/discovery              │
│   - Semantic capability matching    │
│   - Performance ranking             │
│   - Returns structured metadata     │
└────────────┬────────────────────────┘
             │
             │ Queries database
             ↓
┌─────────────────────────────────────┐
│   SUPABASE (PostgreSQL + pgvector) │
│   - MCP servers registry            │
│   - Capabilities index              │
│   - Performance metrics             │
│   - Embeddings for search           │
└─────────────────────────────────────┘

License

MIT

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Links