Google Workspace MCP Server
Allows creating draft emails in Gmail.
Allows appending content to a Google Doc.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Workspace MCP ServerCreate a draft email to John about the project update"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Workspace MCP Server
A lightweight Model Context Protocol style REST server written in Python using FastAPI. Integrates with Google Docs and Google Gmail to allow agents to append content to documents and create draft emails.
Directory Structure
google-mcp-server/
├── server.py # FastAPI server endpoints
├── auth.py # Google OAuth workflow manager
├── docs_tool.py # Doc append tool
├── gmail_tool.py # Gmail draft creator
├── requirements.txt # Python dependencies
├── README.md # This file
├── credentials.json # (Ignored) downloaded from Google Cloud
└── token.json # (Ignored) generated after first user loginRelated MCP server: Google Docs + Gmail MCP Server
Prerequisites & Google Cloud Setup
Create a project in Google Cloud Console.
Enable the Google Docs API and the Gmail API for your project.
Set up the OAuth consent screen (choose External user type and add your email as a test user).
Go to Credentials, click Create Credentials, select OAuth Client ID (Desktop Application type).
Download the client secret JSON file, rename it to
credentials.json, and place it in thegoogle-mcp-server/directory.
Installation & Running
Navigate to the server folder:
cd google-mcp-serverCreate a virtual environment and install dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txtStart the server:
python server.py
On the first start, the server will trigger a local browser authentication window. Grant permission to access Google Docs and Gmail, and it will save token.json so you do not need to re-login.
Endpoint API Reference
All requests must require standard terminal input confirmation by the server operator (Approve? (y/n)).
1. Append to Google Doc
URL:
POST /append_to_docContent-Type:
application/jsonRequest Payload:
{ "doc_id": "YOUR_GOOGLE_DOC_ID", "content": "Text to append to the document\n" }
2. Create Gmail Draft
URL:
POST /create_email_draftContent-Type:
application/jsonRequest Payload:
{ "to": "stakeholder1@example.com, stakeholder2@example.com", "subject": "Weekly review pulse report", "body": "HTML string containing summary and details" }
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceA lightweight MCP server that integrates with Google Docs and Gmail, allowing AI workflows to append to Google Docs and create Gmail drafts with human approval.Last updatedApache 2.0
- Alicense-qualityBmaintenanceEnables appending content to Google Docs and creating Gmail drafts via a lightweight MCP-style server with OAuth authentication and human-in-the-loop approval.Last updatedApache 2.0
- Flicense-qualityCmaintenanceA server enabling appending text to Google Docs and creating Gmail drafts via OAuth 2.0 with manual approval.Last updated
- Flicense-qualityCmaintenanceA Python FastAPI server that exposes Google Docs and Gmail tools with terminal-based approval before each action. Allows appending to Google Docs and creating Gmail drafts.Last updated
Related MCP Connectors
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tambeaditya101/google-mcp-server-review-pulse'
If you have feedback or need assistance with the MCP directory API, please join our Discord server