Google Workspace MCP Server
Enables AI agents to send emails via Gmail and append text to Google Docs through the Model Context Protocol.
README
Google Workspace MCP Server
This is a Model Context Protocol (MCP) server that provides AI agents with tools to interact with Google Workspace services (Gmail and Google Docs).
Available Tools
send_email: Send an email via Gmail (supports multiple recipients, CC, BCC, plain-text and HTML).append_google_doc: Append text to an existing Google Document.
Setup Instructions
1. Configure Environment Variables
Rename .env.example to .env and fill in your Google Cloud credentials.
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secret
GOOGLE_REDIRECT_URI=http://localhost:3000/oauth2callback
PORT=3000
TOKEN_PATH=tokens.json
2. Generate Authentication Tokens
Before starting the MCP server, you must grant it access to your Google account. Run the authentication script:
npm run auth
- Click the link printed in your terminal.
- Sign in with your Google account.
- Grant the required permissions for Gmail and Google Docs.
- The script will automatically generate
tokens.jsonin your workspace.
3. Build the Server
Compile the TypeScript code:
npm run build
4. Connect to an MCP Client (e.g., Claude Desktop)
To use this server with Claude Desktop or another MCP client, configure the client to run the compiled index.js file. Add the following to your MCP client configuration file (e.g. claude_desktop_config.json):
{
"mcpServers": {
"google-workspace": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/build/index.js"],
"env": {
"GOOGLE_CLIENT_ID": "your_client_id",
"GOOGLE_CLIENT_SECRET": "your_client_secret",
"GOOGLE_REDIRECT_URI": "http://localhost:3000/oauth2callback",
"TOKEN_PATH": "/absolute/path/to/mcp-server/tokens.json"
}
}
}
}
Note: Ensure the TOKEN_PATH environment variable in the client config points to the absolute path of your generated tokens.json file.
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.