Google Workspace MCP Server
This server integrates with Google Docs and Gmail, allowing agents to append content to documents and create draft emails via a lightweight REST API.
README
Google Workspace MCP Server
A lightweight Model Context Protocol style REST server written in Python using FastAPI. Integrates with Google Docs and Google Gmail to allow agents to append content to documents and create draft emails.
Directory Structure
google-mcp-server/
├── server.py # FastAPI server endpoints
├── auth.py # Google OAuth workflow manager
├── docs_tool.py # Doc append tool
├── gmail_tool.py # Gmail draft creator
├── requirements.txt # Python dependencies
├── README.md # This file
├── credentials.json # (Ignored) downloaded from Google Cloud
└── token.json # (Ignored) generated after first user login
Prerequisites & Google Cloud Setup
- Create a project in Google Cloud Console.
- Enable the Google Docs API and the Gmail API for your project.
- Set up the OAuth consent screen (choose External user type and add your email as a test user).
- Go to Credentials, click Create Credentials, select OAuth Client ID (Desktop Application type).
- Download the client secret JSON file, rename it to
credentials.json, and place it in thegoogle-mcp-server/directory.
Installation & Running
-
Navigate to the server folder:
cd google-mcp-server -
Create a virtual environment and install dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
Start the server:
python server.py
On the first start, the server will trigger a local browser authentication window. Grant permission to access Google Docs and Gmail, and it will save token.json so you do not need to re-login.
Endpoint API Reference
All requests must require standard terminal input confirmation by the server operator (Approve? (y/n)).
1. Append to Google Doc
- URL:
POST /append_to_doc - Content-Type:
application/json - Request Payload:
{ "doc_id": "YOUR_GOOGLE_DOC_ID", "content": "Text to append to the document\n" }
2. Create Gmail Draft
- URL:
POST /create_email_draft - Content-Type:
application/json - Request Payload:
{ "to": "stakeholder1@example.com, stakeholder2@example.com", "subject": "Weekly review pulse report", "body": "HTML string containing summary and details" }
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.