google-workspace-mcp
Provides tools to create email drafts and send emails immediately.
Provides tools to append text to the end of an existing Google Document.
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-mcpSend an email to Jane reminding her about the team meeting tomorrow at 2 PM."
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
This is a generic Model Context Protocol (MCP) server that provides AI agents with tools to interact with Gmail and Google Docs. It allows any MCP-compatible agent to draft emails, send emails, and append content to Google Docs on your behalf.
Provided Tools
gmail_create_draft: Creates an email draft.gmail_send_email: Sends an email immediately.google_doc_append: Appends text to the end of an existing Google Document.
Related MCP server: Google Workspace MCP Server
Setup Instructions
To use this server, you need to configure a Google Cloud Project with the necessary APIs and OAuth credentials.
1. Create a Google Cloud Project
Go to the Google Cloud Console.
Create a new project.
2. Enable APIs
Navigate to APIs & Services > Library.
Search for and enable the Gmail API.
Search for and enable the Google Docs API.
3. Configure OAuth Consent Screen
Navigate to APIs & Services > OAuth consent screen.
Choose External (or Internal if you are a Google Workspace user).
Add the following scopes:
https://www.googleapis.com/auth/gmail.composehttps://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/documents
Add your email address as a Test user if your app is in "Testing" mode.
4. Create OAuth Credentials
Navigate to APIs & Services > Credentials.
Click Create Credentials > OAuth client ID.
Select Desktop app (or Web application if you prefer) as the application type.
Download or copy your Client ID and Client Secret.
5. Obtain a Refresh Token
You must perform an initial OAuth 2.0 flow to authorize the application and obtain a refresh token. (Note: You can use tools like Google OAuth 2.0 Playground configured with your own OAuth Client ID/Secret to generate a refresh token with the required scopes).
6. Configure Environment Variables
Copy the
.env.examplefile to.env:cp .env.example .envFill in the
.envfile with your credentials:GOOGLE_CLIENT_ID=your_client_id GOOGLE_CLIENT_SECRET=your_client_secret GOOGLE_REFRESH_TOKEN=your_refresh_token MCP_SERVER_NAME=google-integration-server
7. Install and Build
npm install
npm run buildMCP Client Configuration
Configure your MCP client (such as Cursor or Claude Desktop) to connect to the compiled server.
Example for claude_desktop_config.json:
{
"mcpServers": {
"google-integration": {
"command": "node",
"args": [
"/absolute/path/to/AI Summarizer MCP server/build/index.js"
],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GOOGLE_REFRESH_TOKEN": "your_refresh_token",
"MCP_SERVER_NAME": "google-integration-server"
}
}
}
}(Alternatively, rely on the .env file located in the server's root directory).
Architecture & Security
This server relies on Google's OAuth 2.0. Access tokens are kept entirely within the server's memory and are automatically refreshed.
Tokens and email/document contents are not exposed to the AI agent except via structured success/error messages.
This server cannot be deployed
Maintenance
Related MCP Connectors
Multiple Gmail accounts, editable Google Sheets & Docs for AI agents. Deny-by-default access rules.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to send emails and append content to Google Docs using Gmail and Google Docs APIs.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely interact with Google Workspace services, including sending emails via Gmail and appending content to Google Docs.205 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send emails via Gmail and append content to Google Docs.205 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI agents to create Gmail drafts, send emails, and append content to Google Docs with OAuth-secured authentication.18 npmMIT