Google Workspace MCP Server
A robust, generic Model Context Protocol (MCP) Server that integrates AI agents with Google Workspace, enabling them to interact with Gmail and Google Docs.
README
Google Workspace MCP Server (Railway Deployment)
A robust, generic Model Context Protocol (MCP) Server that integrates AI agents with Google Workspace. It acts as a bridge, enabling any standard MCP-compliant AI agent (such as Claude Desktop) to securely interact with Gmail and Google Docs.
This version has been optimized for deployment to cloud providers like Railway using an Express-based HTTP server with Server-Sent Events (SSE) and API Key authentication.
Provided Tools
gmail_draft_email: Creates a draft email in your Gmail account without sending it.gmail_send_email: Sends an email directly from your Gmail account.docs_append_content: Appends text content to the end of a specified Google Document.
Setup Instructions
1. Configure Environment Variables
This server expects the following environment variables to securely connect to Google APIs without relying on local files:
PORT: (Optional) Port for the Express server (default: 3000). Provided automatically by Railway.MCP_API_KEY: A secure random string you choose to protect your endpoint (e.g.,sk-mcp-12345...).GOOGLE_CLIENT_ID: Your Google OAuth 2.0 Client ID.GOOGLE_CLIENT_SECRET: Your Google OAuth 2.0 Client Secret.GOOGLE_REFRESH_TOKEN: The refresh token generated after your initial OAuth consent flow.
2. Deploy to Railway
- Push this repository to GitHub.
- Create a new project in Railway and select the repository.
- Railway will automatically build the TypeScript project via
npm run buildand start it. - Add the required environment variables in the Railway dashboard.
- Generate a public domain for your Railway service (e.g.,
https://my-mcp-server.up.railway.app).
3. Configure Your MCP Client
Instead of running a local node process, you must configure your AI agent to connect via SSE over HTTP. Provide the API key in the environment to authenticate.
Claude Desktop Configuration
Add this server to your claude_desktop_config.json:
{
"mcpServers": {
"google-workspace": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/inspector", "http://my-mcp-server.up.railway.app/sse"],
"env": {
"MCP_API_KEY": "your_secure_api_key_here"
}
}
}
}
(Note: To connect Claude Desktop directly to a remote SSE server, you typically use a specialized SSE client wrapper, or pass the authorization header via the client's built-in HTTP connector if supported).
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.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
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.