
CrewAI MCP Adapter
A Python library extending CrewAI’s adapter ecosystem with Model Context Protocol (MCP) integration support and comprehensive tooling for custom agent and tool development.
Features
- 🔌 Native CrewAI integration and adapter patterns
- 🛠️ MCP protocol support for tool integration
- 🧩 Easy-to-use interface for extending and creating new adapters
- 📝 Type-safe implementation with Pydantic
- 🔍 JSON Schema validation for tool parameters
- 🚀 Async/await support
- 📊 Detailed execution metadata
Installation
You can install the package directly from PyPI:
pip install crewai-adapters
Or install from source:
pip install git+https://github.com/dshivendra/crewai_mcp_adapter.git
Quick Start
from crewai import Agent, Task
from crewai_adapters import CrewAIAdapterClient
from crewai_adapters.types import AdapterConfig
async def main():
async with CrewAIAdapterClient() as client:
# Connect to MCP server
await client.connect_to_mcp_server(
"math",
command="python",
args=["math_server.py"]
)
# Create agent with tools
agent = Agent(
name="Calculator",
goal="Perform calculations",
tools=client.get_tools()
)
# Execute task
task = Task(
description="Calculate (3 + 5) × 12",
agent=agent
)
result = await task.execute()
print(f"Result: {result}")
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Documentation
For detailed documentation, see:
- Getting Started Guide
- API Reference
- Examples
Development
Prerequisites
- Python 3.11 or higher
crewaipackagepydanticpackagemcppackage
Install Development Dependencies
pip install -e ".[test,docs]"
Running Tests
pytest tests/ -v
Publishing
To publish a new version to PyPI:
- Update version in pyproject.toml
- Build the package:
python -m build - Upload to PyPI:
python -m twine upload dist/*
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
CrewAI Adapter
Project Details
- dshivendra/crewai_mcp_adapter
- MIT License
- Last Updated: 5/13/2025
Recomended MCP Servers
Fork of Neo4j MCP server with environment variable support
Free and open source manga reader for Android
A powerful Word document processing service based on FastMCP, enabling AI assistants to create, edit, and manage docx...
Travel booking - India MCP
A Model Context Protocol (MCP) server that provides secure, read-only access to Snowflake databases. Allows LLMs to safely...
An MCP server to extend the context of agents. Useful when coding big features or vibe coding and...
MCP Server to interact with Google Cloud Tasks
MCP server to provide Figma layout information to AI coding agents like Cursor





