返回 Skill 列表
extension
分类: 开发与工程无需 API Key

julien-mcp-gmail

安装Gmail MCP以进行邮件操作。当用户需要Gmail读取/发送功能时使用。

person作者: jakexiaohubgithub

MCP Gmail Installer

This skill installs the Gmail MCP server into the current project.

Installation Procedure

When the user asks to install Gmail MCP:

  1. Check for existing .mcp.json in the project root
  2. Merge configuration - Add this server to mcpServers:
{
  "gmail": {
    "command": "node",
    "args": ["${ONEDRIVE_MCP_PATH}/Gmail-MCP-Server/dist/index.js"]
  }
}
  1. If .mcp.json doesn't exist, create it with the full structure:
{
  "mcpServers": {
    "gmail": {
      "command": "node",
      "args": ["${ONEDRIVE_MCP_PATH}/Gmail-MCP-Server/dist/index.js"]
    }
  }
}

Environment Variables Required

  • ONEDRIVE_MCP_PATH: Path to MCP servers folder

Prerequisites

  • Node.js installed
  • Gmail OAuth credentials configured

Usage After Installation

Restart Claude Code to activate the MCP server.

Example Usage

After installation, use in Claude Code:

"Read my latest 5 emails"
"Send an email to user@example.com"

Skill Chaining

  • Input: User request to install Gmail MCP
  • Output: Configured .mcp.json with gmail server
  • Tools Used: Read, Edit, Write
  • Chains With: Outlook MCP for multi-provider email

Troubleshooting

| Problem | Solution | |---------|----------| | OAuth error | Re-run Gmail OAuth setup, check credentials.json | | Path not found | Verify ONEDRIVE_MCP_PATH environment variable | | Server crash | Check dist/index.js exists, rebuild if needed | | Permission denied | Ensure OAuth scopes include required permissions |