Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Automating Google Docs with Claude | Document Drafting, Editing & Filing
Agentic AI for Automating Daily Office Tasks

bookAutomating Google Docs with Claude

Let's set up the Google Docs MCP server.

Google Cloud Console Configuration

New Project Setup
expand arrow
  1. Access Google Cloud Console through browser interface;
  2. Click current project name to access project selector;
  3. Select "New Project" and provide descriptive name (e.g., "docs mcp");
  4. Wait for project creation and switch to new project.
Required API Activations
expand arrow
  1. Google Docs API: navigate to APIs & Services β†’ Library, search "Google Docs API", and enable;
  2. Google Drive API: similarly enable Google Drive API for file management capabilities.

These APIs provide comprehensive access to Google's document ecosystem, enabling read, write, create, edit, and delete operations across both Docs and Drive platforms.

Configure OAuth Consent Screen
expand arrow
  1. Navigate to the "Credentials" tab;
  2. If prompted, click "Configure consent screen";
  3. Click "Get started";
  4. Enter application name (e.g., "gmail agent");
  5. Input your email address;
  6. Select "External Audience" for user type, if you use general Gmail account;
  7. Re-enter your email address when prompted;
  8. Accept the user data policy;
  9. Click Continue and Create.
Create OAuth Credentials
expand arrow
  • Click "Create OAuth Client";
  • Select "Desktop App" for local AI agents and scripts;
  • Accept suggested naming or customize as needed;
  • Download the JSON file and save it as credentials.json in your project directory;
  • Now you need to move the file with credentials to the folder with the AI agent (/MCP-Google-Doc). You can do that manually by moving the file icon to the opened folder in the file explorer. Or use Terminal/Command line and copy the file with the command cp path/to/file_name ., for example:
cp ~/Desktop/credentials.json .

The dot (.) at the end specifies current directory as destination;

  • Confirm successful file transfer and remove from original location.

Automatic MCP Server Launch (Recommended)

Clone the Repository
expand arrow
  • In Claude chat, paste:
Clone this repo to the Documents/projects
https://github.com/ophydami/MCP-Google-Doc.git
  • Run the command. Repo is cloned to the same folder as other MCP servers.
Install Dependencies
expand arrow
  • In Claude chat, paste:
run npm install
  • Run the command. Claude installs all required packages.
Move the Credentials File
expand arrow
  • In Claude, paste:
Move Desktop/credentials.json into project directory.
  • Run the command. Claude places the OAuth file inside the cloned repo automatically.
Build and Start Server
expand arrow
  • In Claude, paste:
run npm run build and npm start
  • Run. Claude executes commands consistently.

  • Browser opens β†’ authenticate with your Google account:

    • Select the same email used in Google Cloud Console β†’ click Allow;
    • Close the tab after seeing "Authentication successful".
Adding the Config Block
expand arrow
  • In Claude, paste:
Add this block to the Claude config file
{
  "mcpServers": {
    "googledocs": {
      "command": "node",
      "args": ["/absolute/path/to/build/server.js"]
    }
  }
}
  • Run the prompt.
Verify Config (Optional)
expand arrow
  • Open Claude Settings (Mac: Cmd + ,; Windows: Ctrl + ,);
  • Go to Developer β†’ Edit Config;
  • Confirm the new block is added (either after another Google server MCP or at the end). Both are fine.
Restart Claude
expand arrow
  • Fully exit Claude Desktop. (Mac: Cmd + Q; Windows: Alt + F4);
  • Reopen Claude to finish the MCP launch.

Manual Server Installation

Local Environment Preparation
expand arrow
  • Navigate to designated directory for AI agent storage
cd Documents/projects
git clone https://github.com/ophydami/MCP-Google-Doc.git
cd MCP-Google-Doc
  • Download all required packages and dependencies
npm install
Build and Authentication Process
expand arrow

Optimize code, minify files, and create production-ready bundles

npm run build
Authentication Initialization
expand arrow

Launch authentication server and initiate OAuth flow

npm start
Claude Desktop Integration
expand arrow

Settings Access

  • Open Claude Desktop settings (Cmd+, or Ctrl+,);
  • Navigate to Developer tab;
  • Select "Edit Config" to access configuration file.

Configuration Integration

  • Add comma after existing configuration blocks;
  • Insert Google Docs MCP configuration block
    "googledocs": {
      "command": "node",
      "args": [
        "/path/to/build/server.js"
      ]
    }
  • Update path information using pwd command output in the Terminal/Command line;
  • Save configuration file and restart Claude Desktop.
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 10

