gmail-labels-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GOOGLE_CLIENT_ID | Yes | OAuth2 client ID from Google Cloud Console | |
| GOOGLE_CLIENT_SECRET | Yes | OAuth2 client secret from Google Cloud Console |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gmail_list_labelsA | List all labels (tags) in the Gmail account. Returns both system labels (INBOX, SENT, TRASH, etc.) and user-created labels. Use this to find label IDs needed for add/remove operations. Returns: List of labels with their IDs, names, types, and message counts. Examples:
|
| gmail_create_labelA | Create a new user label (tag) in Gmail. Args:
Returns: The created label with its ID, name, and visibility settings. Examples:
|
| gmail_delete_labelA | Delete a user-created label from Gmail. System labels cannot be deleted. Args:
Note: Deleting a label removes it from all messages but does not delete the messages. Examples:
|
| gmail_modify_message_labelsA | Add or remove labels (tags) on a specific Gmail message. Args:
Use gmail_list_labels to find label IDs. Common system label IDs:
Returns: Updated message with its current label IDs. Examples:
|
| gmail_modify_thread_labelsA | Add or remove labels on all messages in a Gmail thread at once. Args:
Returns: Updated thread with message count and affected message IDs. Examples:
|
| gmail_get_message_labelsA | Retrieve the current labels on a specific Gmail message. Args:
Returns: Message metadata including subject, snippet, and current label IDs. Examples:
|
| gmail_bulk_label_by_searchA | Search Gmail messages using a query and apply label changes to all matching messages. Args:
Common query examples:
Returns: Count of messages updated and their IDs. Examples:
|
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/YimingYAN/gmail-labels-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server