Google Docs MCP Server
Provides comprehensive interaction with Google Docs, featuring specialized support for document tabs, nested structures, and markdown conversion. It enables users to list, read, create, and perform complex batch updates on documents using Google service accounts.
README
Google Docs MCP Server
A Model Context Protocol server for Google Docs with full tab support — something most existing servers get wrong or skip entirely.
Uses Google service accounts with domain-wide delegation, so it works in Workspace orgs without OAuth consent screens.
<!-- mcp-name: io.github.gigabrain-observer/google-docs-mcp-server -->
What it does
| Tool | Description |
|---|---|
list_tabs |
List all tabs (including nested) in a document |
read_document |
Read one tab or all tabs as markdown with proper heading levels |
get_document_info |
Lightweight metadata: title, ID, link, tab list |
create_document |
Create a new doc with optional initial text |
append_text |
Append text to the end of a specific tab |
insert_text |
Insert text at a character index in a tab |
replace_text |
Find and replace within a tab (or whole doc) |
batch_update |
Full batchUpdate access — formatting, tables, images, styles |
list_documents |
Search Drive for docs by name |
All tab-targeting tools accept tab_id or tab_title (case-insensitive). The batch_update tool auto-injects tabId into requests so you don't have to.
Why this exists
Google Docs has supported tabs since late 2024, but most MCP servers either:
- Ignore tabs entirely (only read the first tab)
- Don't use
includeTabsContent=True, so tab content is invisible - Don't handle nested tabs
This server handles all of that correctly and converts content to markdown with proper heading structure.
Install
pip install google-docs-mcp-server
Or run directly with uv:
uvx google-docs-mcp-server
Prerequisites
- Python 3.11+
- A Google Cloud service account with domain-wide delegation
Setup
1. Create a GCP service account
- Go to Google Cloud Console and create (or select) a project
- Enable the Google Docs API and Google Drive API
- Create a service account under IAM & Admin > Service Accounts
- Create a JSON key and download it
2. Enable domain-wide delegation
- In GCP, on the service account details page, enable Domain-wide Delegation and note the Client ID
- In Google Workspace Admin > Security > API Controls > Domain-wide Delegation
- Add the Client ID with these scopes:
https://www.googleapis.com/auth/documents https://www.googleapis.com/auth/drive.readonly
3. Configure your MCP client
Add to your MCP config (e.g. ~/.claude/mcp.json or .mcp.json):
{
"mcpServers": {
"google-docs": {
"command": "uvx",
"args": ["google-docs-mcp-server"],
"env": {
"SERVICE_ACCOUNT_PATH": "/path/to/your-service-account-key.json",
"SUBJECT_EMAIL": "you@yourdomain.com"
}
}
}
}
SUBJECT_EMAIL is the Workspace user the service account impersonates.
Environment variables
| Variable | Required | Description |
|---|---|---|
SERVICE_ACCOUNT_PATH |
Yes | Path to the service account JSON key file |
SUBJECT_EMAIL |
Yes | Email of the Workspace user to impersonate |
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.