Google Workspace MCP Server
Enables AI agents to send emails via Gmail and append content to Google Docs.
README
Google Workspace MCP Server
A generic Model Context Protocol (MCP) server that enables AI agents to securely interact with Google Workspace services. The server exposes tools for sending emails via Gmail and appending content to Google Docs.
It is built with Express and SSE Transport, making it perfect for cloud deployments (like Railway) so remote AI agents can connect over HTTP.
Features
send_email: Send an email (Supports To, CC, BCC, HTML, Reply-To).append_to_google_doc: Append text to an existing Google Document.
Setup Instructions
1. Google Cloud Console Setup
- Create a project in Google Cloud Console.
- Enable the Gmail API and Google Docs API.
- Create OAuth 2.0 Client IDs (Desktop application type).
- Download the credentials and save them as
credentials.jsonin the root of this project.
2. Generate Tokens
- Install dependencies:
npm install - Run the token generation script:
npm run auth - Follow the CLI prompt to authorize the application. The tokens will be saved locally and output a Refresh Token.
3. Deploy to Railway (Cloud Hosting)
- Push this repository to your GitHub account.
- Sign in to Railway.app and create a New Project from your GitHub Repository.
- In the Railway Dashboard for this service, navigate to Variables and add the following:
GOOGLE_CLIENT_ID: Your Client IDGOOGLE_CLIENT_SECRET: Your Client SecretGOOGLE_REFRESH_TOKEN: The Refresh Token generated in Step 2.API_KEY: Generate a secure random string (e.g., a UUID). This protects your server from unauthorized access!
Railway will automatically build and deploy the server. Once deployed, note the public Domain provided by Railway.
Integrating with AI Agents
Since this is an SSE-based server, your agent needs to connect to the /sse endpoint via HTTP, passing the API Key as a Bearer token.
For an MCP Client that supports SSE natively, configure it with:
- URL:
https://your-railway-app-url.up.railway.app/sse - Headers:
{"Authorization": "Bearer YOUR_API_KEY"}
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.