G5

gx-55/multi-gmail-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

19 stars 12 forks 품질 79 트렌드 30MIT

모형 Context Protocol (MCP) 서버는 동시에 할 수 있습니다. 공식 Anthropic MCP 등록 및 npm에 게시 됨.

개요

모형 Context Protocol (MCP) 서버는 동시에 할 수 있습니다. 공식 Anthropic MCP 등록 및 npm에 게시 됨. - 연결 - 개인, 일, 측면 프로젝트 - 전체 Gmail 검색 문법을 사용하여 모든 inbox - MIME 파싱과 완벽한 이메일 - , , 및 - 레이블과 함께 : 추가, 제거, 목록, 아카이브 - - - 토큰은 로컬로 저장 ~ / .gmail-mcp-tokens.db - git에 투입되지 않음 - 자동 반송 OAuth 토큰 조용히 - 노드.js >= 22.5.0 - Gmail API를 사용하여 Google Cloud 프로젝트 - Claude Desktop 이 두 개의 글로벌 명령을 등록: gmail-mcp (MCP 서버) 및 gmail-mcp-cli (계정 관리자). 1. console.cloud.google.com로 이동 → 프로젝트 2를 만듭니다. (APIs & Services → Library) 3. 구성 - 외부, 테스트 사용자로 Gmail 주소를 추가 4. 범위 추가: gmail.readonly, gmail.send, gmail.modify, gmail.labels 5. OAuth 자격 증명 → JSON 6. 다운로드 ~/.gmail-mcp-oauth에 저장하십시오.

개요(AI 번역)

Claude Desktop은 여러 Gmail 계정을 동시에 관리할 수 있는 Model Context Protocol (MCP) 서버입니다. 공식 Anthropic MCP 등록 및 npm에 게시 됨.


특징

  • Connectunlimited Gmail 계정 - 개인, 일, 사이드 프로젝트 -Search 전체 Gmail 검색 구문을 사용하여 어떤 inbox
  • Read MIME parsing과의 완벽한 이메일
  • Send, ** 스레드에 가해 **, ** 생성 초안 ** -Organize 레이블: 추가, 제거, 목록, 아카이브 -Mark 읽음 / 읽음
  • ~/.gmail-mcp-tokens.db]에서 로컬로 저장되는 토큰 - git에 절대 투입되지 않음
  • Auto-refreshes OAuth 토큰 조용히

요구 사항

  • 노드.js >= 22.5.0
  • Gmail API를 사용한 Google Cloud 프로젝트
  • Claude 데스크탑

설치

이 두 개의 글로벌 명령을 등록: gmail-mcp (MCP 서버) 및 gmail-mcp-cli (계정 관리자).


구글 클라우드 설정

한 번만 할 필요가 있습니다.

  1. console.cloud.google.com로 이동 → 프로젝트 만들기
  2. Gmail API (APIs & Services → Library) 사용
  3. **OAuth 동의 화면 구성 ** - 외부, 테스트 사용자로 Gmail 주소를 추가
  4. 범위를 추가하십시오: gmail.readonly, gmail.send], gmail.modify], `gmail.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

multi-gmail-mcp

A Model Context Protocol (MCP) server that lets Claude Desktop manage multiple Gmail accounts simultaneously. Listed on the official Anthropic MCP registry and published on npm.


Features

  • Connect unlimited Gmail accounts — personal, work, side projects
  • Search any inbox using full Gmail search syntax
  • Read complete emails with MIME parsing
  • Send, reply in thread, and create drafts
  • Organize with labels: add, remove, list, archive
  • Mark as read / unread
  • Tokens stored locally in ~/.gmail-mcp-tokens.db — never committed to git
  • Auto-refreshes OAuth tokens silently

Requirements

  • Node.js >= 22.5.0
  • A Google Cloud project with the Gmail API enabled
  • Claude Desktop

Installation

npm install -g multi-gmail-mcp

This registers two global commands: gmail-mcp (the MCP server) and gmail-mcp-cli (account manager).


Google Cloud Setup

You only need to do this once.

  1. Go to console.cloud.google.com → create a project
  2. Enable the Gmail API (APIs & Services → Library)
  3. Configure the OAuth consent screen — External, add your Gmail addresses as test users
  4. Add scopes: gmail.readonly, gmail.send, gmail.modify, gmail.labels
  5. Create a Desktop app OAuth credential → download the JSON
  6. Save it to ~/.gmail-mcp-oauth.json

Alternatively, set environment variables in the Claude Desktop config (see below).


Authenticating Gmail Accounts

# Add accounts (opens browser for Google sign-in)
gmail-mcp-cli add [email protected]
gmail-mcp-cli add [email protected]

# List authenticated accounts
gmail-mcp-cli list

# Remove an account
gmail-mcp-cli remove [email protected]

Tokens are saved to ~/.gmail-mcp-tokens.db and refreshed automatically.


Claude Desktop Configuration

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "multi-gmail": {
      "command": "gmail-mcp"
    }
  }
}

If you prefer environment variables over ~/.gmail-mcp-oauth.json:

{
  "mcpServers": {
    "multi-gmail": {
      "command": "gmail-mcp",
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Restart Claude Desktop after saving. Click the hammer icon to confirm 19 tools are loaded.


Available Tools

Account Management

Tool Description
list_accounts List all authenticated Gmail accounts
initiate_auth Start OAuth flow — returns a URL to open in browser
complete_auth Finalize auth after completing Google sign-in
remove_account Remove an account and its stored credentials

Reading Email

Tool Description
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "multi-gmail": { "command": "gmail-mcp" } } }