CrewAI MCP Server Integration Tutorial (Standard IO + SSE)
In this video, @tonykipkemboi demonstrates how to integrate Model Context Protocol (MCP) servers as tools within your CrewAI agent workflows. Whether you’re working with standard input/output (IO) or server-sent events (SSE), you’ll learn how to connect external servers—like a local math server or a deployed @cloudflare docs endpoint—as powerful tools your agents can utilize dynamically. ⸻⸻⸻ 🧪 What You’ll Learn: • Setting up and registering a local MCP server using standard IO • Deploying an MCP server with SSE and exposing it as a tool • Utilizing MCPServerAdapter to wrap and register tools in CrewAI • Demonstrations of agents solving real tasks (e.g., math problems, Cloudflare doc search) ⸻⸻⸻ 📦 Technologies Used: • CrewAI • Model Context Protocol (MCP) • @OpenAI LLMs (or your preferred model provider) • Python 3.12 • Cloudflare Deployment ⸻⸻⸻ ⏱️ Timestamps: • 0:00 Introduction • 0:45 Overview of MCP Integration in CrewAI • 1:30 Supported Transport Types: Standard IO & SSE • 2:15 Setting Up a Local Math MCP Server • 3:00 Configuring MCPServerAdapter and Parameters • 4:00 Demonstration: Solving sqrt(2.25) with CrewAI Agent • 5:00 Demonstration: Calculating 2.25^2 with CrewAI Agent • 6:00 Transitioning to SSE: Deploying MCP Server on Cloudflare • 6:45 Configuring SSE Endpoint in CrewAI • 7:30 Demonstration: Querying Cloudflare Docs via MCP Tool • 8:15 Viewing Agent Output in Markdown Format • 9:00 Final Thoughts and Community Resources ⸻⸻⸻ 📁 Resources: 🔗 Official CrewAI Documentation: https://docs.crewai.com/mcp/crewai-mcp-integration 🌐 CrewAI Community Forum: https://community.crewai.com 📦 Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction 🧰 Demo Code: https://github.com/tonykipkemboi/crewai-mcp-demo 💬 Questions? Drop them in the comments or join our community forum! ⸻⸻⸻ 🔔 Subscribe for more tutorials and deep dives on building AI agents that perform real-world tasks: reasoning, planning, and taking action. ⸻⸻⸻ #CrewAI #AIAgents #ModelContextProtocol #MCP #LLM #PythonAI #Cloudflare #ToolIntegration #AutonomousAgents #CrewAITutorial
Download
0 formatsNo download links available.