MG

mohalmah/google-appscript-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

57 stars 20 forks 质量 68 趋势 13

mohalmah/google-appscript-mcp-server 是从 https://github.com/mohalmah/google-appscript-mcp-server. 导入的 MCP 服务器候选

概览

mohalmah/google-appscript-mcp-server 是从 https://github.com/mohalmah/google-appscript-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

作者:mohalmah 许可:麻省理工许可 仓库: google-apps-script-mcp-server

欢迎来到 Google Apps Script MCP(模型上下文协议)服务器!🚀

该 MCP 服务器与 Google Apps Script API 集成,允许您通过任何兼容 MCP 的客户端(如 Claude Desktop、VS Code with Cline 或 Postman)管理脚本项目、部署、版本和执行。

📋 目录

  • 概述
  • 特色
  • 先决条件
  • 快速入门指南
  • 详细的设置说明
  • 可用工具
  • 脚本授权
  • MCP客户端配置
  • 故障排除
  • 高级用法

🌟 概述

该MCP服务器通过以下方式实现与Google Apps Script的无缝交互:

  • ✅ OAuth 2.0 认证 - 带自动刷新的安全令牌管理
  • ✅ 16 综合工具 - 完整的 Google Apps Script API 覆盖
  • ✅ MCP 协议合规 - 支持 Claude Desktop、VS Code 及其他 MCP 客户端
  • ✅ 安全令牌存储 - 操作系统专用的安全更新令牌存储
  • ✅ 自动令牌刷新 - 自动处理令牌过期
  • ✅ 详细日志 - 全面的错误处理和调试

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Google Apps Script MCP Server

Author: mohalmah
License: MIT License
Repository: google-apps-script-mcp-server

Welcome to the Google Apps Script MCP (Model Context Protocol) Server! 🚀

This MCP server provides comprehensive integration with the Google Apps Script API, allowing you to manage script projects, deployments, versions, and executions through any MCP-compatible client like Claude Desktop, VS Code with Cline, or Postman.

📋 Table of Contents

🌟 Overview

This MCP server enables seamless interaction with Google Apps Script through:

  • ✅ OAuth 2.0 Authentication - Secure token management with automatic refresh
  • ✅ 16 Comprehensive Tools - Complete Google Apps Script API coverage
  • ✅ MCP Protocol Compliance - Works with Claude Desktop, VS Code, and other MCP clients
  • ✅ Secure Token Storage - OS-specific secure storage for refresh tokens
  • ✅ Auto Token Refresh - Handles token expiration automatically
  • ✅ Detailed Logging - Comprehensive error handling and debugging

🎥 Demo Video

Watch the Google Apps Script MCP Server in action - creating projects, managing deployments, and executing scripts through VS Code AI Agent.

🚀 Features

Core Capabilities

  • Project Management: Create, retrieve, and update Google Apps Script projects
  • Deployment Management: Create, list, update, and delete script deployments
  • Version Control: Create and manage script versions
  • Content Management: Get and update script content and files
  • Process Monitoring: List and monitor script execution processes
  • Metrics Access: Retrieve script execution metrics and analytics
  • Script Execution: Run Google Apps Script functions remotely

Security Features

  • OAuth 2.0 Flow: Full Google OAuth implementation
  • Secure Token Storage: Refresh tokens stored in OS keychain/credential manager
  • Automatic Token Refresh: No manual token management required
在 GitHub 查看完整 README

安装

docker run --rm -i -e GOOGLE_APP_SCRIPT_API_CLIENT_ID=your_client_id -e GOOGLE_APP_SCRIPT_API_CLIENT_SECRET=your_client_secret -v google-appscript-tokens:/home/app/.config/google-apps-script-mcp google-appscript-mcp:latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "google-apps-script": { "command": "node", "args": ["/path/to/google-appscript-mcp-server/mcpServer.js"], "env": { "GOOGLE_APP_SCRIPT_API_CLIENT_ID": "your_client_id", "GOOGLE_APP_SCRIPT_API_CLIENT_SECRET": "your_client_secret" } } } }