bookAutomating Google Docs with Claude

Swipe to show menu

Let's set up the Google Docs MCP server.

Google Cloud Console Configuration

New Project Setup
expand arrow
  1. Access Google Cloud Console through browser interface;
  2. Click current project name to access project selector;
  3. Select "New Project" and provide descriptive name (e.g., "docs mcp");
  4. Wait for project creation and switch to new project.
Required API Activations
expand arrow
  1. Google Docs API: navigate to APIs & Services β†’ Library, search "Google Docs API", and enable;
  2. Google Drive API: similarly enable Google Drive API for file management capabilities.

These APIs provide comprehensive access to Google's document ecosystem, enabling read, write, create, edit, and delete operations across both Docs and Drive platforms.

Configure OAuth Consent Screen
expand arrow
  1. Navigate to the "Credentials" tab;
  2. If prompted, click "Configure consent screen";
  3. Click "Get started";
  4. Enter application name (e.g., "gmail agent");
  5. Input your email address;
  6. Select "External Audience" for user type, if you use general Gmail account;
  7. Re-enter your email address when prompted;
  8. Accept the user data policy;
  9. Click Continue and Create.
Create OAuth Credentials
expand arrow
  • Click "Create OAuth Client";
  • Select "Desktop App" for local AI agents and scripts;
  • Accept suggested naming or customize as needed;
  • Download the JSON file and save it as credentials.json in your project directory;
  • Now you need to move the file with credentials to the folder with the AI agent (/MCP-Google-Doc). You can do that manually by moving the file icon to the opened folder in the file explorer. Or use Terminal/Command line and copy the file with the command cp path/to/file_name ., for example:
cp ~/Desktop/credentials.json .

The dot (.) at the end specifies current directory as destination;

  • Confirm successful file transfer and remove from original location.

Automatic MCP Server Launch (Recommended)

Clone the Repository
expand arrow
  • In Claude chat, paste:
Clone this repo to the Documents/projects
https://github.com/ophydami/MCP-Google-Doc.git
  • Run the command. Repo is cloned to the same folder as other MCP servers.
Install Dependencies
expand arrow
  • In Claude chat, paste:
run npm install
  • Run the command. Claude installs all required packages.
Move the Credentials File
expand arrow
  • In Claude, paste:
Move Desktop/credentials.json into project directory.
  • Run the command. Claude places the OAuth file inside the cloned repo automatically.
Build and Start Server
expand arrow
  • In Claude, paste:
run npm run build and npm start
  • Run. Claude executes commands consistently.

  • Browser opens β†’ authenticate with your Google account:

    • Select the same email used in Google Cloud Console β†’ click Allow;
    • Close the tab after seeing "Authentication successful".
Adding the Config Block
expand arrow
  • In Claude, paste:
Add this block to the Claude config file
{
  "mcpServers": {
    "googledocs": {
      "command": "node",
      "args": ["/absolute/path/to/build/server.js"]
    }
  }
}
  • Run the prompt.
Verify Config (Optional)
expand arrow
  • Open Claude Settings (Mac: Cmd + ,; Windows: Ctrl + ,);
  • Go to Developer β†’ Edit Config;
  • Confirm the new block is added (either after another Google server MCP or at the end). Both are fine.
Restart Claude
expand arrow
  • Fully exit Claude Desktop. (Mac: Cmd + Q; Windows: Alt + F4);
  • Reopen Claude to finish the MCP launch.

Manual Server Installation

Local Environment Preparation
expand arrow
  • Navigate to designated directory for AI agent storage
cd Documents/projects
git clone https://github.com/ophydami/MCP-Google-Doc.git
cd MCP-Google-Doc
  • Download all required packages and dependencies
npm install
Build and Authentication Process
expand arrow

Optimize code, minify files, and create production-ready bundles

npm run build
Authentication Initialization
expand arrow

Launch authentication server and initiate OAuth flow

npm start
Claude Desktop Integration
expand arrow

Settings Access

  • Open Claude Desktop settings (Cmd+, or Ctrl+,);
  • Navigate to Developer tab;
  • Select "Edit Config" to access configuration file.

Configuration Integration

  • Add comma after existing configuration blocks;
  • Insert Google Docs MCP configuration block
    "googledocs": {
      "command": "node",
      "args": [
        "/path/to/build/server.js"
      ]
    }
  • Update path information using pwd command output in the Terminal/Command line;
  • Save configuration file and restart Claude Desktop.
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 1
some-alt