MCP服务器语义搜索工具

InfiniteMCP是一个元MCP服务器,通过语义搜索和动态工具发现,提供对整个MCP服务器生态系统的访问。

  • by day50-dev
  • Python
  • 本地部署
  • 6 星标
  • 更新于
在 GitHub 查看 kristopolous/infinite-mcp

使用说明

InfiniteMCP

一个元MCP服务器,通过语义搜索和动态工具发现,Claude可以访问MCP服务器的整个生态系统。

什么是InfiniteMCP?

InfiniteMCP是一个MCP服务器,充当数千个其他MCP服务器的通用网关。InfiniteMCP允许您的代理通过自然语言查询按需发现、理解和使用任何MCP服务器,而不是手动配置要使用的每个MCP服务器或污染您的上下文窗口。

将其视为“MCP服务器中的MCP服务器”——一个解锁整个MCP生态系统的单一连接。

运作原理

Claude asks: "Search for MCP servers that can crawl websites"
    ↓
InfiniteMCP searches 1000+ indexed MCP servers
    ↓
Returns: [firecrawl-mcp, web-scraper-mcp, playwright-mcp, ...]
    ↓
Claude: "Use firecrawl to get content from example.com"
    ↓
InfiniteMCP dynamically loads firecrawl-mcp and executes the request
    ↓
Returns the crawled content to Claude

三大核心功能

InfiniteMCP向Claude展示了三个强大的工具:

  1. search_mcp -在所有已知的MCP服务器上进行语义搜索

    Input: "web search"
    Output: [brave-search-mcp, tavily-mcp, serper-mcp, ...]
    
  2. get_functions -了解MCP服务器可以做什么

    Input: mcp_id (e.g., "brave-search-mcp")
    Output: [brave_web_search, brave_local_search, ...]
    
  3. run_function -从任何MCP服务器执行功能

    Input: mcp_id, function_name, arguments, credentials
    Output: Function result
    

特性

  • 🔍 语义搜索 -使用最先进的嵌入式模型,使用自然语言查找MCP服务器
  • 🚀 动态加载 -MCP服务器按需加载,无需预先配置
  • 🔐 智能凭证管理 -安全地处理API密钥和凭据,用户提示缺少值
  • 🧩 工具发现 -自动发现任何MCP服务器上的所有可用功能
  • 📚 综合指数 -与生态系统中的1000多台MCP服务器进行预索引
  • ⚡ 高效 -缓存连接和元数据以实现快速重复访问

安装

先决条件

  • Python 3.11+
  • 支持CUDA的GPU(建议用于嵌入搜索)
  • Node.js 18+(用于运行发现的MCP服务器)

设置

本地安装将尝试cuda并回退到cpu

# Clone the repository
git clone https://github.com/yourusername/infinitemcp.git
cd infinitemcp

# Install dependencies
pip install -r requirements.txt

# Build the MCP server index (one-time setup)
./extracto

用法

使用克劳德桌面

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "infinitemcp": {
      "command": "python",
      "args": ["-m", "infinitemcp"],
      "env": {
        "INFINITEMCP_DB": "/path/to/infinitemcp/db"
      }
    }
  }
}

交互示例

发现服务器:

You: "I need to search the web for information about MCP servers"
Claude: [uses search_mcp("web search")]
Claude: "I found several options. Brave Search looks good. Let me use that..."

使用服务器:

Claude: [uses get_functions("brave-search-mcp")]
Claude: [uses run_function with brave_web_search]
Claude: "Here's what I found..."

处理凭据:

Claude: [attempts run_function("github-mcp", ...)]
InfiniteMCP: "Missing required credential: GITHUB_TOKEN"
Claude: "I need your GitHub token to access that API..."
You: "Here it is: ghp_..."
Claude: [retries with credentials]

建筑