Google Calendar MCP Server in Java + Quarkus

Google Calendar MCP Server in Java + Quarkus

google-calendar-mcp-adalbertdb•byadalbertdb

An MCP server built on Java and Quarkus that lets compatible AI clients discover and invoke Google Calendar tools, with the server handling authentication, validation and Google API calls.

License: Not specified•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Exposes Google Calendar as MCP tools over SSE using the quarkus-mcp-server-sse extension, with each tool described for LLM use.
  • •Handles the Google OAuth 2.0 Authorization Code flow with offline access and token persistence so reauthentication is not needed on each start.
  • •Provides tools to select calendars by name with fuzzy matching, list and create events, and delete events by query, date range, ID or an entire calendar.
  • •Validates ISO 8601 dates and returns uniform, clear error messages to the client for invalid input, network failures or 404s.

BEST FOR

  • •Natural-language meeting creation, such as asking an assistant to create a team meeting on a work calendar and having it call createEvent.
  • •Listing and filtering calendar events by text and date range through an AI client.
  • •Bulk cleanup operations, including deleting matching events, all events in a date range, or clearing an entire calendar, which the README flags as irreversible and destructive.

ABOUT GOOGLE-CALENDAR-MCP-ADALBERTDB

Google Calendar MCP Server in Java + Quarkus is cataloged as an MCP server attributed to adalbertdb. An MCP server built on Java and Quarkus that lets compatible AI clients discover and invoke Google Calendar tools, with the server handling authentication, validation and Google API calls. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Google Calendar MCP Server in Java + Quarkus are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are calendars selected when the name is not exact?

Selection tolerates typos by matching exact name first, then substring, then Levenshtein distance.

How are Google credentials and tokens handled?

Credentials are loaded from credentials.json, which is excluded from version control, and access tokens are stored locally in the tokens directory.

Are deletion tools reversible?

No; the deletion tools are irreversible, so the README recommends trying them on a test calendar first.

Upstream README

View this exact version on GitHub

README.md · 7957649785af · Fetched 2026-11-13 13:21:47 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

📅 Google Calendar MCP Server

Servidor MCP (Model Context Protocol) en Java + Quarkus que permite a un asistente de IA consultar y gestionar Google Calendar en lenguaje natural.

Java Quarkus MCP Google Calendar API OAuth 2.0 Maven


✨ Qué hace

Este proyecto expone Google Calendar como un conjunto de herramientas MCP que cualquier cliente compatible (Claude Desktop, MCP Inspector, agentes propios…) puede descubrir e invocar. El modelo de lenguaje decide qué herramienta usar y con qué argumentos, y el servidor se encarga de la autenticación, la validación y las llamadas a la API de Google.

💬 "Créame una reunión de equipo mañana de 10 a 11 en el calendario de trabajo" → el asistente llama a createEvent → el evento aparece en Google Calendar.

🧠 Lo que demuestra este proyecto

ÁreaDetalle
Integración con IA (MCP)Servidor MCP sobre SSE con la extensión quarkus-mcp-server-sse. Cada herramienta lleva descripciones pensadas para que un LLM la use correctamente.
Backend Java modernoQuarkus 3, CDI (@Inject, @Produces, @Singleton), empaquetado como uber-jar.
Seguridad / OAuth 2.0Flujo Authorization Code con Google, acceso offline y persistencia de tokens para no reautenticar en cada arranque. Credenciales excluidas del control de versiones.
Integración con APIs externasCliente oficial de Google Calendar API v3: listado, creación y borrado (incluidos eventos recurrentes).
Algoritmia aplicadaSelección de calendario por nombre con fuzzy matching (coincidencia exacta → subcadena → distancia de Levenshtein), para tolerar errores tipográficos del usuario o del modelo.
RobustezValidación de fechas ISO 8601 y gestión de errores uniforme que devuelve mensajes claros al cliente (entrada inválida, fallo de red, 404…).

🏗️ Arquitectura

