MCP + CrewAI Agentic Integration

MCP + CrewAI Agentic Integration

A FastMCP server providing real-time weather, news retrieval, and local note management tools for autonomous CrewAI agents. It enables context-aware multi-agent workflows with observability and high-speed inference integration.

Category
Visit Server

README

šŸ¤– 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.

Python CrewAI FastMCP AgentOps


🌟 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 FastMCP server exposing tools for real-time data retrieval.
  • Agentic Layer: CrewAI agents specialized in Market Analysis and Research.
  • Inference Layer: Ultra-fast LLMs (Llama 3.1) hosted on Groq.
  • Observability Layer: AgentOps for tracing, cost management, and debugging.

✨ 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


šŸš€ 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 sync

3. 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_key

4. 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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

šŸ›”ļø License

Distributed under the MIT License. See LICENSE for more information.


Developed with ā¤ļø for the AI Community.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured