
maitreyam/gmail-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MCP 서버는 AI 에이전트를 사용하여 Gmail의 SMTP 서버를 통해 이메일 전송을 위해 fastMCP로 구축했습니다.
개요
MCP 서버는 AI 에이전트를 사용하여 Gmail의 SMTP 서버를 통해 이메일 전송을 위해 fastMCP로 구축했습니다. - Gmail SMTP 를 통해 이메일을 보내 - Gmail 폴더에서 최근 이메일을 읽으십시오 - 이메일 첨부 파일 처리 - 배포 모니터링을위한 건강 체크 엔드 포인트 이 서버는 Smithery에 배포할 수 있습니다. Streamable HTTP 수송을 사용하는 ai. 서버는 다음과 같은 구성 매개 변수가 필요합니다. - smtp username: 귀하의 Gmail 이메일 주소 - smtp password: 귀하의 Gmail 앱 암호 (일반 암호 없음) 서버는 Smithery 배포 모니터링을위한 /health에서 건강 검사 엔드 포인트를 제공합니다. 서버는 포트 5000에 실행하고 컨테이너 배포에 대한 모든 인터페이스 (0.0.0.0)에 바인딩합니다.
개요(AI 번역)
MCP 서버는 AI 에이전트를 사용하여 Gmail의 SMTP 서버를 통해 이메일 전송을 위해 fastMCP로 구축했습니다.
특징
- Gmail SMTP를 통해 이메일 보내기
- Gmail 폴더의 최근 이메일 Fetch
- 핸들 이메일 첨부 파일
- Health check endpoint for 배포 모니터링
Smithery.ai에 배포
이 서버는 Smithery에 배포할 수 있습니다. Streamable HTTP 수송을 사용하는 ai.
윤곽
서버는 다음과 같은 구성 매개 변수를 요구합니다.
smtp_username: Gmail 이메일 주소smtp_password: Gmail 앱 비밀번호(일반 비밀번호)
건강 검사
서버는 Smithery 배포 모니터링을 위해 /health]의 건강 체크 엔드포인트를 제공합니다.
CLAUDE 구성 요소
포트
서버는 포트 5000에 실행하고 컨테이너 배포에 대한 모든 인터페이스 (0.0.0.0)에 바인딩합니다.
지역 개발
-
의존성 설치:
-
환경 변수 설정:
-
서버 실행:
도커
Docker와 빌드 및 실행:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
Gmail-mcp-server
A resilient MCP server built with fastMCP for sending emails through Gmail’s SMTP server using AI agents.
Features
- Send emails via Gmail SMTP
- Fetch recent emails from Gmail folders
- Handle email attachments
- Health check endpoint for deployment monitoring
Deployment on Smithery.ai
This server is configured for deployment on Smithery.ai using Streamable HTTP transport.
Configuration
The server requires the following configuration parameters:
smtp_username: Your Gmail email addresssmtp_password: Your Gmail app password (not your regular password)
Health Check
The server provides a health check endpoint at /health for Smithery deployment monitoring.
CLAUDE CONFIG EXAMPLE
{
"mcpServers": {
"terminal_server": {
"command": "/Users/maitreyamishra/.local/bin/uv",
"args": [
"--directory", "Path to your mcp server file",
"run",
"terminal_server.py"
]
},
"web3_server": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:3000/mcp"
]
},
"gmail_mcp": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8989/mcp"
]
}
}
}
Port
The server runs on port 5000 and binds to all interfaces (0.0.0.0) for container deployment.
Local Development
-
Install dependencies:
pip install -r requirements.txt -
Set environment variables:
export SMTP_USERNAME="[email protected]" export SMTP_PASSWORD="your-app-password" -
Run the server:
python gmail_mcp.py
Docker
Build and run with Docker:
docker build -t gmail-mcp .
docker run -p 5000:5000 -e SMTP_USERNAME=your-email -e SMTP_PASSWORD=your-password gmail-mcp
설치
npx mcp-remote http://localhost:3000/mcp