MCP Google Workspace Server
Allows AI agents to draft and send emails through the authenticated user's Gmail account.
Allows AI agents to append text content to existing Google Docs.
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., "@MCP Google Workspace ServerDraft an email to sarah@company.com about the Q3 report and include the summary."
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 enables AI agents to interact with Gmail and Google Docs through well-defined MCP tools.
The primary goal of this project is to provide a reusable integration layer so that any MCP-compatible AI agent can perform email and Google Docs operations without implementing Gmail or Google Docs APIs themselves.
Features
The server currently supports the following capabilities exposed as MCP tools:
Gmail
gmail_draft_email: Draft an email in the authenticated user's Gmail account.gmail_send_email: Send an email directly using the authenticated user's Gmail account.
Google Docs
google_docs_append: Append text content to the end of an existing Google Doc.
Related MCP server: Google Workspace MCP Server
Prerequisites
Node.js (v18 or higher recommended)
Google Cloud Platform account
Gmail API and Google Docs API enabled in your GCP project
OAuth 2.0 Client credentials (Desktop application type)
Installation
Clone the repository:
git clone https://github.com/n21jindal-maker/MCP-Server.git cd MCP-ServerInstall dependencies:
npm installBuild the project:
npm run build
Configuration & Authentication
The server uses Google OAuth 2.0 for authentication. You need to set up your credentials before running the server.
Obtain your OAuth 2.0 Client ID and Secret from the Google Cloud Console.
Save your credentials as
Credentials.jsonin the root directory, or configure the environment variables as shown in.env.example.Generate the OAuth token:
npx tsx generate-token.tsFollow the prompts to authorize the application. This will generate a
token.jsonfile.
Running the Server
Start the server using:
npm startOr for development (with automatic TypeScript compilation):
npm run devUsing with an MCP Client
Configure your MCP client to start this server. The server communicates over stdio.
Example configuration for Claude Desktop or similar MCP clients:
{
"mcpServers": {
"google-workspace": {
"command": "node",
"args": ["/absolute/path/to/MCP-Server/dist/index.js"]
}
}
}Available Tools
gmail_draft_email
Drafts an email but does not send it.
Parameters:
to(string[]): One or more recipient email addresses.subject(string): Email subject.body(string): Email body.
gmail_send_email
Sends an email immediately.
Parameters:
to(string[]): One or more recipient email addresses.subject(string): Email subject.body(string): Email body.
google_docs_append
Appends content to a Google Doc.
Parameters:
documentId(string): The ID of the Google Doc (found in the URL).content(string): Text content to append.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
- MermailOAuthapp.mermail
Privacy-first email inboxes for AI agents with MCP mail tools and Composio connect/execute.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send emails, create drafts in Gmail, and append content to Google Docs via standardized MCP tools.47ISC
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send emails via Gmail and append content to Google Docs.152MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to send Gmail emails, create drafts, and append content to Google Docs through MCP tools. Provides secure OAuth-based integration with Google Workspace.152MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to send and draft Gmail emails and append content to Google Docs through standardized MCP tools.19MIT
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/n21jindal-maker/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server