Labsco
jasonWong-serviceDirect logo

Google Docs & Drive

β˜… 2

from jasonWong-serviceDirect

Interact with Google Docs and Google Drive for document creation, editing, and file management, with support for shared drives.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

Ultimate Google Docs & Drive MCP Server

Demo Animation

Connect Claude Desktop (or other MCP clients) to your Google Docs and Google Drive!

πŸ”₯ Check out 15 powerful tasks you can accomplish with this enhanced server! πŸ“ NEW: Complete Google Drive file management capabilities!

This comprehensive server uses the Model Context Protocol (MCP) and the fastmcp library to provide tools for reading, writing, formatting, structuring Google Documents, and managing your entire Google Drive. It acts as a powerful bridge, allowing AI assistants like Claude to interact with your documents and files programmatically with advanced capabilities.

Features:

Document Access & Editing

  • Read Documents: Read content with readGoogleDoc (plain text, JSON structure, or markdown)
  • Append to Documents: Add text to documents with appendToGoogleDoc
  • Insert Text: Place text at specific positions with insertText
  • Delete Content: Remove content from a document with deleteRange

Formatting & Styling

  • Text Formatting: Apply rich styling with applyTextStyle (bold, italic, colors, etc.)
  • Paragraph Formatting: Control paragraph layout with applyParagraphStyle (alignment, spacing, etc.)
  • Find & Format: Format by text content using formatMatchingText (legacy support)

Document Structure

  • Tables: Create tables with insertTable
  • Page Breaks: Insert page breaks with insertPageBreak
  • Experimental Features: Tools like fixListFormatting for automatic list detection

πŸ†• Google Drive File Management

  • Document Discovery: Find and list documents with listGoogleDocs, searchGoogleDocs, getRecentGoogleDocs
  • Document Information: Get detailed metadata with getDocumentInfo
  • Folder Management: Create folders (createFolder), list contents (listFolderContents), get info (getFolderInfo)
  • File Operations: Move (moveFile), copy (copyFile), rename (renameFile), delete (deleteFile)
  • Document Creation: Create new docs (createDocument) or from templates (createFromTemplate)
  • πŸš€ Shared Drive Support: Full support for Google Workspace shared drives! All operations now work seamlessly with shared drives

Integration

  • Google Authentication: Secure OAuth 2.0 authentication with full Drive access
  • MCP Compliant: Designed for use with Claude and other MCP clients
  • VS Code Integration: Setup guide for VS Code MCP extension

Security & Token Storage

  • .gitignore: This repository includes a .gitignore file which should prevent you from accidentally committing your sensitive credentials.json and token.json files. Do not remove these lines from .gitignore.
  • Token Storage: This server stores the Google authorization token (token.json) directly in the project folder for simplicity during setup. In production or more security-sensitive environments, consider storing this token more securely, such as using system keychains, encrypted files, or dedicated secret management services.