Contenuti del Corso
Agentic AI for Automating Daily Office Tasks
Agentic AI for Automating Daily Office Tasks
2. Smarter Communication & Time Control
3. Document Drafting, Editing & Filing
Automating Google Docs with Claude
Google Cloud Console Configuration
New Project Setup
- Access Google Cloud Console through browser interface;
- Click current project name to access project selector;
- Select "New Project" and provide descriptive name (e.g., "docs mcp");
- Wait for project creation and switch to new project.
Required API Activations
- Google Docs API: navigate to APIs & Services → Library, search "Google Docs API", and enable;
- 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
- Navigate to the "Credentials" tab;
- If prompted, click "Configure consent screen";
- Click "Get started";
- Enter application name (e.g., "gmail agent");
- Input your email address;
- Select "External Audience" for user type, if you use general Gmail account;
- Re-enter your email address when prompted;
- Accept the user data policy;
- Click Continue and Create.
Create OAuth Credentials
- 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 commandcp 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.
Installation and Repository Setup
Local Environment Preparation
- Navigate to designated directory for AI agent storage
cd Documents/projects
- Download and enter the Google Docs MCP repository
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
Optimize code, minify files, and create production-ready bundles
npm run build
Authentication Initialization
Launch authentication server and initiate OAuth flow
npm start
Claude Desktop Integration
Settings Access
- Open Claude Desktop settings (
Cmd+,
orCtrl+,
); - 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.
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 1