MCP Tools extension for AutoGen >= v0.4
Project description
AutoGen Extension for MCP Tools
This package provides integration between Microsoft AutoGen and the Model Context Protocol (MCP), enabling AutoGen agents to seamlessly connect with various data sources and tools.
MCP is an open standard that enables secure, two-way connections between AI systems and data sources, replacing fragmented integrations with a single universal protocol. This allows AI assistants to maintain context as they move between different tools and datasets.
Installation
pip install autogen-ext-mcp
Features
- Seamless integration of MCP tools with AutoGen agents
- Connect to any MCP-compatible data source or tool
- Automatic conversion of MCP tool schemas to AutoGen-compatible formats
Quick Start
from autogen_ext_mcp.tools import get_tools_from_mcp_server
from mcp import StdioServerParameters
from pathlib import Path
# Get desktop path cross-platform
desktop_path = str(Path.home() / "Desktop")
# Connect to FileSystem MCP server
server_params = StdioServerParameters(
command="npx",
args=[
"-y",
"@modelcontextprotocol/server-filesystem",
desktop_path, # Allow access to Desktop directory
]
)
# Get tools
tools = await get_tools_from_mcp_server(server_params)
# Use tools with AutoGen agents
# The tools can be passed to any AutoGen agent that supports tool use
Samples
Check out the samples directory for example code and detailed instructions on getting started with the AutoGen MCP Extension. The samples demonstrate common use cases and best practices for integrating MCP tools with AutoGen agents.
Resources
- AutoGen Documentation
- Model Context Protocol Documentation
- MCP Quickstart Guide
- Pre-built MCP Servers
Requirements
- Python >=3.12
- AutoGen >=0.4.0
- mcp >=1.1.2
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autogen_ext_mcp-0.2.0.tar.gz
.
File metadata
- Download URL: autogen_ext_mcp-0.2.0.tar.gz
- Upload date:
- Size: 92.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6418787882a97f7539e304eb6b74b3de1afa5f9fc3a7da922a123c13b8dd05 |
|
MD5 | b7d25e5f464fa71f1bc0a0861e732460 |
|
BLAKE2b-256 | 5734eb8eaf27a5b611cfe08ca984790ecb89635eb0fd6d87d78be6263df5f1e9 |
Provenance
The following attestation bundles were made for autogen_ext_mcp-0.2.0.tar.gz
:
Publisher:
publish.yaml
on richard-gyiko/autogen-ext-mcp
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
autogen_ext_mcp-0.2.0.tar.gz
- Subject digest:
aa6418787882a97f7539e304eb6b74b3de1afa5f9fc3a7da922a123c13b8dd05
- Sigstore transparency entry: 158741090
- Sigstore integration time:
- Permalink:
richard-gyiko/autogen-ext-mcp@7fd31655724fe2625c2fcc009acaff0438c771f4
- Branch / Tag:
refs/tags/v0.2.0
- Owner: https://github.com/richard-gyiko
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yaml@7fd31655724fe2625c2fcc009acaff0438c771f4
- Trigger Event:
release
- Statement type:
File details
Details for the file autogen_ext_mcp-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: autogen_ext_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03dd125ba85eaadfc865d3baf36fb90a21c2a14ba93ef9ab8f87179364ed4206 |
|
MD5 | b0e9539a95304de2398293e12c78a4dd |
|
BLAKE2b-256 | 5c32db17d857e871642d981b056b657504c744f528048159b7be47c0e1871e7f |
Provenance
The following attestation bundles were made for autogen_ext_mcp-0.2.0-py3-none-any.whl
:
Publisher:
publish.yaml
on richard-gyiko/autogen-ext-mcp
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
autogen_ext_mcp-0.2.0-py3-none-any.whl
- Subject digest:
03dd125ba85eaadfc865d3baf36fb90a21c2a14ba93ef9ab8f87179364ed4206
- Sigstore transparency entry: 158741091
- Sigstore integration time:
- Permalink:
richard-gyiko/autogen-ext-mcp@7fd31655724fe2625c2fcc009acaff0438c771f4
- Branch / Tag:
refs/tags/v0.2.0
- Owner: https://github.com/richard-gyiko
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
publish.yaml@7fd31655724fe2625c2fcc009acaff0438c771f4
- Trigger Event:
release
- Statement type: