MCP Registry Search

MCP Registry Search

Enables semantic and full-text search over the official Model Context Protocol registry to discover MCP servers for integration.

Category
访问服务器

README

MCP Registry Search

Semantic search API for MCP servers using the official Model Context Protocol registry.

Use as:

  • REST API (search): https://mcp-registry-search.vercel.app/search?q=kubernetes&limit=2
  • REST API (list): https://mcp-registry-search.vercel.app/servers?limit=10&offset=0
  • MCP Server (SSE): https://mcp-registry-search.vercel.app/api/sse

Cron job reindexes the entire registry every night.

Built with:

Usage

Search REST API

Query the registry using the /search endpoint:

Endpoint: https://mcp-registry-search.vercel.app/search?q=kubernetes&limit=2

Example:

curl "https://mcp-registry-search.vercel.app/search?q=kubernetes&limit=2"

Example Response:

{
  "results": [
    {
      "id": 259,
      "name": "io.github.vfarcic/dot-ai",
      "description": "AI-powered development platform for Kubernetes deployments and intelligent automation",
      "version": "0.101.0",
      "repository": {
        "url": "https://github.com/vfarcic/dot-ai",
        "source": "github"
      },
      "packages": [
        {
          "version": "0.101.0",
          "transport": {
            "type": "stdio"
          },
          "identifier": "@vfarcic/dot-ai",
          "registryType": "npm"
        }
      ],
      "remotes": [],
      "similarity_score": 0.606411385574579
    },
    {
      "id": 272,
      "name": "io.github.containers/kubernetes-mcp-server",
      "description": "An MCP server that provides [describe what your server does]",
      "version": "1.0.0",
      "repository": {
        "url": "https://github.com/containers/kubernetes-mcp-server",
        "source": "github"
      },
      "packages": [],
      "remotes": [],
      "similarity_score": 0.451448836663574
    }
  ],
  "query": "kubernetes",
  "limit": 2,
  "count": 2
}

Query Parameters:

  • q (required): Search query string
  • limit (optional): Maximum number of results (default: 10)
  • full_text_weight (optional): Weight for full-text search (default: 1.0)
  • semantic_weight (optional): Weight for semantic search (default: 1.0)

List Servers API

List all servers with pagination using the /servers endpoint:

Endpoint: https://mcp-registry-search.vercel.app/servers?limit=10&offset=0

Example:

curl "https://mcp-registry-search.vercel.app/servers?limit=5"

Query Parameters:

  • limit (optional): Maximum number of results (default: 100)
  • offset (optional): Number of results to skip (default: 0)

MCP Server

Connect to the MCP server via SSE for direct integration with MCP clients:

Endpoint: https://mcp-registry-search.vercel.app/api/sse

Available Tools:

  • search_mcp_servers(query, limit, full_text_weight, semantic_weight) - Search servers using hybrid search
  • list_mcp_servers(limit, offset) - List all servers with pagination

Add to your MCP client config:

{
  "mcpServers": {
    "registry-search": {
      "url": "https://mcp-registry-search.vercel.app/api/sse",
      "transport": {
        "type": "sse"
      }
    }
  }
}

Features

  • 🔍 Hybrid search combining lexical (PostgreSQL full-text) and semantic (pgvector) search
  • 🚀 Fast vector similarity using OpenAI embeddings + Supabase pgvector
  • 📊 Ranked results using weighted scoring
  • 🔄 Automatic ETL pipeline to fetch and index MCP servers
  • 🌐 FastAPI REST API for web access
  • 🔌 FastMCP server for MCP client integration
  • ☁️ Deployable to Vercel (FastAPI) and any MCP-compatible host (FastMCP)

Architecture

┌─────────────────┐
│  MCP Registry   │
│   (Source API)  │
└────────┬────────┘
         │
         │ ETL Pipeline
         ↓
┌─────────────────┐
│    Supabase     │
│  (PostgreSQL +  │
│    pgvector)    │
└────────┬────────┘
         │
         │ Search Query
         ↓
┌─────────────────┬─────────────────┐
│   FastAPI REST  │mcp-agent Server │
│      (Web)      │   (MCP Clients) │
└─────────────────┴─────────────────┘

Development

1. Install dependencies

uv sync

2. Set up Supabase

  1. Create a Supabase account
  2. Create a new project
  3. Run the SQL in schema.sql in the Supabase SQL editor
  4. Get your project URL and anon key from Settings > API

3. Configure environment variables

cp .env.example .env

