AutoGen MCP Server

AutoGen MCP Server

An MCP server that provides integration with Microsoft's AutoGen framework, enabling multi-agent conversations through a standardized interface.

Category
Visit Server

README

AutoGen MCP Server

smithery badge

An MCP server that provides integration with Microsoft's AutoGen framework, enabling multi-agent conversations through a standardized interface. This server allows you to create and manage AI agents that can collaborate and solve problems through natural language interactions.

Features

  • Create and manage AutoGen agents with customizable configurations
  • Execute one-on-one conversations between agents
  • Orchestrate group chats with multiple agents
  • Configurable LLM settings and code execution environments
  • Support for both assistant and user proxy agents
  • Built-in error handling and response validation

Installation

Installing via Smithery

To install AutoGen Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @DynamicEndpoints/autogen_mcp --client claude

Manual Installation

  1. Clone the repository:
git clone https://github.com/yourusername/autogen-mcp.git
cd autogen-mcp
  1. Install dependencies:
pip install -e .

Configuration

Environment Variables

  1. Copy .env.example to .env:
cp .env.example .env
  1. Configure the environment variables:
# Path to the configuration file
AUTOGEN_MCP_CONFIG=config.json

# OpenAI API Key (optional, can also be set in config.json)
OPENAI_API_KEY=your-openai-api-key

Server Configuration

  1. Copy config.json.example to config.json:
cp config.json.example config.json
  1. Configure the server settings:
{
  "llm_config": {
    "config_list": [
      {
        "model": "gpt-4",
        "api_key": "your-openai-api-key"
      }
    ],
    "temperature": 0
  },
  "code_execution_config": {
    "work_dir": "workspace",
    "use_docker": false
  }
}

Available Operations

The server supports three main operations:

1. Creating Agents

{
  "name": "create_agent",
  "arguments": {
    "name": "tech_lead",
    "type": "assistant",
    "system_message": "You are a technical lead with expertise in software architecture and design patterns."
  }
}

2. One-on-One Chat

{
  "name": "execute_chat",
  "arguments": {
    "initiator": "agent1",
    "responder": "agent2",
    "message": "Let's discuss the system architecture."
  }
}

3. Group Chat

{
  "name": "execute_group_chat",
  "arguments": {
    "agents": ["agent1", "agent2", "agent3"],
    "message": "Let's review the proposed solution."
  }
}

Error Handling

Common error scenarios include:

  1. Agent Creation Errors
{
  "error": "Agent already exists"
}
  1. Execution Errors
{
  "error": "Agent not found"
}
  1. Configuration Errors
{
  "error": "AUTOGEN_MCP_CONFIG environment variable not set"
}

Architecture

The server follows a modular architecture:

src/
├── autogen_mcp/
│   ├── __init__.py
│   ├── agents.py      # Agent management and configuration
│   ├── config.py      # Configuration handling and validation
│   ├── server.py      # MCP server implementation
│   └── workflows.py   # Conversation workflow management

License

MIT License - See LICENSE file for details

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured