MCP Advisor

MCP Advisor

A discovery and recommendation service that helps AI assistants find Model Context Protocol servers based on natural language queries.

Category
访问服务器

README

MCP Advisor

Model Context Protocol

<a href="https://glama.ai/mcp/servers/@istarwyh/mcpadvisor"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@istarwyh/mcpadvisor/badge" alt="Advisor MCP server" /> </a>

MCP Advisor & Installation

Experience MCP Advisor

What is this?

MCP Advisor is a discovery & recommendation service that helps you explore Model Context Protocol servers. It acts as a smart guide that helps AI assistants find and understand available MCP services out there based on natural language queries, making it easier to discover and utilize the right tools for specific tasks.

Features

  • Smart Search: Find MCP services using natural language queries
  • Rich Metadata: Get detailed information about each service
  • Real-time Updates: Always up-to-date with the latest MCP services MCP Servers
  • Easy Integration: Simple to integrate with any MCP-compatible AI assistant
  • Vector Search: Powered by OceanBase for high-performance semantic search
  • Modular Architecture: Clean separation of concerns for maintainability and extensibility

Architecture

graph TD
    Client[AI Assistant/Client] --> |Query| Server[MCP Advisor Server]
    Server --> |Request| SearchService[Search Service]
    SearchService --> |Query| Provider1[Compass Search Provider]
    SearchService --> |Query| Provider2[GetMCP Search Provider]
    Provider1 --> |API Call| ExternalAPI[External MCP Registry API]
    Provider2 --> |Fetch Data| GetMCPAPI[GetMCP API]
    Provider2 --> |Vector Search| OceanBase[OceanBase Vector DB]
    SearchService --> |Results| Server
    Server --> |Response| Client

    subgraph "MCP Advisor Core"
        Server
        SearchService
        Provider1
        Provider2
    end

    subgraph "Data Layer"
        GetMCPAPI
        OceanBase
        ExternalAPI
    end

    subgraph "Transport Options"
        Stdio[Stdio Transport]
        SSE[SSE Transport]
        REST[REST Transport]
    end

    Server --> Stdio
    Server --> SSE
    Server --> REST

Data Flow

sequenceDiagram
    participant Client as AI Assistant
    participant Service as SearchService
    participant Provider as GetMcpSearchProvider
    participant DB as OceanBase

    Client->>Service: Query Request
    Service->>Provider: search(query)
    
    Provider->>Provider: Generate Query Embedding
    Provider->>DB: Vector Similarity Search
    DB-->>Provider: Return Similar Servers
    Provider-->>Service: Return Formatted Results
    Service-->>Client: Return Combined Results

Quick Start

Usage

  1. Clone the repository

or

  1. Use npx

Installation

For Claude Desktop, edit your claude_desktop_config.json file:

MacOS/Linux

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows

code $env:AppData\Claude\claude_desktop_config.json

Transport Options

MCP Advisor supports two transport methods:

1. Stdio Transport (Default)

Use this for command-line tools and direct integrations.

Add to your AI assistant's MCP configuration to enable service discovery capabilities:

{
"mcpServers": {
   "mcp-advisor": {
      "command": "npx",
      "args": [
         "-y",
         "/path/to/repo/build/index.js"
      ]
   }
}
}

2. SSE Transport (HTTP Server)

Use this for remote servers or web-based integrations. Start the server with:

# Start with SSE transport on port 3000
TRANSPORT_TYPE=sse SERVER_PORT=3000  ENABLE_FILE_LOGGING=true node build/index.js

Environment variables for SSE configuration:

  • TRANSPORT_TYPE: Set to sse to use SSE transport (default is stdio)
  • SERVER_PORT: HTTP server port (default: 3000)
  • SERVER_HOST: HTTP server host (default: localhost)
  • SSE_PATH: SSE endpoint path (default: /sse)
  • MESSAGE_PATH: Messages endpoint path (default: /messages)

