yagms
@acro5piano
yagms について
Yet Another Gmail MCP Server
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"yagms": {
"command": "bun",
"args": [
"run",
"build-gmail",
"#",
"It",
"will",
"emit",
"./dist/gmail.js"
]
}
}
}ツール
3`senderEmail` (optional): Filter by sender email
`emailId`: The ID of the email to retrieve
`query`: Gmail search query (e.g., "from:[email protected] has:attachment")
概要
What is yagms?
yagms is a Gmail MCP server that provides tools to interact with your Gmail account through the Model Context Protocol (MCP). It is built with Bun and allows AI assistants to read, search, and manage Gmail data.
How to use yagms?
First, create OAuth credentials in Google Cloud Console and save them as ~/.yagms-oauth.keys.json. Then build the project with bun install and bun run build-gmail. Run bun run dist/gmail.js auth to authenticate, then start the server with bun run src/gmail.ts. Configure MCP to point to the built dist/gmail.js file.
Key features of yagms
- List emails with optional sender, max results, and label filters
- Retrieve a specific email by its ID
- Search emails using Gmail search syntax (e.g.,
from:[email protected] has:attachment) - Get all Gmail labels from your account
- Customizable OAuth and credentials file paths via environment variables
Use cases of yagms
- Automatically fetch recent emails from a specific sender
- Summarize the content of an important email by its ID
- Search for emails with attachments or from a particular domain
- Retrieve all Gmail labels for organization or filtering purposes
- Integrate email reading capabilities into an AI assistant workflow
FAQ from yagms
What dependencies does yagms require?
yagms requires Bun to build and run, and a Google Cloud project with the Gmail API enabled and OAuth 2.0 credentials.
How do I authenticate with my Gmail account?
Run bun run dist/gmail.js auth which opens a browser for Google sign-in and saves credentials to ~/.yagms-credentials.json. You can customize the paths with GMAIL_OAUTH_PATH and GMAIL_CREDENTIALS_PATH.
Where are authentication files stored?
OAuth keys default to ~/.yagms-oauth.keys.json and credentials default to ~/.yagms-credentials.json. Both paths are configurable via environment variables.
Does yagms support any transport besides stdio?
The README only shows a command-line MCP configuration using bun runtime; it does not mention HTTP or other transports. The server is designed for local stdio-based MCP communication.
What are the available tools?
yagms provides four tools: list-emails, get-email, search-emails, and get-labels. Each has documented parameters as shown in the README.
「その他」の他のコンテンツ
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
Awesome-MCP-ZH
yzflyMCP 资源精选, MCP指南,Claude MCP,MCP Servers, MCP Clients
コメント