Google Workspace MCP Server
Provides tools for searching, reading, and sending emails via Gmail API.
Provides tools for reading and creating Google Docs via Google Docs API.
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 Serversearch my emails for 'budget report'"
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 project is an MCP (Model Context Protocol) server that provides tools to interact with Gmail and Google Docs.
Prerequisites
Python 3.10+
Google Cloud Project: You need to create a project in the Google Cloud Console and enable the Gmail and Google Docs APIs.
Setting up Google Cloud Credentials
Go to the Google Cloud Console.
Create a new project.
Go to APIs & Services > Library.
Search for and enable Gmail API and Google Docs API.
Go to APIs & Services > OAuth consent screen.
Choose External (or Internal if you have a Google Workspace org).
Fill in the required app information.
Add the following scopes:
https://www.googleapis.com/auth/gmail.modifyhttps://www.googleapis.com/auth/documents
Add your Google email address as a Test user.
Go to APIs & Services > Credentials.
Click Create Credentials > OAuth client ID.
Choose Desktop app as the application type.
Click Create and then Download JSON.
Rename the downloaded file to
credentials.jsonand place it in the root directory of this project.
Related MCP server: Gmail MCP Server
Installation
It is recommended to use a virtual environment.
python -m venv venv
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate
pip install -r requirements.txtRunning the Server
To start the MCP server, use the mcp CLI tool (installed via dependencies):
mcp dev main.pyThe first time you run this, a browser window will open asking you to log in with your Google account and grant permissions to the app. After granting permissions, a token.json file will be created locally to store your access and refresh tokens.
Available Tools
The following tools will be exposed to your LLM:
search_emails(query, max_results): Search for emails matching a Gmail query.read_email(message_id): Read the content of a specific email.send_email(to, subject, body): Send an email.read_document(document_id): Read the text content of a Google Doc.create_document(title, content): Create a new Google Doc with optional initial content.
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.
Latest Blog Posts
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/Sayali467/MCP_Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server