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
- 01Coordinate multiple MCP servers
- 02Perform math and file operations
- 03Index and search documents semantically
- 04Use web search and Google Workspace tools
- 05Support Telegram and SSE communication
Use cases
- 01Find information through web search and content extraction
- 02Search indexed documents for relevant material
- 03Handle Gmail, Drive, or Sheets tasks
- 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.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMulti-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
- Clone the repository:
git clone <repository-url>
cd <repository-name>
- Create and activate a virtual environment:
uv venv
venv\Scripts\activate # On Mac: source venv/bin/activate
- Install dependencies using UV:
uv sync
- Set up environment variables:
- Create
.envwith Gemini API key and Telegram Bot token. - Generate
credentials.jsonusing Google OAuth client.
- Create
Configuration
- Configure MCP servers in
config/profiles.yaml - Set up model configurations in
config/models.json - Configure Google Cloud credentials:
- Place
credentials.jsonin the root directory - Run the application once to generate
token.json
- Place
🎮 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
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.