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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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 gradedqualityDmaintenanceA lightweight MCP server for managing Google Workspace services (Gmail, Calendar, Drive, Docs, Sheets, Slides) through natural language with AI assistants like Claude and Cursor.33 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
- AlicenseBqualityDmaintenanceA generic MCP server that exposes Gmail and Google Docs capabilities as tools for AI agents. Enables sending emails and appending content to Google Docs.2ISC