Skip to main content
Glama

MAGG

by sitbon

🧲 MAGG - The MCP (Model Context Protocol) Aggregator

An MCP server that manages and aggregates other MCP servers, enabling LLMs to dynamically extend their own capabilities.

What is MAGG?

MAGG (MCP Aggregator) is a meta-MCP server that acts as a central hub for managing multiple MCP servers. It provides tools that allow LLMs to:

  • Search for new MCP servers and discover setup instructions
  • Add and configure MCP servers dynamically
  • Enable/disable servers on demand
  • Aggregate tools from multiple servers under unified prefixes
  • Persist configurations across sessions

Think of MAGG as a "package manager for LLM tools" - it lets AI assistants install and manage their own capabilities at runtime.

Key Features

  • Self-Service Tool Management: LLMs can search for and add new MCP servers without human intervention
  • Automatic Tool Proxying: Tools from added servers are automatically exposed with configurable prefixes
  • Smart Configuration: Uses MCP sampling to intelligently configure servers from just a URL
  • Persistent Configuration: Maintains server configurations in .magg/config.json
  • Multiple Transport Support: Works with stdio, HTTP, and other MCP transports

Installation

Prerequisites

  • Python 3.13 or higher
  • uv, poetry, or pip

Run Directly from GitHub

The easiest way to run MAGG is directly from GitHub using uvx:

# Run with stdio transport (for Claude Desktop, Cline, etc.) uvx --from git+https://github.com/sitbon/magg.git magg # Run with HTTP transport (for system-wide access) uvx --from git+https://github.com/sitbon/magg.git magg serve --http

Local Development

For development, clone the repository and install in editable mode:

# Clone the repository git clone https://github.com/sitbon/magg.git cd magg # Install in development mode with uv (recommended) uv pip install -e . # Or with pip pip install -e . # Run the CLI magg --help

Usage

Running MAGG

MAGG can run in two modes:

  1. Stdio Mode (default) - For integration with Claude Desktop, Cline, Cursor, etc.:
    magg serve
  2. HTTP Mode - For system-wide access or web integrations:
    magg serve --http --port 8000

Available Tools

Once MAGG is running, it exposes the following tools to LLMs:

  • magg_list_servers - List all configured MCP servers
  • magg_add_server - Add a new MCP server
  • magg_remove_server - Remove a server
  • magg_enable_server / magg_disable_server - Toggle server availability
  • magg_search_servers - Search for MCP servers online
  • magg_list_tools - List all available tools from all servers
  • magg_smart_configure - Intelligently configure a server from a URL
  • magg_analyze_servers - Analyze configured servers and suggest improvements

Configuration

MAGG stores its configuration in .magg/config.json in your current working directory. This allows for project-specific tool configurations.

Example configuration:

{ "servers": { "calculator": { "name": "calculator", "source": "https://github.com/executeautomation/calculator-mcp", "command": "npx @executeautomation/calculator-mcp", "prefix": "calc", "enabled": true } } }

Adding Servers

Servers can be added in several ways:

  1. Using the LLM (recommended):
    "Add the Playwright MCP server" "Search for and add a calculator tool"
  2. Manual configuration via magg_add_server:
    name: playwright url: https://github.com/microsoft/playwright-mcp command: npx @playwright/mcp@latest prefix: pw
  3. Direct config editing: Edit .magg/config.json directly

Documentation

For more documentation, see docs/.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A meta-MCP server that manages and aggregates other MCP servers, enabling LLMs to dynamically extend their own capabilities by searching for, adding, and configuring tool servers.

  1. What is MAGG?
    1. Key Features
      1. Installation
        1. Prerequisites
        2. Run Directly from GitHub
        3. Local Development
      2. Usage
        1. Running MAGG
        2. Available Tools
        3. Configuration
        4. Adding Servers
      3. Documentation

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          The Metaplex MCP Server facilitates access to Metaplex documentation and repository details, enabling users to search and interact with various Metaplex resources through the MCP protocol.
          Last updated -
          3
          1
          TypeScript
          The Unlicense
        • A
          security
          A
          license
          A
          quality
          A proxy server that unifies multiple MCP servers, enabling seamless tool, prompt, and resource management via the MetaMCP App.
          Last updated -
          1,489
          119
          TypeScript
          Apache 2.0
        • A
          security
          A
          license
          A
          quality
          An MCP server that provides LLMs access to other LLMs
          Last updated -
          4
          14
          12
          JavaScript
          MIT License
        • -
          security
          F
          license
          -
          quality
          An MCP server that fetches real-time documentation for popular libraries like Langchain, Llama-Index, MCP, and OpenAI, allowing LLMs to access updated library information beyond their knowledge cut-off dates.
          Last updated -
          Python

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/sitbon/magg'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server