Google Workspace 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
git clone https://github.com/HgDeveloper13/kilocode-mcp-google-workspace.git
cd kilocode-mcp-google-workspace
pip install -r requirements.txt
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 google-workspace-8fbc -- python "<FULL_PATH_TO_KILOCODE_MCP_GOOGLE_WORKSPACE>/dist/index.js"

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

README.md

MCP server for interacting with Google Sheets, Google Docs, and Google Drive.

-+693# Google Sheets MCP Server

MCP (Model Context Protocol) сервер для взаимодействия с Google Sheets, Google Docs и Google Drive.

Возможности

Google Sheets

  • Чтение данных из таблиц
  • Обновление ячеек
  • Пакетное обновление нескольких диапазонов
  • Добавление строк и столбцов
  • Создание, переименование, копирование и удаление листов
  • Получение формул из ячелей
  • Получение списка таблиц из Google Drive

Google Docs

  • Чтение содержимого документов
  • Извлечение текста из документов
  • Вставка текста в документы
  • Удаление текста из документов
  • Создание документов (опционально)

Google Drive

  • Поиск файлов
  • Скачивание Google Docs как TXT
  • Обновление содержимого файлов
  • Предоставление доступа к таблицам

Установка

# Клонирование репозитория
git clone https://github.com/yourusername/mcp-google-sheets.git
cd mcp-google-sheets

# Создание виртуального окружения
python -m venv venv
source venv/bin/activate  # Linux/Mac
# или
venv\Scripts\activate  # Windows

# Установка зависимостей
pip install -r requirements.txt

Настройка аутентификации

Способ 1: Service Account (рекомендуется)

  1. Создайте сервисный аккаунт в Google Cloud Console
  2. Скачайте JSON-файл с ключом
  3. Предоставьте сервисному аккаунту доступ к таблицам и диску

Укажите путь к файлу:

export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"

Способ 2: OAuth 2.0

  1. Создайте OAuth credentials в Google Cloud Console
  2. Скачайте credentials.json
  3. При первом запуске будет предложено авторизоваться через браузер
  4. Токен будет сохранён в token.json

Переменные окружения

Переменная Описание По умолчанию
GOOGLE_APPLICATION_CREDENTIALS Путь к файлу сервисного аккаунта service-account-key.json
CREDENTIALS_CONFIG Base64-encoded JSON сервисного аккаунта -
DRIVE_FOLDER_ID ID папки в Google Drive для поиска таблиц -
ENABLE_CREATE_TOOLS Включить инструменты создания (true/false) false

Запуск

python server.py

Использование с MCP-клиентами

Claude Desktop

Добавьте в claude_desktop_config.json:

{
  "mcpServers": {
    "google-sheets": {
      "command": "python",
      "args": ["/path/to/mcp-google-sheets/server.py"]
    }
  }
}

Инструменты

Инструмент Описание
get_sheet_data Получить данные из листа
get_sheet_formulas Получить формулы из ячеек
update_cells Обновить значения ячеек
batch_update_cells Пакетное обновление нескольких диапазонов
add_rows Добавить строки
add_columns Добавить столбцы
list_sheets Получить список листов
copy_sheet Копировать лист
rename_sheet Переименовать лист
delete_sheet Удалить лист
list_spreadsheets Получить список таблиц
share_spreadsheet Предоставить доступ к таблице
get_doc_content Получить содержимое документа
get_doc_text Получить текст документа
search_drive_files Поиск файлов в Drive

Лицензия

MIT

Tools (15)

get_sheet_dataGet data from a sheet
get_sheet_formulasGet formulas from cells
update_cellsUpdate cell values
batch_update_cellsBatch update multiple ranges
add_rowsAdd rows to a sheet
add_columnsAdd columns to a sheet
list_sheetsGet a list of sheets
copy_sheetCopy a sheet
rename_sheetRename a sheet
delete_sheetDelete a sheet
list_spreadsheetsGet a list of spreadsheets
share_spreadsheetShare a spreadsheet
get_doc_contentGet document content
get_doc_textGet document text
search_drive_filesSearch for files in Drive

Environment Variables

GOOGLE_APPLICATION_CREDENTIALSPath to the service account JSON file
CREDENTIALS_CONFIGBase64-encoded JSON of the service account
DRIVE_FOLDER_IDID of the Google Drive folder for searching tables
ENABLE_CREATE_TOOLSEnable creation tools (true/false)

Configuration

claude_desktop_config.json
{"mcpServers": {"google-sheets": {"command": "python", "args": ["/path/to/mcp-google-sheets/server.py"]}}}

Try it

List all the spreadsheets in my Google Drive.
Read the data from the first sheet in the spreadsheet with ID '12345'.
Search for files in my Drive containing the word 'Project'.
Update the cells in range A1:B2 of my spreadsheet with new values.
Extract the text content from the Google Doc with ID 'abcde'.

Frequently Asked Questions

What are the key features of Google Workspace MCP Server?

Read and update cell data in Google Sheets. Perform batch updates on spreadsheet ranges. Extract text content from Google Docs. Search and manage files within Google Drive. Manage sheet structure including adding rows, columns, and renaming.

What can I use Google Workspace MCP Server for?

Automating data entry into Google Sheets from AI-generated reports. Summarizing content from multiple Google Docs using Claude. Organizing and searching through large Google Drive file structures. Programmatically sharing spreadsheets with team members via email.

How do I install Google Workspace MCP Server?

Install Google Workspace MCP Server by running: git clone https://github.com/HgDeveloper13/kilocode-mcp-google-workspace.git && cd kilocode-mcp-google-workspace && pip install -r requirements.txt

What MCP clients work with Google Workspace MCP Server?

Google Workspace 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 Workspace 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