Multi-MCP Agent System with Google Calendar & Google Tasks
Integrates with Google Calendar API to manage events: create, update, delete, list events, and set reminders.
Integrates with Google Tasks API to manage tasks: create, update, delete, list tasks, and mark tasks complete.
Click on "Install 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., "@Multi-MCP Agent System with Google Calendar & Google TasksSchedule a meeting tomorrow at 2 PM and create a prep task."
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.
🌐 Multi-MCP Agent System with Google Calendar & Google Tasks
A production-style implementation of the Model Context Protocol (MCP), featuring two independent Python-based MCP servers integrated with the real Google Calendar API and Google Tasks API.
The system leverages a local LLM (Ollama/Groq) inside an agentic orchestration loop and displays the entire tool execution timeline on a premium, dark-neon glassmorphic web dashboard.
🏗️ System Architecture & Data Flow
Below is the horizontal architecture mapping out the data flow from the User Interface, through the MCP Host, down to the LLM, the MCP servers, and the Google Cloud APIs:
graph LR
%% Styling
classDef main fill:#0f111a,stroke:#a259ff,stroke-width:2px,color:#fff;
classDef orange fill:#221b1b,stroke:#ff6f43,stroke-width:1px,color:#fff;
classDef blue fill:#18202b,stroke:#00e5ff,stroke-width:1px,color:#fff;
classDef green fill:#0d1c16,stroke:#00e676,stroke-width:1px,color:#fff;
Input([User Prompt Input]) -->|1. Submit text| Host
subgraph Host ["MCP Host (Orchestrator - Port 3000)"]
direction TB
ServerStatus[Status Checker]
LoopController[Agent Execution Loop]
JSONLogger[(run_logs.json)]
end
class Host main;
subgraph LLM ["LLM (Ollama / Groq)"]
direction TB
Reasoning[1. Understand request]
ToolSelect[2. Select Tool & parameters]
end
class LLM main;
Host <-->|2. Reasoning & Tool Selection| LLM
subgraph CalServer ["Calendar MCP Server (Port 3001)"]
direction TB
c1["<b>create_event</b><br/>Args: title, start_time, end_time, auto_create_task<br/>Returns: Event JSON & HTML Card"]
c2["<b>update_event</b><br/>Args: id, title, start_time, end_time, auto_update_task<br/>Returns: Updated Event JSON & HTML Card"]
c3["<b>delete_event</b><br/>Args: id, auto_delete_task<br/>Returns: Confirmation JSON & HTML Card"]
c4["<b>get_events</b><br/>Args: date, query<br/>Returns: Events List JSON & HTML"]
c5["<b>set_reminder</b><br/>Args: event_id, minutes_before<br/>Returns: Event JSON & HTML Card"]
end
class CalServer orange;
subgraph TaskServer ["Task MCP Server (Port 3002)"]
direction TB
t1["<b>create_task</b><br/>Args: title, due_date, description, related_event_id<br/>Returns: Task JSON & HTML Card"]
t2["<b>update_task</b><br/>Args: id, title, due_date, description, status<br/>Returns: Updated Task JSON & HTML Card"]
t3["<b>delete_task</b><br/>Args: id<br/>Returns: Deletion JSON & HTML Card"]
t4["<b>list_tasks</b><br/>Args: status, related_event_id<br/>Returns: Tasks List JSON & HTML"]
t5["<b>mark_task_complete</b><br/>Args: id<br/>Returns: Completed Task JSON & HTML Card"]
end
class TaskServer blue;
Host -->|3a. Call Calendar Tool| CalServer
Host -->|3b. Call Task Tool| TaskServer
%% Server to Server SSE connection (Calendar server acting as Client to Task server)
CalServer -.->|4. Server-to-Server Client Link - Calls create_task, update_task, delete_task| TaskServer
subgraph Google ["Google Cloud APIs"]
direction TB
CalAPI[Google Calendar API]
TasksAPI[Google Tasks API]
end
class Google green;
c1 & c2 & c3 & c4 & c5 --->|Sync| CalAPI
t1 & t2 & t3 & t4 & t5 --->|Sync| TasksAPI
CalServer & TaskServer -->|5. Return JSON + HTML Card| Host
Host -->|6. Render Timeline & Cards| DashboardOutput([Dashboard Output])Related MCP server: gcal-mcp
⚡ Key Features
Headless Google Authentication: An standalone
auth_setup.pyscript executes the OAuth 2.0 flow once, storingconfig/token.jsonfor all servers.Mock Mode Fallback: If Google API credentials are not yet configured, the system transparently falls back to a mock in-memory database (
shared/mock_db.json), making the system immediately runnable out of the box.Server-to-Server Link (S2S): Over an internal SSE transport client, the Calendar MCP Server makes direct, programmatic client calls to the Task MCP Server to create preparation tasks for meetings.
Local Ollama Tool Calling: Integrates with local
llama3.2or Groq endpoints to dynamically parse prompt tasks and invoke target tools.HTML/CSS Timeline UI: Beautiful frontend serving status displays, tool runs, collapsible JSON payloads, and formatted HTML widgets.
🔑 Google Cloud Setup
To sync with your Google Account, configure OAuth credentials:
Go to the Google Cloud Console.
Create a new project and enable the Google Calendar API and Google Tasks API.
Configure the OAuth Consent Screen (Choose External, and add your Google email address under Test Users).
Go to Credentials $\rightarrow$ Create Credentials $\rightarrow$ OAuth Client ID.
Select Desktop Application as the application type, download the credentials JSON file.
Rename this file to
credentials.jsonand save it to theconfig/directory:config/credentials.json
🚀 Installation & Running
1. Install Requirements
pip install -r requirements.txt2. Run OAuth Authentication
python auth_setup.pyThis will open your default browser. Authorize the permissions requested, which will save the authorization token to config/token.json.
3. Start the Servers
python start.pyThe launcher script will coordinate Task MCP, Calendar MCP, and the Orchestrator FastAPI process, printing unified, color-coded console logs.
4. Open the Web Dashboard
Navigate your browser to:
http://localhost:3000Submit prompts! Tasks will appear inside a task list called MCP Tasks in your Google Tasks, and meetings will be set on your primary Google Calendar.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RimeetMavani/multiple_mcp_demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server