Ultimate Google Docs MCP Server
by a-bonus
This server connects Claude Desktop (or other MCP clients) to your Google Docs. It uses the Model Context Protocol (MCP) and the `fastmcp` library to provide comprehensive tools for reading, writing, formatting, and structuring Google Documents.
Last updated: N/A
What is Ultimate Google Docs MCP Server?
This server acts as a bridge between AI assistants like Claude and Google Docs, allowing programmatic interaction with advanced capabilities for reading, writing, formatting, and structuring documents.
How to use Ultimate Google Docs MCP Server?
To use this server, you need to set up a Google Cloud project, enable the Google Docs and Drive APIs, configure OAuth credentials, clone the repository, install dependencies, build the server code, authorize the server with your Google account, and configure your MCP client (e.g., Claude Desktop) to connect to the server.
Key features of Ultimate Google Docs MCP Server
Document Access (Read, Append, Insert, Delete)
Formatting & Styling (Text and Paragraph)
Document Structure (Tables, Page Breaks)
Google Authentication (OAuth 2.0)
MCP Compliant
Use cases of Ultimate Google Docs MCP Server
Automated document generation
AI-powered document editing
Programmatic formatting and styling
Integration with AI assistants for document interaction
FAQ from Ultimate Google Docs MCP Server
Claude shows 'Failed' or 'Could not attach'
Claude shows 'Failed' or 'Could not attach'
Double-check the absolute path in mcp_config.json. Ensure you ran npm run build successfully and the dist folder exists. Try running the command from mcp_config.json manually in your terminal. Check the Claude Desktop logs. Make sure all console.log status messages in the server code were changed to console.error.
Google Authorization Errors
Google Authorization Errors
Ensure you enabled the correct APIs (Docs, Drive). Make sure you added your email as a Test User on the OAuth Consent Screen. Verify the credentials.json file is correctly placed in the project root.
How do I find my Google Doc ID?
How do I find my Google Doc ID?
The Google Doc ID is the long string between /d/ and /edit in the document's URL.
Is my credentials.json safe?
Is my credentials.json safe?
Treat this credentials.json file like a password! Do not share it publicly, and never commit it to GitHub. Anyone with this file could potentially pretend to be your application.
Is my token.json safe?
Is my token.json safe?
This token.json file contains the key that allows the server to access your Google account without asking again. Protect it like a password. Do not commit it to GitHub. The included .gitignore file should prevent this automatically.