What dependencies does yagms require?
yagms requires [Bun](https://bun.sh) to build and run, and a Google Cloud project with the Gmail API enabled and OAuth 2.0 credentials.
@acro5piano
Basic information
Yet Another Gmail MCP Server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"yagms": {
"command": "bun",
"args": [
"run",
"build-gmail",
"#",
"It",
"will",
"emit",
"./dist/gmail.js"
]
}
}
}`senderEmail` (optional): Filter by sender email
`emailId`: The ID of the email to retrieve
`query`: Gmail search query (e.g., "from:example@gmail.com has:attachment")
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.
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.
from:example@gmail.com has:attachment)yagms requires [Bun](https://bun.sh) to build and run, and a Google Cloud project with the Gmail API enabled and OAuth 2.0 credentials.
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`.
OAuth keys default to `~/.yagms-oauth.keys.json` and credentials default to `~/.yagms-credentials.json`. Both paths are configurable via environment variables.
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.
yagms provides four tools: `list-emails`, `get-email`, `search-emails`, and `get-labels`. Each has documented parameters as shown in the README.
Hindsight: Agent Memory That Learns

Model Context Protocol Servers
๐ The fast, Pythonic way to build MCP servers and clients.

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student โ in a fraction of the time. What once took a week, now takes one free period.

Soar Flight Booking MCP is a remote MCP server available at https://mcp.soar.flights.
Comments