
a-bonus/google-docs-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Идеальный сервер Google Docs, Sheets, Drive, Gmail и Google Calendar. Этот MCP (в основном для использования в Claude Desktop) получает полный доступ к вашему пакету Google и позволяет Claude делать своё дело.
Обзор
Подключите Claude Desktop, Cursor или любой MCP-клиент к вашему Google Docs, Google Sheets, Google Drive, Gmail и Google Calendar. 1. Зайдите в Google Cloud Console 2. Создайте или выберите проект 3. Включите , , , и 4. Настройте (внешнее, добавьте письмо как тестового пользователя и добавьте области gmail.modify и calendar.events вместе с scopes Docs/Sheets/Drive) 5. Создайте (тип приложения для рабочего стола) 6. Скопируйте и с экрана подтверждения Нужны подробные детали? Смотрите пошаговые инструкции внизу этой страницы. Это открывает ваш браузер для авторизации Google. После одобрения токен обновления сохраняется в ~/.config/google-docs-mcp/token.json. Сервер запускается автоматически, когда ваш MCP-клиент нуждается в этом. Развернуйте один раз для вашей команды — локальные установки не требуются. Сервер использует MCP OAuth 2.1, поэтому ваш MCP-клиент автоматически обрабатывает аутентификацию.
Обзор (машинный перевод)
Подключите Claude Desktop, Cursor или любой MCP-клиент к вашему Google Docs, Google Sheets, Google Drive, Gmail и Google Calendar.
Быстрый старт
1. Создайте Google Cloud OAuth клиент
- Зайдите в Google Cloud Console
- Создайте или выберите проект
- Включите API Google Docs, API Google Sheets, API Google Drive, API Gmail и API Google Calendar
- Настройте экран OAuth согласие (внешний, добавьте свой email как тестового пользователя и добавьте прицелы
gmail.modifyиcalendar.eventsвместе с Docs/Sheets/Drive scopes) - Создать OAuth client ID (тип десктопного приложения)
- Скопируйте Client ID и Client Secret с экрана подтверждения
Нужны подробные детали? Смотрите пошаговые инструкции внизу этой страницы.
2. Авторизация
Это открывает ваш браузер для авторизации Google. После одобрения токен обновления сохраняется в ~/.config/google-docs-mcp/token.json.
3. Добавить к вашему клиенту MCP
Claude Desktop / Курсор / Виндсерфинг:
Сервер запускается автоматически, когда ваш MCP-клиент нуждается в этом.
Удалённое развертывание (облачный запуск)
Разверните один раз для своей команды — локальные установки не требуются. Сервер использует MCP OAuth 2.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Google Docs, Sheets, Drive, Gmail & Calendar MCP Server
Connect Claude Desktop, Cursor, or any MCP client to your Google Docs, Google Sheets, Google Drive, Gmail, and Google Calendar.
Quick Start
1. Create a Google Cloud OAuth Client
- Go to the Google Cloud Console
- Create or select a project
- Enable the Google Docs API, Google Sheets API, Google Drive API, Gmail API, and Google Calendar API
- Configure the OAuth consent screen (External, add your email as a test user, and add the
gmail.modifyandcalendar.eventsscopes alongside the Docs/Sheets/Drive scopes) - Create an OAuth client ID (Desktop app type)
- Copy the Client ID and Client Secret from the confirmation screen
Need more detail? See step-by-step instructions at the bottom of this page.
2. Authorize
GOOGLE_CLIENT_ID="your-client-id" \
GOOGLE_CLIENT_SECRET="your-client-secret" \
npx -y @a-bonus/google-docs-mcp auth
This opens your browser for Google authorization. After you approve, the refresh token is saved to ~/.config/google-docs-mcp/token.json.
3. Add to Your MCP Client
Claude Desktop / Cursor / Windsurf:
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}
The server starts automatically when your MCP client needs it.
Remote Deployment (Cloud Run)
Deploy once for your team – no local installs required. The server uses MCP OAuth 2.1 so your MCP client handles authentication automatically.
gcloud run deploy google-docs-mcp \
--source . \
--region europe-west3 \
--port 8080 \
--allow-unauthenticated \
--set-env-vars "^|^MCP_TRANSPORT=httpStream|BASE_URL=https://your-service.run.app|GOOGLE_CLIENT_ID=...|GOOGLE_CLIENT_SECRET=...|TOKEN_STORE=firestore|JWT_SIGNING_KEY=your-secret-key"
Then each user just adds the URL to their MCP client – no npx, no tokens, no local setup:
{
"mcpServers": {
"google-docs": {
"type": "streamableHttp",
"url": "https://your-service.run.app/mcp"
}
}
}
Your MCP client will prompt for Google sign-in on first connection. See Remote Deployment for details.
What Can It Do?
Tools across Google Docs, Sheets, and Drive:
Google Docs
| Tool | Description |
|---|
Установка
npx -y @a-bonus/google-docs-mcpКонфигурация
{
"mcpServers": {
"google-docs": {
"command": "npx",
"args": ["-y", "@a-bonus/google-docs-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}