MCP Headless Gmail Server is a Model Context Protocol server that provides headless Gmail access without local credential setup, enabling remote email retrieval and sending through Docker or NPM deployment.
Refreshes Google access tokens using client credentials or refresh tokens.
Retrieves recent emails with the first 1k characters of each email body.
Retrieves full email body content in 1k chunks using an offset parameter.
Sends emails through Gmail with specified recipients, subject, and body content.
{
"mcpServers": {
"gmail": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"buryhuang/mcp-headless-gmail:latest"
]
}
}
}