Google Docs, Drive & Sheets MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}" google-docs-mcp -- node "<FULL_PATH_TO_GOOGLE_DOCS_MCP_PERSONAL>/dist/index.js"

Replace <FULL_PATH_TO_GOOGLE_DOCS_MCP_PERSONAL>/dist/index.js with the actual folder you prepared in step 1.

Required:GOOGLE_APPLICATION_CREDENTIALS
README.md

Deep integration with Google Workspace for AI assistants

Servidor MCP de Google Docs para Antigravity

Este repositorio contiene un servidor Model Context Protocol (MCP) especializado para una integración profunda con Google Docs, Drive y Sheets. Está optimizado para ser utilizado por asistentes de IA como Antigravity.

Características Principales

📄 Gestión de Google Docs

  • Lectura y Escritura Avanzada: Lee y escribe documentos en formatos Texto, JSON o Markdown.
  • Sistema de Comentarios: Gestión completa de hilos de comentarios (añadir, responder, resolver).
  • Motor de Plantillas: Crea documentos a partir de plantillas con reemplazo dinámico de {{variables}}.
  • Formateo de Estilos: Control total sobre estilos de texto (negrita, color, fuentes) y párrafos (encabezados, alineación).
  • Inserción de Contenido: Inserta tablas, saltos de página e imágenes (locales o desde URL).

📁 Gestión de Google Drive

  • Búsqueda Inteligente: Localiza archivos por nombre o contenido dentro de los documentos.
  • Operaciones de Archivo: Mover, renombrar, copiar, eliminar y gestionar carpetas.
  • Listado de Documentos: Filtra y lista tus documentos recientes o carpetas específicas.

📊 Gestión de Google Sheets

  • Acceso a Datos: Lee y escribe en celdas y rangos usando notación A1.
  • Formateo de Celdas: Aplica estilos visuales, colores de fondo y bordes.
  • Gestión de Hojas: Crea, duplica, renombra o elimina pestañas dentro de un libro.
  • Validaciones: Configura listas desplegables y congela filas/columnas.

Estructura del Proyecto

  • src/: Código fuente en TypeScript del servidor MCP.
  • SKILL_GENERIC.md: Archivo de "Skill" para Antigravity que documenta cómo utilizar este servidor de forma proactiva, incluyendo flujos ABM y prompts de diseño.

Configuración y Setup

1. Requisitos Previos

  • Node.js instalado.
  • Un proyecto en Google Cloud con las APIs de Google Docs, Google Drive y Google Sheets habilitadas.
  • Credenciales OAuth 2.0 (tipo Desktop App) descargadas como credentials.json.

2. Instalación

Carga las dependencias y construye el proyecto:

npm install
npm run build

3. Autenticación

La primera vez que utilices el servidor (o mediante el comando auth si está disponible), se abrirá una ventana en tu navegador para autorizar el acceso a tu cuenta de Google.

node dist/index.js

El token de acceso se guardará en ~/.config/google-docs-mcp/token.json.

4. Configuración en Antigravity

Añade la configuración en tu archivo mcp_config.json:

{
  "mcpServers": {
    "google_docs": {
      "command": "node",
      "args": ["/ruta/absoluta/a/este/repo/dist/index.js"],
      "disabled": false
    }
  }
}

Uso con Antigravity

Una vez configurado, puedes añadir el contenido de SKILL_GENERIC.md a tu sistema de Skills globales para que el asistente pueda:

  1. Generar reportes técnicos automáticos.
  2. Sincronizar cambios entre código y documentación.
  3. Crear presentaciones de proyectos con portadas generadas por IA.

Nota: Este servidor es una versión personalizada y optimizada basada en el trabajo original de a-bonus/google-docs-mcp.

Tools (3)

manage_docsRead, write, and format Google Docs including comments and templates.
manage_driveSearch, move, rename, copy, and delete files or folders in Google Drive.
manage_sheetsRead and write cell data, apply formatting, and manage sheets within a workbook.

Environment Variables

GOOGLE_APPLICATION_CREDENTIALSrequiredPath to the OAuth 2.0 credentials.json file

Configuration

claude_desktop_config.json
{"mcpServers": {"google_docs": {"command": "node", "args": ["/ruta/absoluta/a/este/repo/dist/index.js"]}}}

Try it

Create a new Google Doc from my project template and insert the latest meeting notes.
Search my Google Drive for all documents related to the Q4 budget and summarize them.
Update the 'Sales' sheet in my spreadsheet by adding the new data from the provided CSV.
Add a comment to the document 'Project Plan' asking the team to review the timeline section.
List all files in my 'Invoices' folder and move them to the 'Archive' folder.

Frequently Asked Questions

What are the key features of Google Docs, Drive & Sheets MCP Server?

Advanced reading and writing of Google Docs in Text, JSON, or Markdown formats.. Full management of comment threads including adding, replying, and resolving.. Template engine for document creation with dynamic variable replacement.. Intelligent file searching and management within Google Drive.. Cell-level read/write access and visual formatting for Google Sheets..

What can I use Google Docs, Drive & Sheets MCP Server for?

Automating the generation of technical reports directly into Google Docs.. Synchronizing code documentation with live Google Docs files.. Creating professional project presentations with AI-generated content.. Managing spreadsheet data updates and formatting without manual entry.. Organizing and archiving project files in Google Drive via natural language commands..

How do I install Google Docs, Drive & Sheets MCP Server?

Install Google Docs, Drive & Sheets MCP Server by running: npm install && npm run build

What MCP clients work with Google Docs, Drive & Sheets MCP Server?

Google Docs, Drive & Sheets MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Google Docs, Drive & Sheets MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare