Basic information
About Mcp Server
## MCP Gmail Server
Mcp Server is a MCP server in the Other category listed in the AddMCP.net directory, published by trasousa. It exposes 2 tools, including list_unread, search_emails. Supported transport: stdio. Runtime: python. License: Apache-2.0 license. Source code is hosted on github.com. Related topics: gmail, mcp, mcp-server.
Setup
{
"mcpServers": {
"mcp-server-trasousa": {
"command": "uv",
"args": [
"pip",
"install",
"mcpo"
]
}
}
}
{
"mcpServers": {
"mcp-server-trasousa": {
"command": "uv",
"args": [
"pip",
"install",
"mcpo"
]
}
}
}
{
"servers": {
"mcp-server-trasousa": {
"command": "uv",
"args": [
"pip",
"install",
"mcpo"
]
}
}
}
Mcp Server — by trasousa config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-trasousa": {
"command": "uv",
"args": [
"pip",
"install",
"mcpo"
]
}
}
}
Mcp Server — by trasousa tools
- list_unread — tool to retrieve unread Gmail message snippets.
- search_emails — tool to search by Gmail query.
Overview
What is Mcp Server?
It is an MCP (Model Context Protocol) server for Gmail that exposes tools like list_unread and search_emails over the MCP protocol. It handles OAuth2 authentication with Google and is designed for integration with MCP clients such as Open WebUI.
How to use Mcp Server?
Install dependencies with uv, place OAuth2 credentials in secrets/credentials.json, then run with uv run gmail-server. Alternatively, expose via mcpo using uvx mcpo --port 8000 --api-key "your-api-key" -- uv run gmail-server. Use any MCP‑compliant client to invoke the tools.
Key features of Mcp Server
list_unreadtool to retrieve unread Gmail message snippets.search_emailstool to search by Gmail query.- Seamless OAuth2 flow with token caching.
- Asyncio‑based server compatible with MCP clients.
- Can be wrapped with
mcpofor HTTP/OpenAPI endpoints.
Use cases of Mcp Server
- Quickly check unread emails through an AI assistant.
- Search for specific emails by sender or subject.
- Integrate Gmail functionality into Open WebUI workflows.
- Deploy as a containerized service using Docker.
Frequently asked questions
1 What tools does the server provide?
Two tools: list_unread (returns unread email snippets) and search_emails (returns emails matching a Gmail query).
2 What are the prerequisites?
Python 3.13 or newer, uv package manager, a Google account, and access to Google Cloud Console for Gmail API credentials.
3 How do I set up Gmail API credentials?
Create a project in Google Cloud Console, enable the Gmail API, configure an OAuth consent screen with your email as a test user, create an OAuth client ID for a desktop app, and place the downloaded JSON as secrets/credentials.json.
4 How do I run the server?
Run uv run gmail-server directly, or expose via mcpo with uvx mcpo --port 8000 --api-key "your-api-key" -- uv run gmail-server. The first run will prompt OAuth authorization in the browser.
5 Where are OAuth tokens stored?
A cached token is automatically saved to secrets/token.json after the first authorization, so subsequent runs do not require re‑authentication.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In