Google Workspace MCP Server
Provides tools for sending emails and creating drafts via the Gmail API.
Provides a tool to append text content to an existing Google Doc.
Click on "Deploy 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 Server Draft an email to Sarah about the meeting"
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 (Gmail + Google Docs)
A Model Context Protocol (MCP) server that exposes Google Workspace capabilities — specifically Gmail and Google Docs — as standardized MCP tools.
Features
send_email: Send an email immediately via the authenticated Gmail account.draft_email: Create a draft in the authenticated Gmail account without sending.append_to_google_doc: Append text content to the end of an existing Google Doc.
Related MCP server: Google Workspace MCP Server
Setup Instructions
1. Google Cloud Project Setup
Go to the Google Cloud Console.
Create a new project or select an existing one.
Navigate to APIs & Services > Library.
Search for and enable the Gmail API and Google Docs API.
Navigate to APIs & Services > OAuth consent screen.
Configure the consent screen (External or Internal).
Add the following scopes:
https://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/gmail.composehttps://www.googleapis.com/auth/documents
Add your email address as a Test User if your app is in testing mode.
Navigate to APIs & Services > Credentials.
Click Create Credentials > OAuth client ID.
Choose Desktop app as the application type.
Click Create.
Download the JSON file and rename it to
credentials.json. Place it in the root of this project.
2. Environment Setup
Copy
.env.exampleto.env(optional, as defaults are used if not provided).Install the project dependencies:
pip install -e .
3. First Run (Authentication)
Before an MCP client can use the server, you must authenticate it manually to generate the token.json file.
Run the server directly:
gmail-docs-mcpThis will open a browser window asking you to log in with your Google account and grant the requested permissions. Once completed, a token.json file will be created. You can then stop the server (Ctrl+C).
4. MCP Client Configuration
Configure your MCP client (e.g., Claude Desktop) to run this server. Add the following to your MCP client's configuration file:
{
"mcpServers": {
"google-workspace": {
"command": "gmail-docs-mcp",
"env": {
"GOOGLE_CREDENTIALS_PATH": "/absolute/path/to/credentials.json",
"GOOGLE_TOKEN_PATH": "/absolute/path/to/token.json"
}
}
}
}Note: Make sure to use absolute paths for the credentials and token files.
Testing
Run unit tests with pytest:
pip install -e ".[dev]"
pytestManual Smoke-Test Checklist
Send test email: Invoke
send_emailwith your own email address to verify receipt.Create draft: Invoke
draft_emailand check your Gmail Drafts folder.Append to a doc: Create a test Google Doc, copy its URL or ID, and invoke
append_to_google_doc. Check the document to verify the text was appended at the end.
Available Tools
3 toolsappend_to_google_docB
Append text content to the end of an existing Google Doc.
Inputs: content (required), document_id (required), leading_newline, add_timestamp_heading.
draft_emailB
Create a draft in the authenticated Gmail account without sending.
Inputs: to (required), body (required), subject (required), cc, +2 more.
send_emailB
Send an email immediately via the authenticated Gmail account.
Inputs: to (required), body (required), subject (required), cc, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: append_to_google_doc targets Google Docs, while draft_email and send_email target Gmail with different actions (create draft vs send). No overlap exists between the three tools.
All tools follow a consistent verb_noun pattern using snake_case: append_to_google_doc, draft_email, send_email. The pattern is predictable and uniform across the set.
At 3 tools for a 'Google Workspace MCP Server,' the count feels too low. The server name suggests broader coverage of multiple Google Workspace services, but only Docs (append) and Gmail (draft/send) are represented, making the scope overly narrow.
The toolset is severely incomplete for Google Workspace. Key operations like creating or reading Google Docs, listing emails, managing labels, or handling attachments are missing. Agents cannot perform basic CRUD workflows for either Docs or Gmail.
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Email and optional phone for AI agents: send, receive, search, draft and call over MCP.
Email: search, read, fetch attachments; attach files when the MCP client supports inputs.
Email for AI agents: send, receive with a safety verdict, reply and approve, as MCP tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to send emails, create drafts in Gmail, and append content to Google Docs via standardized MCP tools.ISC
- FlicenseNot gradedqualityCmaintenanceEnables creating and sending Gmail drafts and appending content to Google Docs through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to draft and send Gmail emails and append content to Google Docs through MCP tools.MIT
- AlicenseAqualityCmaintenanceExposes reusable MCP tools for composing Gmail drafts, sending emails, and appending content to existing Google Docs, allowing compatible clients to automate these Google Workspace actions.3MIT