Connect to the server using:

  • SSE endpoint: http://localhost:3000/sse
  • Messages endpoint: http://localhost:3000/messages?sessionId=<SESSION_ID>
  • Health check: http://localhost:3000/health

3. REST Transport

TRANSPORT_TYPE=rest SERVER_PORT=3000  ENABLE_FILE_LOGGING=true node build/index.js

Examples

Example Queries

Here are some example queries you can use with MCP Advisor:

"Find an MCP server for natural language processing"
"MCP server for financial data analysis"
"Recommendation engine MCP server for e-commerce"
"MCP server with image recognition capabilities"
"Weather data processing MCP server"
"Document summarization MCP server"

Example Response

[
  {
    "title": "NLP Toolkit",
    "description": "Comprehensive natural language processing toolkit with sentiment analysis, entity recognition, and text summarization capabilities.",
    "github_url": "https://github.com/example/nlp-toolkit",
    "similarity": 0.92
  },
  {
    "title": "Text Processor",
    "description": "Efficient text processing MCP server with multilingual support.",
    "github_url": "https://github.com/example/text-processor",
    "similarity": 0.85
  }
]

Troubleshooting

Common Issues

  1. Connection Refused

    • Ensure the server is running on the specified port
    • Check firewall settings
    • Verify the host address is correct
  2. No Results Returned

    • Try a more general query
    • Check network connectivity to the registry API
    • Verify API endpoints are correctly configured
  3. SSE Connection Drops

    • Increase client timeout settings
    • Check server logs for error messages
    • Ensure proper CORS configuration if connecting from a browser
  4. Performance Issues

    • Consider adding more specific search terms
    • Check server resources (CPU/memory)
    • Implement caching if making frequent similar queries

Logs

For detailed troubleshooting, check the logs in the logs directory. Enable debug logging with:

DEBUG=true node build/index.js

Environment Variables

MCP Advisor can be configured using the following environment variables:

Variable Description Default Required
TRANSPORT_TYPE Transport method (stdio, sse, rest) stdio No
SERVER_PORT HTTP server port for SSE/REST transport 3000 No
SERVER_HOST HTTP server host for SSE/REST transport localhost No
SSE_PATH SSE endpoint path /sse No
MESSAGE_PATH Messages endpoint path /messages No
ENDPOINT REST endpoint path /rest No
DEBUG Enable debug logging false No
ENABLE_FILE_LOGGING Enable logging to files false No
LOG_LEVEL Log level (debug, info, warn, error) info No

API Documentation

REST API Endpoints

GET /health

Health check endpoint.

Response:

{
  "status": "ok",
  "version": "1.0.0"
}

GET /sse

Server-Sent Events endpoint for establishing a connection.

Query Parameters:

  • None

Response:

  • Establishes an SSE connection

POST /messages

Endpoint for sending messages to an established SSE connection.

Query Parameters:

  • sessionId (string, required): The session ID of the SSE connection

Request Body:

{
  "jsonrpc": "2.0",
  "method": "callTool",
  "params": {
    "name": "recommend-mcp-servers",
    "arguments": {
      "query": "financial data analysis"
    }
  },
  "id": "1"
}

Response:

{
  "jsonrpc": "2.0",
  "result": {
    "content": [
      {
        "title": "Financial Analytics MCP",
        "description": "Comprehensive financial data analysis toolkit",
        "github_url": "https://github.com/example/financial-mcp",
        "similarity": 0.95
      }
    ]
  },
  "id": "1"
}

POST /rest

REST API endpoint for direct requests (when using REST transport).

Request Body:

{
  "jsonrpc": "2.0",
  "method": "callTool",
  "params": {
    "name": "recommend-mcp-servers",
    "arguments": {
      "query": "financial data analysis"
    }
  },
  "id": "1"
}

Response: Same as /messages endpoint.

Test

with inspector

 npx @modelcontextprotocol/inspector

License

MIT License - See LICENSE file for details.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选