MCP ExplorerExplorer

Mcp Builder Agent

@mathieuperez13on 18 days ago
1 MIT
FreeCommunity
AI Systems
An intelligent agent system for building MCP servers from user requests.

Overview

What is Mcp Builder Agent

MCP Builder Agent is an intelligent agent system designed to build Model Context Protocol (MCP) servers by analyzing user requests, identifying suitable tools, and deploying them as accessible endpoints.

Use cases

Use cases for MCP Builder Agent include automating email and calendar tool integration, building customized service endpoints based on user needs, and facilitating rapid deployment of toolsets for specific tasks.

How to use

To use MCP Builder Agent, install the required dependencies using ‘pip install -r requirements.txt’, configure the environment by editing the .env file with your API keys, and run the demo with ‘python run_demo.py’ followed by your request.

Key features

Key features include the Orchestrator Agent for analyzing user requests, the Worker Agent for searching matching tools, and the MCP Builder Agent for aggregating these tools into a unified MCP server.

Where to use

MCP Builder Agent can be used in various domains such as software development, automation, and any scenario requiring the integration of multiple tools into a cohesive service.

Content

MCP Builder Agent

An intelligent agent system that builds Model Context Protocol (MCP) servers by analyzing user requests, finding appropriate tools, and deploying them as accessible endpoints.

Features

  • Orchestrator Agent: Analyzes user requests and extracts capabilities
  • Worker Agent: Searches for tools that match required capabilities
  • MCP Builder Agent: Aggregates tools into a unified MCP server

Setup

  1. Install dependencies:

    pip install -r requirements.txt
    
  2. Configure environment:

    cp .env.example .env
    # Edit .env with your API keys and configuration
    
  3. Run the demo:

    python run_demo.py "I need tools for sending emails and scheduling meetings"
    

Architecture

  • agents/orchestrator.py - Main coordination agent
  • agents/worker.py - Tool discovery and evaluation agent
  • agents/mcp_builder.py - MCP server generation agent
  • tools/linkup_search.py - Tool search functionality
  • agents/mcp.py - MCP server utilities

Usage

The system takes a natural language request and returns an MCP server URL with the requested capabilities:

import asyncio
from agents.orchestrator import Orchestrator
from agents import Runner

async def main():
    result = await Runner.run_async(Orchestrator, "I need email and calendar tools")
    print(result.final_output)  # {"mcp_url": "...", "summary": "..."}

asyncio.run(main())

Tools

No tools

Comments