MCP Advisor

MIT License
46
  • Apple
  • Linux

Integrations

  • Provides access to MCP servers listed in the Model Context Protocol GitHub repository, allowing AI assistants to discover available services

  • Uses Mermaid for rendering architecture and data flow diagrams to visualize the MCP Advisor system architecture

  • Incorporates Shields.io badges in the README to display MCP status and links to MCP servers

MCP 顾问

MCP 顾问和安装

体验 MCP 顾问

这是什么?

MCP Advisor 是一项发现和推荐服务,可帮助您探索模型上下文协议 (MCP) 服务器。它充当智能向导,帮助 AI 助手基于自然语言查询查找并理解可用的 MCP 服务,从而更轻松地发现并使用合适的工具来完成特定任务。

特征

  • 智能搜索:使用自然语言查询查找 MCP 服务
  • 丰富的元数据:获取有关每项服务的详细信息
  • 实时更新:始终保持最新的 MCP 服务
  • 易于集成:可轻松与任何兼容 MCP 的 AI 助手集成
  • 向量搜索:基于 OceanBase 实现高性能语义搜索
  • 模块化架构:清晰地分离关注点以实现可维护性和可扩展性

建筑学

数据流

快速入门

用法

  1. 克隆存储库

或者

  1. 使用npx

安装

对于 Claude Desktop,编辑您的claude_desktop_config.json文件:

MacOS/Linux
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
视窗
code $env:AppData\Claude\claude_desktop_config.json

交通选择

MCP Advisor 支持两种传输方式:

1. Stdio 传输(默认)

将其用于命令行工具和直接集成。

添加到您的 AI 助手的 MCP 配置以启用服务发现功能:

{ "mcpServers": { "mcp-advisor": { "command": "npx", "args": [ "-y", "/path/to/repo/build/index.js" ] } } }
2. SSE 传输(HTTP 服务器)

适用于远程服务器或基于 Web 的集成。使用以下命令启动服务器:

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

SSE 配置的环境变量:

  • TRANSPORT_TYPE :设置为sse以使用 SSE 传输(默认为 stdio)
  • SERVER_PORT :HTTP 服务器端口(默认值:3000)
  • SERVER_HOST :HTTP 服务器主机(默认值:localhost)
  • SSE_PATH :SSE 端点路径(默认值:/sse)
  • MESSAGE_PATH :消息端点路径(默认值:/messages)

使用以下方式连接到服务器:

  • SSE 端点: http://localhost:3000/sse
  • 消息端点: http://localhost:3000/messages?sessionId=<SESSION_ID>
  • 健康检查: http://localhost:3000/health
3. REST 传输
TRANSPORT_TYPE=rest SERVER_PORT=3000 ENABLE_FILE_LOGGING=true node build/index.js

示例

示例查询

以下是一些可以与 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"

示例响应

[ { "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 } ]

故障排除

常见问题

  1. 连接被拒绝
    • 确保服务器在指定端口上运行
    • 检查防火墙设置
    • 验证主机地址是否正确
  2. 未返回结果
    • 尝试更通用的查询
    • 检查注册表 API 的网络连接
    • 验证 API 端点是否正确配置
  3. SSE 连接断开
    • 增加客户端超时设置
    • 检查服务器日志中的错误消息
    • 如果从浏览器连接,请确保 CORS 配置正确
  4. 性能问题
    • 考虑添加更具体的搜索词
    • 检查服务器资源(CPU/内存)
    • 如果频繁进行类似查询,则实施缓存

日志

如需详细排查问题,请检查logs目录中的日志。使用以下命令启用调试日志记录:

DEBUG=true node build/index.js

环境变量

可以使用以下环境变量配置 MCP Advisor:

多变的描述默认必需的
TRANSPORT_TYPE传输方法( stdiossereststdio
SERVER_PORTSSE/REST 传输的 HTTP 服务器端口3000
SERVER_HOST用于 SSE/REST 传输的 HTTP 服务器主机localhost
SSE_PATHSSE 端点路径/sse
MESSAGE_PATH消息端点路径/messages
ENDPOINTREST 端点路径/rest
DEBUG启用调试日志记录false
ENABLE_FILE_LOGGING启用文件日志记录false
LOG_LEVEL日志级别(调试、信息、警告、错误)info

API 文档

REST API 端点

获取/health

健康检查端点。

回复:

{ "status": "ok", "version": "1.0.0" }
获取/sse

用于建立连接的服务器发送事件端点。

查询参数:

  • 没有任何

回复:

  • 建立 SSE 连接
POST /messages

向已建立的 SSE 连接发送消息的端点。

查询参数:

  • sessionId (字符串,必需):SSE 连接的会话 ID

请求正文:

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

回复:

{ "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 端点(使用 REST 传输时)。

请求正文:

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

**响应:**/messages端点相同。

测试

检查员

npx @modelcontextprotocol/inspector

执照

MIT 许可证 - 有关详细信息,请参阅LICENSE文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

一种发现和推荐服务,可帮助 AI 助手根据自然语言查询找到模型上下文协议服务器。

  1. MCP 顾问和安装
    1. 体验 MCP 顾问
  2. 这是什么?
    1. 特征
      1. 建筑学
        1. 数据流
      2. 快速入门
        1. 用法
        2. 安装
        3. 交通选择
      3. 示例
        1. 示例查询
        2. 示例响应
      4. 故障排除
        1. 常见问题
        2. 日志
      5. 环境变量
        1. API 文档
          1. REST API 端点
        2. 测试
          1. 执照

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              An enhanced Model Context Protocol server that enables AI assistants to interact with ClickUp workspaces, supporting task relationships, comments, checklists, and workspace management through natural language.
              Last updated -
              40
              203
              TypeScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.
              Last updated -
              9
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables AI agents to query Erick Wendel's talks, blog posts, and videos across different platforms using natural language.
              Last updated -
              55
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables AI assistants to interact with Coolify instances through natural language, allowing management of servers, applications, databases, and deployments.
              Last updated -
              85
              2
              TypeScript

            View all related MCP servers

            ID: lzlc6tbjx6