MM

metis-mantis/metis-router

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

56 stars 23 forks Качество 57 Тренд 13Apache-2.0

metis-mantis/metis-router - кандидат на сервер MCP, импортированный из https://github.com/metis-mantis/metis-router.

Обзор

metis-mantis/metis-router - кандидат на сервер MCP, импортированный из https://github.com/metis-mantis/metis-router.

Обзор (машинный перевод)

Metis - это продвинутая платформа с интеллектуальным маршрутизатором MCP (Model Context Protocol), который динамически управляет до 1000+ MCP-серверов. Маршрутизатор использует кэш-систему LRU для поддержания активности только наиболее релевантных серверов в любое время, предотвращая перегрузку контекста и предоставляя доступ к обширной экосистеме инструментов и услуг. Мы хотели создать это, чтобы вы могли добавить дополнительные функции, не сталкиваясь с перегрузкой из-за более чем 40 инструментов! Мы также предоставляем модульный веб-клиент MCP, который может изменить каждый! Наша цель состоит в том, чтобы помочь другим создавать крутые приложения с использованием MCP.

️ Архитектура

️ Демо

Быстрый старт

** Выберите способ настройки: **

  • ** Скрипты оболочки** (рекомендуется для разработки): Следуйте инструкциям ниже Docker (рекомендуется для производства): раздел «Прыжок в докер»

Шаг 1: Настройка MCP-серверов (самое важное!)

Добавьте серверы MCP, которые вы хотите server/mcp-registry.json. Вы можете добавить **1000+ серверов **:

Шаг 2: Настройка размера кэша маршрутизатора

Редактировать server/src/add-new-mcp.ts и изменять MAX_ACTIVE_SERVERS, чтобы установить, сколько серверов остаются активными одновременно:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Metis - Intelligent MCP Router & Web Based MCP Client

Metis is an advanced AI agent platform with an intelligent MCP (Model Context Protocol) router that dynamically manages up to 1,000+ MCP servers. The router uses an LRU cache system to maintain only the most relevant servers active at any time, preventing context overwhelm while providing access to a vast ecosystem of tools and services. We wanted to create this so you can add additional features while not having to deal with context overload from having over 40 tools enabled! We also provide a modular web based MCP client that anyone can modify! Our goal for this is to help others build cool applications using MCPs.

🏗️ Architecture

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Frontend      │    │   Backend       │    │  MCP Router     │
│   (Next.js)     │◄──►│   (FastAPI)     │◄──►│   (Node.js)     │
│   Port: 3000    │    │   Port: 8000    │    │   Port: 9999    │
└─────────────────┘    └─────────────────┘    └─────────────────┘
        │                       │                       │
        │                       │                       │
        ▼                       ▼                       ▼
   User Interface         AI Agent Logic        Intelligent Router
   - Chat Interface       - OpenAI Agents       - 1000+ MCP Servers
   - Real-time UI         - Session Management  - LRU Cache System
                         - Streaming           - Dynamic Loading
                                              - Auto Server Selection

🖥️ Demo

🚀 Quick Start

Choose Your Setup Method:

  • Shell Scripts (recommended for development): Follow steps below
  • Docker (recommended for production): Jump to Docker Setup section

Step 1: Configure Your MCP Servers (Most Important!)

Add the MCP servers you want to server/mcp-registry.json. You can add up to 1,000+ servers:

{
  "mcpServers": {
    "notion": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.notion.com/sse"]
    },
    "linear": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.linear.app/sse"]
    },
    "hyperbrowser": {
      "command": "npx",
      "args": [
        "-y",
        "hyperbrowser-mcp"
      ],
      "env": {
        "HYPERBROWSER_API_KEY": "API_KEY_HERE"
      }
    }
}

Step 2: Configure Router Cache Size

Edit server/src/add-new-mcp.ts and modify MAX_ACTIVE_SERVERS to set how many servers stay active simultaneously:

// Only this many servers will be active at once (LRU cache)
const MAX_ACTIVE_SERVERS = 3; // Adjust based on your needs

NOTE: All active MCP servers are in server/config.json, you can manually remove/add servers to the active queue of MCP servers here

Step 3: Set Up Environment Variables

Single shared .env file (project root):

# Copy the template and configure
Открыть полный README на GitHub

Установка

npx -y mcp-remote https://mcp.notion.com/sse
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "notion": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.notion.com/sse"] }, "linear": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.linear.app/sse"] }, "hyperbrowser": { "command": "npx", "args": [ "-y", "hyperbrowser-mcp" ], "env": { "HYPERBROWSER_API_KEY": "API_KEY_HERE" } } }