MCPAdapt is a Python library designed to bridge the gap between different multi-agent cooperative (MCP) servers and various agentic frameworks. It allows developers to integrate agent servers (e.g., those following the MCP specification) with popular AI agent frameworks like CrewAI and SmolAgents, abstracting away framework-specific communication details. The current version is 0.1.20, with frequent minor releases focusing on new adapter features and bug fixes.
pip install mcpadaptVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up an MCPAdapt server using the SmolAgentsAdapter. It wraps a simple Python function (`add`) into an agent service, making it accessible via the MCP specification. The server can be run standalone using `mcp_server.run()` or integrated into an existing FastAPI application.
Ensure your Python environment is version 3.12 or newer. Using `pyenv` or `conda` can help manage multiple Python versions.
Pin `mcpadapt` to a specific minor version in your `requirements.txt` (e.g., `mcpadapt==0.1.20`) and review release notes for any breaking changes before upgrading.
Ensure the version of your agentic framework (e.g., CrewAI, SmolAgents) is compatible with the `mcpadapt` adapter version you are using. Refer to `mcpadapt`'s documentation and the respective framework's documentation for compatibility guidance, as API changes in one can break the other.