istarwyh/mcpadvisor
If you are the rightful owner of mcpadvisor and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
MCP Advisor is a discovery and recommendation service that helps AI assistants explore Model Context Protocol (MCP) servers using natural language queries.
MCP Advisor
|
Introduction
MCP Advisor is a discovery and recommendation service that helps AI assistants explore Model Context Protocol (MCP) servers using natural language queries. It makes it easier for users to find and leverage MCP tools suitable for specific tasks.
User Stories
-
Discover & Recommend MCP Servers
- As an AI agent developer, I want to quickly find the right MCP servers for a specific task using natural-language queries.
- Example prompt:
"Find MCP servers for insurance risk analysis"
-
Install & Configure MCP Servers
- As a regular user who discovers a useful MCP server, I want to install and start using it as quickly as possible.
- Example prompt:
"Install this MCP: https://github.com/Deepractice/PromptX"
Demo
https://github.com/user-attachments/assets/7a536315-e316-4978-8e5a-e8f417169eb1
Usage
Once configured, the Nacos provider will be automatically enabled and used when searching for MCP servers. You can query it using natural language, for example:
Find MCP servers for insurance risk analysis
Or more specifically:
Search for MCP servers with natural language processing capabilities
Documentation Navigation
- - Installation, configuration, and basic usage
- - Advanced features and search providers
- - Development setup and contribution guidelines
- - System architecture details
- - Common issues and solutions
- - Future development plans
Quick Start
Installation
The fastest way is to integrate MCP Advisor through MCP configuration:
{
"mcpServers": {
"mcpadvisor": {
"command": "npx",
"args": ["-y", "@xiaohui-wang/mcpadvisor"]
}
}
}
Add this configuration to your AI assistant's MCP settings file:
- MacOS/Linux:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%AppData%\Claude\claude_desktop_config.json
Installing via Smithery
To install Advisor for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @istarwyh/mcpadvisor --client claude
For more installation methods and detailed configuration, see the .
Developer Guide
Architecture Overview
MCP Advisor adopts a modular architecture with clean separation of concerns and functional programming principles. The codebase has been recently refactored (2025) to improve maintainability and scalability:
graph TD
Client["Client Application"] --> |"MCP Protocol"| Transport["Transport Layer"]
subgraph "MCP Advisor Server"
Transport --> |"Request"| SearchService["Search Service"]
SearchService --> |"Query"| Providers["Search Providers"]
subgraph "Search Providers"
Providers --> MeilisearchProvider["Meilisearch Provider"]
Providers --> GetMcpProvider["GetMCP Provider"]
Providers --> CompassProvider["Compass Provider"]
Providers --> NacosProvider["Nacos Provider"]
Providers --> OfflineProvider["Offline Provider"]
end
OfflineProvider --> |"Hybrid Search"| HybridSearch["Hybrid Search Engine"]
HybridSearch --> TextMatching["Text Matching"]
HybridSearch --> VectorSearch["Vector Search"]
SearchService --> |"Merge & Filter"| ResultProcessor["Result Processor"]
SearchService --> Logger["Logging System"]
end
Project Structure
The codebase follows clean architecture principles with organized directory structure:
src/
โโโ services/
โ โโโ core/ # Core business logic
โ โ โโโ installation/ # Installation guide services
โ โ โโโ search/ # Search providers
โ โ โโโ server/ # MCP server implementation
โ โโโ providers/ # External service providers
โ โ โโโ meilisearch/ # Meilisearch integration
โ โ โโโ nacos/ # Nacos service discovery
โ โ โโโ oceanbase/ # OceanBase vector database
โ โ โโโ offline/ # Offline search engine
โ โโโ common/ # Shared utilities
โ โ โโโ api/ # API clients
โ โ โโโ cache/ # Caching mechanisms
โ โ โโโ vector/ # Vector operations
โ โโโ interfaces/ # Type definitions
โโโ types/ # TypeScript type definitions
โโโ utils/ # Utility functions
โโโ tests/ # Test suites
โโโ unit/ # Unit tests
โโโ integration/ # Integration tests
โโโ e2e/ # End-to-end tests
Core Components
-
Search Service Layer
- Unified search interface and provider aggregation
- Support for multiple search providers executing in parallel
- Configurable search options (limit, minSimilarity)
-
Search Providers
- Meilisearch Provider: Vector search using Meilisearch
- GetMCP Provider: API search from the GetMCP registry
- Compass Provider: API search from the Compass registry
- Nacos Provider: Service discovery integration
- Offline Provider: Hybrid search combining text and vectors
-
Hybrid Search Strategy
- Intelligent combination of text matching and vector search
- Configurable weight balancing
- Smart adaptive filtering mechanisms
-
Transport Layer
- Stdio (CLI default)
- SSE (Web integration)
- REST API endpoints
For more detailed architecture documentation, see .
Developer Quick Start
Development Environment Setup
- Clone the repository
- Install dependencies:
pnpm install
- Build the project:
pnpm run build
- Configure environment variables (see )
Testing
MCP Advisor includes comprehensive testing suites to ensure code quality and functionality. For detailed testing information including unit tests, integration tests, end-to-end testing, and manual testing procedures, see the .
Testing
Run comprehensive tests:
# Run all tests
pnpm run check && pnpm run test && pnpm run test:e2e
# Automated E2E testing script
./scripts/run-e2e-test.sh
For detailed testing information, see .
Library Usage
import { SearchService } from '@xiaohui-wang/mcpadvisor';
// Initialize search service
const searchService = new SearchService();
// Search for MCP servers
const results = await searchService.search('vector database integration');
console.log(results);
Transport Options
MCP Advisor supports multiple transport methods:
- Stdio Transport (default) - Suitable for command-line tools
- SSE Transport - Suitable for web integration
- REST Transport - Provides REST API endpoints
For more development details, see .
Contribution Guidelines
We welcome contributions to MCP Advisor!
Usage Examples
Example Queries
Here are some example queries you can use with MCP Advisor:
"Find MCP servers for natural language processing"
"Document summarization MCP servers"
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 multi-language support.",
"github_url": "https://github.com/example/text-processor",
"similarity": 0.85
}
]
For more examples and advanced usage, see .
Troubleshooting
Common Issues
-
Connection Refused
- Ensure the server is running on the specified port
- Check firewall settings
-
No Results Returned
- Try a more general query
- Check network connection to registry APIs
-
Performance Issues
- Consider adding more specific search terms
- Check server resources (CPU/memory)
For more troubleshooting information, see .
Search Providers
MCP Advisor supports multiple search providers that can be used simultaneously:
- Compass Search Provider: Retrieves MCP server information using the Compass API
- GetMCP Search Provider: Uses the GetMCP API and vector search for semantic matching
- Meilisearch Search Provider: Uses Meilisearch for fast, fault-tolerant text search
For detailed information about search providers, see .
Roadmap
MCP Advisor is evolving from a simple recommendation system to an intelligent agent orchestration platform. Our vision is to create a system that not only recommends the right MCP servers but also learns from interactions and helps agents dynamically plan and execute complex tasks.
gantt
title MCP Advisor Evolution Roadmap
dateFormat YYYY-MM-DD
axisFormat %Y-%m
section Foundation
Enhanced Search & Recommendation โ :done, 2025-01-01, 90d
Hybrid Search Engine โ :done, 2025-01-01, 90d
Provider Priority System โ :done, 2025-04-01, 60d
section Intelligence Layer
Feedback Collection System :active, 2025-04-01, 90d
Agent Interaction Analytics :2025-07-01, 120d
Usage Pattern Recognition :2025-07-01, 90d
section Learning Systems
Reinforcement Learning Framework :2025-10-01, 180d
Contextual Bandit Implementation :2025-10-01, 120d
Multi-Agent Reward Modeling :2026-01-01, 90d
section Advanced Features
Task Decomposition Engine :2026-01-01, 120d
Dynamic Planning System :2026-04-01, 150d
Adaptive MCP Orchestration :2026-04-01, 120d
section Ecosystem
Developer SDK & API :2026-07-01, 90d
Custom MCP Training Tools :2026-07-01, 120d
Enterprise Integration Framework :2026-10-01, 150d
Major Development Phases
- Recommendation Capability Optimization (2025 Q2-Q3)
- Accept user feedback
- Refine recommendation effectiveness
- Introduce more indices
For a detailed roadmap, see .
To Implement the above features, we need to:
- Support Full-Text Index Search
- Utilize Professional Rerank Module like https://github.com/PrithivirajDamodaran/FlashRank or Qwen Rerank Model
- Support Cline marketplace: https://api.cline.bot/v1/mcp/marketplace
License
This project is licensed under the MIT License - see the file for details.