mailport
Provides tools for interacting with the Gmail API, enabling listing and retrieving messages and threads, listing and creating labels, sending messages, creating drafts, modifying message labels, and trashing messages.
Authenticates against Google's Gmail API using a Google OAuth access token, with an optional override of the Gmail API base URL.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mailport
Gmail messages, threads and labels as MCP tools, talking to the Gmail API. mailport is a clean-room rebuild of the core surface of the Gmail reference MCP server, under a new name: fresh code written from the public Gmail API documentation, no copied branding.
Tools (core subset, 10)
list_messages, get_message, list_threads, get_thread,
list_labels, send_message, create_draft, modify_message,
trash_message, create_label.
Label update/delete, draft get/update/delete/send, message delete and batchModify, history, profile/settings/watch, and attachment downloads from the wider Gmail surface are not in this subset.
Related MCP server: Moist
Setup
Set a Google OAuth access token:
export GOOGLE_ACCESS_TOKEN=ya29....Optionally override the API base with GMAIL_API_URL
(default https://gmail.googleapis.com/gmail/v1). Without the token,
every tool call fails with an error naming the missing variable.
CLI
npx @reneturcios/mailport list_messages '{"query":"in:inbox","max_results":5}'
npx @reneturcios/mailport mcp # stdio MCP serverEach tool name is a subcommand taking one JSON object argument.
MCP client config
{
"mcpServers": {
"mailport": {
"command": "npx",
"args": ["-y", "@reneturcios/mailport", "mcp"],
"env": { "GOOGLE_ACCESS_TOKEN": "ya29...." }
}
}
}Docker
docker run -i -e GOOGLE_ACCESS_TOKEN ghcr.io/cloudcorprecords/mailportDevelopment
npm install
npm run build
npm testLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage authorized OlaMail inboxes, messages, and email drafts through secure OAuth MCP tools.
Manage Gmail messages, threads, labels, drafts, and settings from your workflows. Send and organiz…
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Gmail through the MCP protocol, supporting sending, reading, searching, replying, forwarding, managing drafts and labels, and saving attachments.5 npm3MIT
- AlicenseNot gradedqualityDmaintenanceEnables Gmail operations such as reading, sending, searching, and managing emails, threads, labels, and drafts via MCP tools.1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Gmail accounts via MCP, providing tools for listing labels, searching, reading, drafting, and sending emails with OAuth2 authentication.-
- FlicenseNot gradedqualityDmaintenanceEnables reading, searching, sending, and drafting Gmail emails via MCP tools, with support for multiple accounts and background notifications.-