Google Docs and Gmail MCP Server
Provides tools to interact with Gmail, enabling email reading, sending, and management through the Gmail API.
Provides tools to interact with Google Docs, enabling document reading, writing, and management through the Google Docs API.
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 Docs and Gmail MCP Serverfind my unread emails from last week"
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 Docs and Gmail MCP Server
This is a Model Context Protocol (MCP) server that exposes Google Docs and Gmail capabilities to LLMs via the official mcp SDK using an SSE transport over FastAPI.
Setup Instructions
1. Google Cloud Setup
Go to the Google Cloud Console.
Create a new project.
Enable the Google Docs API and Gmail API.
Go to APIs & Services > Credentials and create an OAuth client ID (Desktop app).
Download the JSON file and save it as
credentials.jsonin the root of this project.
2. Installation
Install the dependencies:
pip install -r requirements.txt3. Authentication
Before running the server in a cloud environment, you must run it locally once to authenticate and generate the token.json file.
The server will print an authorization URL if token.json is missing. Complete the OAuth flow to generate token.json.
4. Running the Server
Start the server using uvicorn:
uvicorn server:app --host 0.0.0.0 --port 8000The MCP SSE endpoints will be available at:
/sse(for connecting)/messages/(for posting messages)
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that connects AI agents to Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, and Slides).302MIT
- AlicenseNot gradedqualityCmaintenanceA lightweight MCP server for managing Google Workspace services (Gmail, Calendar, Drive, Docs, Sheets, Slides) through natural language with AI assistants like Claude and Cursor.12 npm1MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables LLMs to search, fetch, and act on Google Workspace (Drive, Gmail, Docs, Sheets, etc.) with rich, one-call results and file deposits to disk, reducing context usage.3MIT
- FlicenseBqualityCmaintenanceA generic MCP server that exposes Gmail and Google Docs capabilities as tools for AI agents. Enables sending emails and appending content to Google Docs.2-