MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

🚀 All-in-One Google MCP

创建于 3/30/2026
更新于 about 4 hours ago
Repository documentation and setup instructions

🚀 All-in-One Google MCP 🚀

All-in-One Google MCP

Stars Forks Issues MIT License Visitors

A unified, high-performance Model Context Protocol (MCP) backend powered by Google Apps Script (GAS). This tool allows LLMs (like Antigravity, Gemini, ChatGPT, and Claude) to interact directly with your Google Workspace services with zero local overhead.


✨ Features

  • 📧 Gmail: List threads, search emails, get details, send replies, archive, delete, and Bulk Emailing.
  • 📁 Drive: List files, search, create/update/delete files and folders, and share.
  • 📅 Calendar: Manage events, search by date range, create/update/delete.
  • ✅ Tasks: Unified task management (List, Create, Update, Delete).
  • 📊 Sheets: Read, write, append, and clear spreadsheet data.
  • 📝 Docs: Create, read, and append to Google Documents.
  • 🛡️ MCP Compliant: Uses standard JSON-RPC protocol and valid tool naming (underscores).

🛠️ Connection & Setup

🔗 Using mcp-remote (Recommended)

The easiest way to connect your LLM client to this backend is using mcp-remote. Add the following configuration to your MCP settings file (e.g., mcp_config.json for Antigravity or Desktop App):

{
  "mcpServers": {
    "google-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID/exec?key=YOUR_API_KEY"
      ],
      "disabledTools": []
    }
  }
}

[!IMPORTANT] Tool Naming: All tools use underscore separation (e.g., gmail_listThreads) to comply with strict MCP name validation regex (^[a-zA-Z0-9_-]{1,64}$).

[!TIP] Replace the URL with your own deployment URL if you are hosting your own instance.


💻 Platform Setup

🌌 Antigravity / Gemini Desktop

  1. Open your mcp_config.json.
  2. Add the google-mcp configuration block shown above.
  3. Restart the application or refresh the MCP server list.

💻 VS Code (MCP Client)

If you are using an MCP-compatible extension in VS Code:

  1. Locate the extension's configuration for MCP servers.
  2. Add the npx mcp-remote command and your Web App URL.

🌐 Other Clients & Platforms

Since this is a standard MCP server reached via mcp-remote, it works with any client that supports the Model Context Protocol, including:

  • Claude Desktop
  • Custom MCP Proxies
  • Self-hosted LLM interfaces

📝 Usage & Example Prompts

Once connected, you can ask your AI to perform tasks across Google Workspace. Here are some examples:

  • Gmail: "Read my latest email and summarize it."
  • Bulk Email: "Send a personalized welcome email to this list of 5 users: [list]."
  • Calendar: "Do I have any meetings tomorrow?" or "Schedule a 'Focus Time' from 2 PM to 4 PM today."
  • Sheets: "Read the first 10 rows of the 'Budget' spreadsheet."
  • Docs: "Create a new document called 'Project Notes' and add a summary of our discussion."
  • Tasks: "List my pending tasks for today."

📊 Quotas & Limits

Google Apps Script has daily quotas that are generous for individual use but worth noting:

| Service | Consumer (@gmail.com) | Workspace | | :--- | :--- | :--- | | URL Fetch | 20,000 / day | 100,000 / day | | Email Send | 100 recipients / day | 1,500 recipients / day | | Triggers Runtime | 90 min / day | 6 hours / day | | Simultaneous Executions | 30 | 30 |

[!NOTE] Each script execution has a hard limit of 6 minutes. Large batch operations should be broken down into smaller chunks.


⚙️ Backend Installation (Self-Hosting)

  1. Create a New Script: Go to script.google.com and create a new project.
  2. Add Code: Copy the content of Code.gs from this repository and paste it into the editor.
  3. Update Manifest: Switch to the appsscript.json tab (enable it in Settings if hidden) and paste the manifest content.
  4. Set API Key: In Project Settings, add a Script Property MCP_API_KEY with your secret key.
  5. Deploy: Click Deploy > New Deployment > Web App. Set Access to "Anyone".

🛡️ Security

This project uses a simple API Key authentication mechanism passed via the key query parameter or apiKey JSON field. Keep your Deployment URL secret.

🤝 Contributing

Contributions are welcome! If you'd like to improve this project, please follow these steps:

  1. Fork the repository.
  2. Create a new Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

Please ensure your code follows the existing style and includes appropriate documentation.

📄 License

MIT © SH20RAJ

快速设置
此服务器的安装指南

安装包 (如果需要)

npx @modelcontextprotocol/server-google-mcp

Cursor 配置 (mcp.json)

{ "mcpServers": { "sh20raj-google-mcp": { "command": "npx", "args": [ "sh20raj-google-mcp" ] } } }