MCP + CrewAI Agentic Integration
Orchestrates autonomous multi-agent workflows by integrating MCP tools for market research and data analysis.
Provides a news intelligence tool that retrieves global news data using the Google Search API via Serper.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP + CrewAI Agentic Integration Research latest AI trends and save a summary to my local notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ค MCP + CrewAI Agentic Integration ๐
A powerful demonstration of Model Context Protocol (MCP) integrated with CrewAI orchestrations, featuring full observability through AgentOps and high-speed inference via Groq.
๐ Overview
This project bridges the gap between context-aware tools and autonomous agents. It provides a custom MCP server for real-time external data (Weather, News, Notes) while leveraging CrewAI to orchestrate multi-agent workflows.
๐๏ธ Architecture
MCP Layer: A
FastMCPserver exposing tools for real-time data retrieval.
Agentic Layer:
CrewAIagents specialized in Market Analysis and Research.
Inference Layer: Ultra-fast LLMs (Llama 3.1) hosted on
Groq.Observability Layer:
AgentOpsfor tracing, cost management, and debugging.
Related MCP server: MCP Tool Server
โจ Key Features
๐ ๏ธ Custom MCP Server Tools
โ๏ธ Weather Engine: Real-time meteorology data via WeatherAPI.
๐ฐ News Intelligence: Global news retrieval via Serper (Google Search API).
๐ Contextual Notes: Locally persistent note management for long-term memory.
๏ฟฝ Auto-Summary: Intelligent summarization of collected context.
๐ฅ Intelligence Crew
๐ Market Researcher: Scours data to identify emerging trends.
๐ Data Analyst: Synthesizes research into actionable market insights.
๐ Sequential Workflow: Fully orchestrated execution path for reliable results.
๐ ๏ธ Tech Stack
Framework: CrewAI
Server: FastMCP
LLM Engine: Groq (Llama 3.1 8B/70B)
Tracing: AgentOps
Package Manager: uv
๐ Getting Started
1. Prerequisites
Ensure you have the following installed:
uv (Recommended) or Python 3.13+
A valid Groq API Key
A valid AgentOps API Key
A Serper API Key (for News)
2. Installation
Clone the repository and sync dependencies:
git clone https://github.com/vad-007/MCP_Integration_crewai.git
cd MCP_Integration_crewai
uv sync3. Configuration
Create a .env file in the root directory:
AGENTOPS_API_KEY=your_agentops_key
GROQ_API_KEY=your_groq_key
SERPER_API_KEY=your_serper_key
WEATHER_API_KEY=your_weather_key4. Running the Project
๐ Start the MCP Server
mcp dev main.py๐ข Run the CrewAI Integration
python crewai_agentops_integration.py๐ Run Diagnostics
python test_agentops.py๐ Observability with AgentOps
This project is fully instrumented. Every run generates a unique replay URL allowed you to:
Watch Agent Self-Correction: See exactly how agents reason through tasks.
Trace LLM Calls: Monitor every prompt and completion.
Analyze Latency: Visualize the execution timeline of your crew.
Check your dashboard at: app.agentops.ai
๐ Project Structure
โโโ main.py # FastMCP Server implementation
โโโ crewai_agentops_integration.py # Main CrewAI orchestration
โโโ test_agentops.py # Connectivity & Diagnostic tool
โโโ .env # Environment variables (private)
โโโ pyproject.toml # Project configuration
โโโ uv.lock # Dependency lockfile
โโโ docs/ # Troubleshooting & Optimization guides๐ค Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Fork the Project
Create your Feature Branch (
git checkout -b feature/AmazingFeature)Commit your Changes (
git commit -m 'Add some AmazingFeature')Push to the Branch (
git push origin feature/AmazingFeature)Open a Pull Request
๐ก๏ธ License
Distributed under the MIT License. See LICENSE for more information.
Developed with โค๏ธ for the AI Community.
Available Tools
4 toolsadd_noteB
Append a new note to the note file.
Args: message (str): The note content to be added.
Returns: str: Confirmation message indicating the note was saved.
Inputs: message (required). Returns: result
fetch_weatherB
Fetch current weather for a city
Inputs: city (required). Returns: result
read_notesB
Read and return all notes from the note file.
Returns: str: All notes as a single string separated by line breaks. If no notes exist, a default message is returned.
Inputs: no named parameters. Returns: result
search_newsB
Fetch search results from Google News via Serper
Inputs: query (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: add_note and read_notes handle note management, fetch_weather retrieves weather data, and search_news fetches news results. There is no overlap in functionality, making tool selection straightforward for an agent.
The tool names follow a consistent verb_noun pattern (add_note, fetch_weather, read_notes, search_news), which is predictable and readable. The minor deviation is that 'fetch_weather' and 'search_news' use different verbs ('fetch' vs. 'search'), but the overall pattern remains clear.
With only 4 tools, the set feels thin for a server named 'MCP + CrewAI Agentic Integration', which suggests broader agentic capabilities. While the tools cover basic utilities (notes, weather, news), the scope seems limited compared to the implied integration purpose, bordering on under-scoped.
Inferring the domain as agentic integration utilities, there are significant gaps: no tools for agent coordination, task management, or data processing beyond simple fetches. The note tools lack update/delete operations, and overall coverage is incomplete for enabling complex agent workflows.
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server โ exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA FastMCP-based server providing tools for weather queries, random number generation, and real-time stock market data retrieval. It enables AI models to interact with external data and perform specific tasks through the Model Context Protocol.-
- FlicenseNot gradedqualityDmaintenanceA production-ready Python MCP server providing tools for fetching live weather data, querying local SQLite databases, reading files, summarizing webpages, and performing safe mathematical calculations. It enables MCP-compatible LLM clients to execute these tasks autonomously as part of agentic workflows.-
- FlicenseNot gradedqualityDmaintenanceMulti-agent AI tools for email automation (Outlook), weather (OpenWeather API), sticky notes, and arithmetic, all served via FastMCP.-
- FlicenseNot gradedqualityDmaintenanceA FastMCP server that exposes a locally-hosted llama.cpp LLM as MCP tools, plus utilities for weather, news, web fetching, file I/O, and more. Enables MCP-compatible clients to use a local GGUF model for text generation without external APIs.1-