Google Workspace MCP Server
Allows sending emails through the authenticated user's Gmail account.
Allows appending text/content to existing Google Documents.
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 Serversend an email to alice@example.com with subject 'Meeting Reminder' and body 'See you tomorrow at 10am'"
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.
MCP Google Workspace Server
A generic Model Context Protocol (MCP) server that exposes Gmail and Google Docs capabilities as standard MCP tools. This server allows AI agents (like Claude, Cursor, ChatGPT) to interact with Google Workspace APIs seamlessly.
Features
Provides the following tools:
send_email: Send an email through the authenticated user's Gmail account.append_to_google_doc: Append text/content to an existing Google Document.
Related MCP server: Google Workspace MCP Server
Prerequisites
Python 3.10+
Google Cloud Console Setup:
Go to Google Cloud Console.
Create a new project.
Enable Gmail API and Google Docs API.
Configure the OAuth consent screen (Desktop App).
Create OAuth 2.0 Client ID credentials.
Download the JSON file, rename it to
credentials.json, and place it in the root of this project.
Installation
Install the required Python dependencies:
pip install -r requirements.txtRunning the Server
Because this server implements the standard stdio transport for MCP, it can be launched directly via an MCP client configuration.
For testing, you can use the official mcp-inspector:
npx @modelcontextprotocol/inspector python server.pyInitial Authentication
The first time you run the server and invoke a tool, it will open a local web browser to authenticate with Google Workspace. Upon successful authentication, a token.json file will be generated locally.
Example Usage in Cursor
Add this to your MCP configuration in Cursor (or similar client):
{
"mcpServers": {
"google-workspace": {
"command": "python",
"args": ["/absolute/path/to/server.py"]
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Multiple Gmail accounts, editable Google Sheets & Docs for AI agents. Deny-by-default access rules.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to send emails via Gmail and append text to Google Docs or local files.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely interact with Google Workspace services, including sending emails via Gmail and appending content to Google Docs.261 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send emails via Gmail and append content to Google Docs.261 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI agents to create drafts and send emails in Gmail, and append text to existing Google Docs documents.-