
diegomaldonadorosas/gmail-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
여러 Gmail 계정과 Google 캘린더를 Claude 데스크톱에 연결하는 로컬 모델 Context Protocol (MCP) 서버. 기계에 완전히 실행 - 필요 클라우드 호스팅 없음.
개요
여러 Gmail 계정과 Google 캘린더를 Claude 데스크톱에 연결하는 로컬 모델 Context Protocol (MCP) 서버. 기계에 완전히 실행 - 필요 클라우드 호스팅 없음. - - Gmail의 전체 쿼리 구문과 동시에 모든 계정에서 검색 - 필요한만큼 많은 Gmail 또는 Google Workspace 계정으로 연결 - - 개별 메시지와 전체 스레드를 읽으십시오 - 작곡 및 이메일 보내기, 또는 어떤 계정에서 초안을 저장하십시오 - - 목록 라벨, 읽기 / 읽기, 별 메시지로 표시 - - 목록 캘린더, 다가오는 이벤트를 검색, 키워드로 검색 - macOS (MacOS 14+에서 테스트) - Python 3.11+ - Gmail API 및 Calendar API를 사용하여 Google Cloud 프로젝트 (무료) - Claude Desktop 가상 환경을 만들고 모든 Python 의존성을 설치합니다. config 예제를 복사하고 계정에서 채우기: 계정 키 (개인, 일)은 특정 계정과 상호 작용할 때 사용할 수있는 이름입니다. 1. Google Cloud 콘솔로 이동 2.
개요(AI 번역)
여러 Gmail 계정과 Google 캘린더를 Claude 데스크톱에 연결하는 로컬 모델 Context Protocol (MCP) 서버. 기계에 완전히 실행 - 필요 클라우드 호스팅 없음.
특징
- Multiple 계정 - Gmail 또는 Google Workspace 계정으로 연결 -Unified email search — Gmail의 전체 쿼리 문법과 동시에 모든 계정에서 검색 -Full read access - 개별 메시지 및 전체 스레드를 읽으십시오. -Send & draft — compose and send email, or save 초안, 어떤 계정에서
- ** 라벨 관리 ** - 목록 라벨, 읽기/읽기, 별 메시지로 표시
- **Google 캘린더 ** - 목록 캘린더, 다가오는 이벤트를 찾아 키워드로 검색
요구 사항
- macOS (MacOS 14+ 테스트)
- 파이썬 3.11+
- Gmail API 및 Calendar API를 사용한 Google Cloud 프로젝트 (무료)
- Claude 데스크탑
설치
##1. 저장소를 복제
##2. 설정 스크립트 실행
가상 환경을 만들고 모든 Python 의존성을 설치합니다.
##3. 계정 구성
config 예제를 복사하고 계정에서 채우기:
편집 config.json:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Gmail & Calendar Multi-Account MCP Server
A local Model Context Protocol (MCP) server that connects multiple Gmail accounts and Google Calendars to Claude Desktop. Runs entirely on your machine — no cloud hosting required.
Features
- Multiple accounts — connect as many Gmail or Google Workspace accounts as you need
- Unified email search — search across all accounts simultaneously with Gmail’s full query syntax
- Full read access — read individual messages and entire threads
- Send & draft — compose and send emails, or save drafts, from any account
- Label management — list labels, mark as read/unread, star messages
- Google Calendar — list calendars, browse upcoming events, search by keyword
Requirements
- macOS (tested on macOS 14+)
- Python 3.11+
- A Google Cloud project with the Gmail API and Calendar API enabled (free)
- Claude Desktop
Installation
1. Clone the repository
git clone https://github.com/DiegoMaldonadoRosas/gmail-mcp.git
cd gmail-mcp
2. Run the setup script
bash setup.sh
This creates a virtual environment and installs all Python dependencies.
3. Configure your accounts
Copy the example config and fill in your accounts:
cp config.json.example config.json
Edit config.json:
{
"accounts": {
"personal": {
"email": "[email protected]",
"description": "Personal Gmail"
},
"work": {
"email": "[email protected]",
"description": "Work account"
}
},
"credentials_dir": "./credentials"
}
The account keys (personal, work) are the names you’ll use when asking Claude to interact with a specific account.
4. Get Google OAuth credentials
- Go to Google Cloud Console
- Create a project and enable both the Gmail API and the Google Calendar API
- Go to APIs & Services → Credentials → + Create Credentials → OAuth 2.0 Client ID
- Choose Desktop app as the application type
- Download the JSON file and save it as
credentials/client_secret.json - Go to APIs & Services → OAuth consent screen → Test users and add every email address you configured in
config.json
5. Authenticate your accounts
source .venv/bin/activate
python setup_auth.py
A browser window will open for each account. Sign in with the correct Google account. Tokens are saved locally and refreshed automatically — you only need to do this once per account.
Note: If you previously authenticated for Gmail only, you must re-run
setup_auth.pyafter adding Calendar support so the tokens include the new Calendar permissions.
6. Add the server to Claude Desktop
Open ~/Library/Application Support/Claude/claude_desktop_config.json and add:
{
"mcpServers": {
"gmail": {
"command": "/absolute/path/to/gmail-mcp/.venv/bin/python",
"args": ["/absolute/path/to/gmail-mcp/server.py"]
}
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"gmail": {
"command": "/absolute/path/to/gmail-mcp/.venv/bin/python",
"args": ["/absolute/path/to/gmail-mcp/server.py"]
}
}
}