Google Workspace MCP Server

Google Workspace MCP Server

Exposes standardized tools for AI agents to interact with Google Workspace (Gmail and Google Docs) via the MCP protocol.

Category
Visit Server

README

Google Workspace MCP Server

A Model Context Protocol (MCP) server that exposes standardized tools for AI agents to interact with Google Workspace (Gmail and Google Docs).

This server is designed to run in a cloud environment (like Render) using HTTP and Server-Sent Events (SSE) for client-server communication.

Features

  • Gmail: Draft and send emails securely.
  • Google Docs: Append structured content to documents.
  • Generic & Extensible: Exposes strongly-typed tools via the MCP protocol.
  • Cloud-Ready: SSE transport allows remote AI agents to connect seamlessly.

Setup

  1. Google Cloud Configuration:

    • Create a project in Google Cloud Console.
    • Enable the Gmail API and Google Docs API.
    • Create an OAuth 2.0 Client ID for a Web Application or Desktop App.
    • Note the Client ID and Client Secret.
  2. Environment Variables: In your Render Dashboard (or local .env file), configure the following:

    GOOGLE_CLIENT_ID=your-client-id
    GOOGLE_CLIENT_SECRET=your-client-secret
    GOOGLE_REDIRECT_URI=http://localhost:3000/oauth2callback
    TOKEN_STORAGE_PATH=.tokens.json
    LOG_LEVEL=info
    GOOGLE_OAUTH_TOKENS={"access_token":"...","refresh_token":"..."} # Provide this in production
    
  3. Install Dependencies:

    npm install
    
  4. Authentication: Before deploying to production, generate the initial OAuth tokens locally. You can then stringify the .tokens.json file content and set it as the GOOGLE_OAUTH_TOKENS environment variable in Render.

  5. Deploy to Render:

    • Connect your GitHub repository to Render as a Web Service.
    • Render will automatically use the render.yaml blueprint to run npm run build and npm start.
    • Ensure the GOOGLE_OAUTH_TOKENS and Google API credentials are set in the Render Environment Variables tab.
  6. Connecting to the Server: Once deployed, connect your MCP Client (like an AI agent) to the SSE endpoint: https://<your-render-app-url>/sse

Development

Run locally using:

npm run dev

Run tests with npm run test (using Vitest).

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured