Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GMAIL_SCOPES | No | Comma-separated OAuth scopes (default is https://www.googleapis.com/auth/gmail.readonly). | https://www.googleapis.com/auth/gmail.readonly |
| GMAIL_TOKEN_PATH | No | Token file location (default ~/.config/gmail-mcp/tokens.json). | ~/.config/gmail-mcp/tokens.json |
| GMAIL_ACCESS_TOKEN | No | Manual override for authentication. If set, this token overrides all other OAuth logic. | |
| GOOGLE_OAUTH_CREDENTIALS | No | Absolute path to the downloaded Google OAuth client JSON file (Desktop app type). |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |