Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

authenticate

Log in to an IMAP email account with username and password to enable email reading, searching, and organization through the IMAP MCP Server.

Instructions

Login with username and password

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesEmail username
passwordYesEmail password or app password
smtpHostNoSMTP server hostname (optional, for drafts)
smtpPortNoSMTP port (default: 587)

Implementation Reference

  • The authenticate method in ImapClientWrapper logs the IMAP client into the server using the provided username and password.
    def authenticate(self, username: str, password: str) -> bool:
        """Login with username and password."""
        if not self.client:
            raise RuntimeError("Not connected. Call connect() first.")
        self.client.login(username, password)
        return True

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soundhannes/IMAP-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server