Provides comprehensive tools for reading, writing, formatting, and structuring Google Documents, including support for multi-tab documents, text styling, paragraph formatting, tables, images, page breaks, and comment management (listing, adding, replying, resolving, and deleting comments).
Enables complete file management capabilities including document discovery and search, folder management (create, list, get info), file operations (move, copy, rename, delete), document creation from scratch or templates, and detailed metadata retrieval.
GoogleDocsMCP - AgenticLedger Platform
Google Docs & Drive MCP Server
Production-ready MCP server providing comprehensive Google Docs and Drive integration for the AgenticLedger AI Agent Platform.
๐ Features
30+ Production-Ready Tools - Document editing, formatting, comments, Drive file operations
OAuth 2.0 Authentication - Secure user-based authorization with automatic token refresh
Multi-Tab Document Support - Work with new Google Docs multi-tab feature
Rich Text Formatting - Bold, italic, colors, fonts, paragraph styles, named styles
Comment Management - Full CRUD operations on document comments
Google Drive Integration - List, search, create, move, copy, delete documents
Type-Safe - Full TypeScript with Zod schema validation
100% Documented - Comprehensive guides for developers and AI agents
๐ฆ Quick Start
Installation
Authentication Setup
Create Google Cloud Project (see GOOGLE_CLOUD_SETUP.md)
Enable Google Docs API + Google Drive API
Configure OAuth Consent Screen
Create OAuth 2.0 credentials and download
credentials.jsonPlace
Run first-time authorization:
Run Tests
๐ ๏ธ Available Tools (30+)
readGoogleDoc- Read document (text/json/markdown formats)appendToGoogleDoc- Append text to end of documentinsertText- Insert text at specific indexdeleteRange- Delete content rangelistDocumentTabs- List tabs in multi-tab documents
applyTextStyle- Character-level formatting (bold, colors, fonts)applyParagraphStyle- Paragraph formatting (alignment, spacing, styles)formatMatchingText- Legacy formatting tool
insertTable- Create tablesinsertPageBreak- Insert page breaksinsertImageFromUrl- Insert image from URLinsertLocalImage- Upload and insert local image
listComments- List all document commentsgetComment- Get specific comment detailsaddComment- Create comment anchored to textreplyToComment- Reply to existing commentresolveComment- Mark comment as resolveddeleteComment- Remove comment
listGoogleDocs- List all documentssearchGoogleDocs- Search documents by name/contentgetRecentGoogleDocs- Get recently modified documentsgetDocumentInfo- Get file metadatacreateDocument- Create new documentcreateFromTemplate- Create from templatecreateFolder- Create Drive folderlistFolderContents- List folder filesgetFolderInfo- Get folder metadatamoveFile- Move to different foldercopyFile- Create copyrenameFile- Rename documentdeleteFile- Delete (move to trash)
๐ Documentation
For Developers
README_AGENTICLEDGER.md - Complete integration guide
PLATFORM_INTEGRATION_REPORT.md - Detailed tool documentation with API tests
GOOGLE_CLOUD_SETUP.md - Step-by-step OAuth 2.0 setup
CLAUDE.md - Advanced implementation details
For AI Agents
ABILITIES_LIMITATIONS.md - Smart workarounds, best practices, index management
Example Files
credentials.example.json- OAuth credentials formattoken.example.json- Token format exampletest-integration.ts- Integration test suite
๐ก Example Usage
Read Document
Append Text
Apply Formatting
Create Document
Work with Multi-Tab Documents
๐ Security
Never commit credentials (
credentials.json,token.json)OAuth tokens expire after 1 hour (auto-refresh handled)
Revoke access at https://myaccount.google.com/permissions
User-based authentication - only accesses user's documents
Monitor usage in Google Cloud Console
๐ Performance
Average Response Time: 725ms per operation (includes Drive API)
Document Read: ~300ms (fast, cached by Google)
Text Editing: ~450ms (simple updates)
Drive Operations: ~650ms (includes Drive API calls)
API Quotas: 300 requests per minute per user
๐ Multi-Tab Document Support
Google Docs now supports multiple tabs. This server fully supports this feature:
Usage:
List tabs with
listDocumentTabsTarget specific tab with
tabIdparameterWorks without
tabId(targets first tab/legacy doc body)
๐ค Contributing
This is an AgenticLedger platform-customized version of a-bonus/google-docs-mcp.
AgenticLedger Customizations:
Platform-specific documentation
Integration test suite
AI agent guides
Example files and templates
Enhanced error handling
๐ License
MIT License - See LICENSE file
๐ Links
Repository: https://github.com/oregpt/Agenticledger_MCP_DocsOnly
Upstream Source: https://github.com/a-bonus/google-docs-mcp
AgenticLedger Platform: [Platform Documentation]
Google Docs API: https://developers.google.com/docs/api
Google Drive API: https://developers.google.com/drive/api
๐ Support
Check Documentation:
README_AGENTICLEDGER.md - Integration guide
PLATFORM_INTEGRATION_REPORT.md - Tool reference
GOOGLE_CLOUD_SETUP.md - OAuth help
CLAUDE.md - Advanced features
Run Diagnostics:
npm run test:integrationReview Examples:
See
test-integration.tsfor real API usage examples
๐ Comparison: Docs vs Sheets
Use GoogleDocsMCP when:
Creating reports, letters, proposals
Need rich text formatting
Working with narrative content
Require document structure (headings, TOC)
Need comment collaboration
Use GoogleSheetsMCP when:
Working with tabular data
Need calculations/formulas
Creating charts and graphs
Data analysis tasks
Structured records
Status: โ Production Ready Version: 1.0.0 Last Updated: 2025-11-03 Total Tools: 30+ Platform: AgenticLedger
This server cannot be installed