# Julien MCP Gmail

> Install Gmail MCP for email operations. Use when user needs Gmail read/send capabilities.

- Skill: `majiayu000/julien-mcp-gmail` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/julien-mcp-gmail`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/julien-mcp-gmail/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/julien-mcp-gmail

---


# 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`:

```json
{
  "gmail": {
    "command": "node",
    "args": ["${ONEDRIVE_MCP_PATH}/Gmail-MCP-Server/dist/index.js"]
  }
}
```

3. **If `.mcp.json` doesn't exist**, create it with the full structure:

```json
{
  "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 |