flowchart LR
    U([👤 Usuario]) -->|lenguaje natural| C[Cliente MCP<br/>Claude Desktop / Inspector]
    C <-->|MCP sobre SSE<br/>:8080/mcp/sse| S

    subgraph S [Quarkus MCP Server]
        direction TB
        T[Herramientas MCP<br/>tools/*] --> SEL[SelectCalendarTool<br/>fuzzy matching]
        T --> CAL[(Calendar client<br/>GoogleCalendarConfig)]
        SEL --> CAL
        CAL --> AUTH[GoogleAuthService<br/>OAuth 2.0]
    end

    AUTH <-->|consentimiento<br/>:8888| G1[Google OAuth]
    CAL <-->|REST| G2[Google Calendar API v3]
  • GoogleAuthService gestiona el flujo OAuth 2.0: carga credentials.json, abre el navegador para el consentimiento y guarda los tokens en tokens/.
  • GoogleCalendarConfig es un producer CDI que crea un único cliente Calendar autenticado e inyectable en todas las herramientas.
  • tools/ contiene las herramientas MCP; todas resuelven primero el calendario por nombre a través de SelectCalendarTool.

🛠️ Herramientas MCP disponibles

HerramientaDescripción
selectCalendarBusca un calendario por nombre (con tolerancia a errores) y devuelve su ID y la lista de calendarios disponibles.
listEventsLista eventos de un calendario, con filtro opcional por texto y rango de fechas.
createEventCrea un evento (título, ubicación, descripción, inicio/fin ISO 8601, zona horaria) y devuelve su ID.
deleteEventsByQueryBorra los eventos que coinciden con un texto de búsqueda (opcionalmente acotado por fechas).
deleteEventsByDateRangeBorra todos los eventos entre dos fechas.
deleteRecurringEventBorra un evento por ID, o una única instancia de un evento recurrente.
clearAllEventsVacía un calendario. ⚠️ Destructivo.
helloHerramienta de prueba para comprobar la conexión cliente-servidor.

🚀 Puesta en marcha

Requisitos

  • Java 17+
  • Maven (o el wrapper incluido ./mvnw)
  • Una cuenta de Google y un proyecto en Google Cloud
  • Un cliente MCP (p. ej. MCP Inspector o Claude Desktop)

1. Credenciales de Google

  1. En Google Cloud Console, crea un proyecto nuevo.
  2. APIs y servicios → Biblioteca → habilita Google Calendar API.
  3. APIs y servicios → Credenciales → Crear credenciales → ID de cliente de OAuth (tipo Aplicación de escritorio). Configura la pantalla de consentimiento si te lo pide.
  4. Descarga el JSON y guárdalo como src/main/resources/credentials.json.

2. Compilar y ejecutar

./mvnw clean package
java -jar target/calendar-mcp-1.0.0-SNAPSHOT-runner.jar

O en modo desarrollo, con recarga en caliente:

./mvnw quarkus:dev

En el primer arranque se abrirá el navegador para autorizar el acceso a tu calendario (redirección a localhost:8888). Los tokens se guardan en tokens/ y no se vuelven a pedir.

3. Conectar un cliente MCP

El servidor escucha en http://localhost:8080/mcp/sse.

MCP Inspector

npx @modelcontextprotocol/inspector

Selecciona transporte SSE e introduce la URL anterior.

Claude Desktop (claude_desktop_config.json, usando el puente mcp-remote):

{
  "mcpServers": {
    "google-calendar": {
      "command": "npx",
      "args": ["mcp-remote", "http://localhost:8080/mcp/sse"]
    }
  }
}

📁 Estructura del proyecto

src/main/
├── java/org/acme/
│   ├── GoogleAuthService.java       # Flujo OAuth 2.0 y persistencia de tokens
│   ├── GoogleCalendarConfig.java    # Producer CDI del cliente Calendar
│   └── tools/
│       ├── SelectCalendarTool.java  # Selección de calendario (Levenshtein)
│       ├── ListEventsTool.java      # Listado de eventos
│       ├── CreateEvent.java         # Creación de eventos
│       ├── DeleteEvent.java         # Borrado por texto, fechas, ID o completo
│       ├── Hello.java               # Prueba de conectividad
│       └── extra/                   # DTOs de respuesta
└── resources/
    ├── application.properties       # Puerto, logs, empaquetado
    └── credentials.json             # (no versionado) credenciales OAuth

🔭 Próximos pasos

  • Tests unitarios y de integración con la API de Google mockeada.
  • Paginación (nextPageToken) en listados y borrados masivos.
  • Confirmación explícita antes de operaciones destructivas.
  • Herramienta para actualizar eventos existentes.
  • Flujo OAuth compatible con contenedores para desplegar con Docker.

🔒 Notas de seguridad

  • credentials.json está en .gitignore: nunca lo subas al repositorio.
  • Los tokens de acceso se guardan en local en tokens/.
  • Las herramientas de borrado son irreversibles; úsalas primero sobre un calendario de pruebas.

👥 Autoría

Proyecto desarrollado en un equipo de cinco durante mis prácticas en Odec (mayo–junio 2025), como parte del Reto 3: implementación del protocolo MCP.

Contribuidores en este repositorio:

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Google Calendar MCP Server in Java + Quarkus from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/google-calendar-mcp-adalbertdb)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops