mcpField
M
Multi-MCP AI Agent

Multi-MCP AI Agent

Local
github.com/aviban15AI & Agents0Updated 78w ago

About Multi-MCP AI Agent

Multi-MCP AI Agent is an agent system that combines multiple MCP servers for math, document processing, web access, and Google Workspace tasks. It includes Telegram bot and SSE interfaces for interaction and live updates.

Key features

  1. 01Coordinate multiple MCP servers
  2. 02Perform math and file operations
  3. 03Index and search documents semantically
  4. 04Use web search and Google Workspace tools
  5. 05Support Telegram and SSE communication

Use cases

  1. 01Find information through web search and content extraction
  2. 02Search indexed documents for relevant material
  3. 03Handle Gmail, Drive, or Sheets tasks
  4. 04Receive agent responses through a Telegram bot

MCP support

The agent uses multiple MCP servers for math and file operations, document processing, web integration, and Google Workspace. These servers provide tools such as search, content extraction, semantic search, and email or file management.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Multi-MCP AI Agent

An Agentic AI agent system that leverages multiple MCP (Model Control Protocol) servers to provide a wide range of capabilities, from basic mathematical operations to advanced external service integrations like Google Workspace and web scraping. The agent includes a Telegram bot interface and Server-Sent Events (SSE) for real-time communication.

🌟 Features

  • Multi-MCP Architecture: Utilizes multiple MCP servers for distributed processing and diverse capabilities
  • Cognitive Modules: Implements perception, decision-making, memory, and action modules
  • External Service Integration:
    • Google Workspace (Gmail, Google Drive, Google Sheets)
    • Web scraping and content extraction
    • DuckDuckGo search integration
  • Real-time Communication:
    • Telegram Bot interface
    • Server-Sent Events (SSE) for live updates
  • Core Components:
    • Agent loop management
    • Session handling
    • Context management
    • Strategic decision making

🏗️ Project Structure

├── agent.py              # Main agent entry point
├── core/                 # Core agent components
│   ├── context.py        # Context management
│   ├── loop.py           # Main agent loop
│   ├── session.py        # Session handling
│   └── strategy.py       # Strategic decision making
├── modules/              # Cognitive modules
│   ├── action.py         # Action execution
│   ├── decision.py       # Decision making
│   ├── memory.py         # Memory management
│   ├── model_manager.py  # Model management
│   ├── perception.py     # Input processing
│   └── tools.py          # Tool definitions
├── config/               # Configuration files
│   ├── models.json       # Model configurations
│   └── profiles.yaml     # MCP server profiles
└── mcp_server_*.py       # MCP server implementations

🚀 Getting Started

Prerequisites
  • Python 3.11+
  • UV package manager
  • Telegram Bot Token (for bot functionality)
  • Google Cloud credentials (for Google Workspace integration)
Installation
  1. Clone the repository:
git clone <repository-url>
cd <repository-name>
  1. Create and activate a virtual environment:
uv venv
venv\Scripts\activate  # On Mac: source venv/bin/activate
  1. Install dependencies using UV:
uv sync
  1. Set up environment variables:
    • Create .env with Gemini API key and Telegram Bot token.
    • Generate credentials.json using Google OAuth client.
Configuration
  1. Configure MCP servers in config/profiles.yaml
  2. Set up model configurations in config/models.json
  3. Configure Google Cloud credentials:
    • Place credentials.json in the root directory
    • Run the application once to generate token.json

🎮 Usage

Starting the Agent
uv run agent.py
Starting the Telegram Bot Server
uv run telegram_sse_server.py

🛠️ MCP Servers

MCP Server 1: Basic Operations
  • Mathematical operations
  • Image processing
  • File operations
MCP Server 2: Document Processing
  • Document indexing
  • Semantic search
  • Content extraction
  • Image captioning
MCP Server 3: Web Integration
  • DuckDuckGo search
  • Web content fetching
  • Rate-limited requests
MCP Server 4: Google Workspace
  • Gmail integration
  • Google Sheets operations
  • Google Drive management
  • F1 standings fetcher (URL scraper)

📡 Communication

Telegram Bot
  • Command handling
  • Message processing
  • Real-time responses
SSE Server
  • Real-time event streaming
  • Client connection management
  • Event broadcasting

🧠 Cognitive Architecture

The agent implements a cognitive architecture with the following modules:

  • Perception: Processes input and extracts relevant information
  • Memory: Manages state and historical data
  • Decision: Makes strategic decisions based on input and context
  • Action: Executes decided actions through appropriate tools

📝 License

MIT License

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.