CrewAI Adapter
Contribute to dshivendra/crewai_mcp_adapter development by creating an account on GitHub.
README
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:
Development
Prerequisites
- Python 3.11 or higher
crewai
packagepydantic
packagemcp
package
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.
推荐服务器
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Knowledge Graph Memory Server
为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。
https://github.com/Streen9/react-mcp
react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。

any-chat-completions-mcp
将 Claude 与任何 OpenAI SDK 兼容的聊天完成 API 集成 - OpenAI、Perplexity、Groq、xAI、PyroPrompts 等。
Exa MCP Server
一个模型上下文协议服务器,它使像 Claude 这样的人工智能助手能够以安全和受控的方式,使用 Exa AI 搜索 API 执行实时网络搜索。
AI 图像生成服务
可用于cursor 集成 mcp server
MCP Web Research Server
一个模型上下文协议服务器,使 Claude 能够通过集成 Google 搜索、提取网页内容和捕获屏幕截图来进行网络研究。
MySQL MCP Server
允许人工智能助手通过受控界面列出表格、读取数据和执行 SQL 查询,从而使数据库探索和分析更安全、更有条理。
browser-use MCP server
一个由人工智能驱动的浏览器自动化服务器,它实现了模型上下文协议,从而能够使用自然语言控制网页浏览器,以执行诸如导航、表单填写和视觉交互等任务。
mcp-codex-keeper
作为开发知识的守护者,为 AI 助手提供精心策划的最新文档和最佳实践访问权限。