Edit .env and add:

  • OPENAI_API_KEY: Your OpenAI API key
  • SUPABASE_URL: Your Supabase project URL
  • SUPABASE_KEY: Your Supabase anon key

4. Run ETL to fetch and index servers

uv run etl.py

This will:

  1. Fetch all servers from the MCP registry
  2. Filter to active servers (latest versions only)
  3. Generate embeddings using OpenAI
  4. Store in Supabase with vector indices

5. Start the servers

FastAPI (REST API):

uvicorn api:app --reload

API available at http://localhost:8000

  • Docs: http://localhost:8000/docs

FastMCP (MCP Server):

uv run main.py

API Usage

REST API

Search servers:

curl "http://localhost:8000/search?q=kubernetes&limit=5"

List all servers:

curl "http://localhost:8000/servers?limit=100&offset=0"

Health check:

curl "http://localhost:8000/health"

MCP Server

The FastMCP server provides:

Tools:

  • search_mcp_servers(query, limit, full_text_weight, semantic_weight) - Search servers
  • list_mcp_servers(limit, offset) - List all servers

Resources:

  • mcp-registry://search/{query} - Search results as formatted text

Prompts:

  • find_mcp_server(task) - Prompt template to find servers for a task

Add to your MCP client config:

{
  "mcpServers": {
    "registry-search": {
      "command": "uv",
      "args": ["run", "main.py"],
      "cwd": "/path/to/mcp-registry-search",
      "env": {
        "OPENAI_API_KEY": "your-key",
        "SUPABASE_URL": "your-url",
        "SUPABASE_KEY": "your-key"
      }
    }
  }
}

Deployment

Vercel (FastAPI)

  1. Install Vercel CLI:
npm i -g vercel
  1. Add environment variables to Vercel:
vercel env add OPENAI_API_KEY
vercel env add SUPABASE_URL
vercel env add SUPABASE_KEY
vercel env add CRON_SECRET  # Random secret to protect cron endpoint
  1. Deploy:
vercel

Automatic ETL Updates: The project includes a Vercel Cron job that runs nightly at midnight (UTC) to refresh the server index. The cron job calls /api/cron/etl which is protected by the CRON_SECRET environment variable.

Public SSE Proxy (Edge)

Expose an authenticated upstream SSE endpoint publicly by proxying through a Vercel Edge Function that injects the bearer token and streams responses.

  1. Configure env vars (in Vercel):
vercel env add UPSTREAM_SSE_URL   # e.g. https://<host>/sse
vercel env add UPSTREAM_SSE_TOKEN # bearer token for upstream

Alternative names supported for the token: LM_API_KEY or LM_API_TOKEN.

  1. Endpoint path
  • The SSE proxy is available at /api/sse (see api/sse.ts).
  • The MCP messages proxy is available at /api/messages (see api/messages.ts).
  • Rewrites expose root paths: /sse/api/sse, /messages/api/messages for MCP clients that expect root-level endpoints.
  1. CORS and streaming
  • CORS: Access-Control-Allow-Origin: *
  • Streaming: Edge Runtime streams SSE by default; cache disabled.
  1. Example usage
curl -N https://<your-project>.vercel.app/api/sse
# or using the root rewrite
curl -N https://<your-project>.vercel.app/sse
  1. Custom upstream per deployment (optional)
  • Override with UPSTREAM_SSE_URL in env without changing code.
  • Messages upstream auto-derives from the SSE URL, or set UPSTREAM_MESSAGES_URL explicitly if needed.

mcp-agent Server

We use mcp-agent cloud to deploy and host the MCP server. Under the covers, it's a FastMCP server (see main.py).

To do so yourself, you can run:

  • uv run mcp-agent login
  • uv run mcp-agent deploy

Manual ETL Updates

To manually refresh the server index:

Locally:

uv run etl.py
# or
make etl

On Vercel (trigger cron endpoint):

curl -X GET https://your-project.vercel.app/api/cron/etl \
  -H "Authorization: Bearer YOUR_CRON_SECRET"

The automatic nightly cron job handles updates, but you can manually trigger it anytime.

Development

Project structure:

registry/
├── api.py              # FastAPI REST API (hosted on Vercel)
├── main.py             # MCP server (hosted on mcp-agent cloud)
├── search.py           # Search engine
├── etl.py              # ETL pipeline
├── schema.sql          # Supabase schema
├── pyproject.toml      # Dependencies
├── vercel.json         # Vercel config
└── README.md           # This file

License

Apache 2.0

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选