Get the FREE Ultimate OpenClaw Setup Guide →

autogen-ext

Turns Model Context Protocol server tools available in AutoGen >= v0.4

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio richard-gyiko-autogen-ext-mcp python -m autogen_ext_mcp

How to use

This MCP server package provides integration between AutoGen and the Model Context Protocol (MCP). It enables AutoGen agents to connect to MCP-compatible data sources and tools, allowing tools exposed via MCP to be discovered and used within AutoGen workflows. The repository notes that this extension has been archived and functionality has been merged into the official autogen-ext package, but the Python module autogen_ext_mcp can still be used to interface with MCP tools through AutoGen. To use it, install the package, then instantiate the MCP server tools from Python and query for available MCP tools to pass to AutoGen agents. The README example demonstrates obtaining an MCP tool set for a FileSystem server via the provided mcp_server_tools helper and StdioServerParams, which configures a command-based server process that AutoGen can interact with.

How to install

Prerequisites:

  • Python 3.8+ and pip
  • Internet access to fetch packages from PyPI

Installation steps:

  1. Create and activate a Python virtual environment (optional but recommended):

    python -m venv venv source venv/bin/activate # on Linux/macOS .\venv\Scripts\activate # on Windows

  2. Install the MCP extension package:

    pip install autogen-ext-mcp

  3. Verify installation by importing in Python:

    python -c "import autogen_ext_mcp; print(autogen_ext_mcp.version)"

Note: The repository indicates this package has been archived and its functionality merged into autogen-ext. If you rely on newer MCP functionality, consider using the official autogen-ext package and its MCP integrations.

Additional notes

Tips and potential issues:

  • This project is archived; prefer the official autogen-ext package for ongoing MCP integration support.
  • If using the FileSystem MCP server example, you typically combine the MCP tooling with a local or remote server process via a command like npx @modelcontextprotocol/server-filesystem <path>. The autogen_ext_mcp module itself provides the bridge to AutoGen, but the actual MCP servers you connect to may be external (e.g., filesystem, web, database).
  • Ensure your environment allows the AutoGen process to access the target data sources (e.g., filesystem paths). Use appropriate arguments to the MCP server commands to grant permissions as shown in the Quick Start example (desktop path access).
  • If migrating to the latest autogen-ext, review the official documentation for updated module names, server setup, and tool schemas.
  • Environment variables can be used to configure runtime behavior; if needed, populate the env mapping in mcp_config accordingly.

Related MCP Servers

Sponsor this space

Reach thousands of developers