Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dvlpjrs/guMCP/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Google Docs server enables AI agents to create, read, and modify Google Docs documents. It provides tools for document creation, content appending, and full document updates.Prerequisites
- Python 3.11+
- A Google Cloud Project with Google Drive and Google Docs APIs enabled
- OAuth 2.0 credentials with scopes:
https://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/documents
Authentication
Setup OAuth Credentials
- Create a new Google Cloud project
- Enable the Google Drive API and Google Docs API
- Configure an OAuth consent screen
- Add OAuth scopes (see above)
- Create an OAuth Client ID for “Desktop App”
- Save credentials as
local_auth/oauth_configs/gdocs/oauth.json
Authenticate
Available Tools
search_docs
search_docs
Description: Search for Google Docs in your DriveParameters:Returns: List of matching documents with IDs and metadata
query(string, required): Search query
create_doc
create_doc
Description: Create a new Google Doc with initial contentParameters:Returns: Document ID and shareable link
title(string, required): Document titlecontent(string, required): Initial document content
append_to_doc
append_to_doc
Description: Append content to the end of an existing documentParameters:Returns: Confirmation with document link
doc_id(string, required): Document IDcontent(string, required): Content to append
update_doc
update_doc
Description: Replace all content in a document with new contentParameters:Returns: Confirmation with document link
doc_id(string, required): Document IDcontent(string, required): New document content
Resources
The Google Docs server provides access to document resources:List Resources
Lists Google Docs documents from your Drive (up to 20 at a time). URI Format:gdocs:///{document_id}
Read Resource
Reads the full text content of a document, extracting:- Paragraphs
- Tables
- Table of contents
- All text elements
Usage Examples
Creating and Editing Documents
Searching and Reading Documents
Updating Documents
Document ID vs URL
You can extract a document ID from its URL: URL:https://docs.google.com/document/d/abc123xyz789/edit
Document ID: abc123xyz789
Running the Server
Local Development
Best Practices
- Document structure: Use markdown-style formatting in content
- Append vs Update: Use
append_to_docto add sections,update_docto rewrite - Search first: Use
search_docsto find existing documents before creating new ones - Permissions: Documents are created with your default sharing settings
API Reference
| Tool | Purpose | Common Use Cases |
|---|---|---|
search_docs | Find documents | Locate existing docs |
create_doc | Create document | Initialize new docs |
append_to_doc | Add content | Log entries, add sections |
update_doc | Replace content | Full rewrites |
Limitations
- Plain text only (no rich formatting preservation)
- No image embedding support
- Tables and complex structures are extracted as text