Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gmail MCP Server (Powered by LIAM)Find any unread emails from my boss about the project update."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gmail MCP Server (Powered by LIAM)
Access Gmail through LIAM's CASA-compliant Google OAuth infrastructure via the Model Context Protocol (MCP).
Overview
This MCP server allows AI agents to interact with Gmail on behalf of authenticated users. All Gmail API calls are routed through LIAM's backend, preserving CASA compliance and security.
Account Type: This MCP creates lightweight "mcp" accounts that provide direct API access without Gmail watch notifications or automatic draft generation (those features are exclusive to full LIAM users).
Features
List Emails - Browse inbox messages with filtering
Get Email - Retrieve full email content
Search Emails - Use Gmail's powerful query syntax
List/Get Threads - Work with conversation threads
List Labels - Access Gmail labels and categories
Get Profile - Retrieve account information
Authentication
Users authenticate via LIAM's OAuth flow, which handles:
Google OAuth consent
Token storage and encryption
Automatic token refresh
CASA compliance
Available Tools
list_emails
List recent emails from the user's inbox.
get_email
Get full email content by message ID.
search_emails
Search using Gmail query syntax.
list_threads / get_thread
Work with conversation threads.
list_labels
Get all Gmail labels.
get_profile
Get Gmail account information.
Gmail Query Syntax
The query parameter supports Gmail's search syntax:
Query | Description |
| From specific sender |
| To specific recipient |
| Subject contains keyword |
| Unread messages |
| Starred messages |
| Has attachments |
| After date |
| Before date |
| In inbox |
| Has specific label |
| Exclude promotions |
Combine queries: from:boss@company.com is:unread has:attachment
Environment Variables
Variable | Description | Required |
| OAuth client ID from LIAM | Yes |
| OAuth client secret from LIAM | Yes |
| LIAM API base URL (default: production) | No |
| Comma-separated scopes (default: gmail.readonly) | No |
Deployment
Dedalus Labs Marketplace
Fork this repository
Connect to Dedalus Dashboard
Configure environment variables
Deploy and publish
Local Development
Security
All Gmail API calls go through LIAM's CASA-compliant backend
Tokens are encrypted at rest (AES-256-GCM)
OAuth tokens never touch the MCP server directly
Protected by Cloudflare infrastructure
Support
Documentation: docs.doitliam.com
Issues: GitHub Issues
Email: support@doitliam.com
License
MIT License - see LICENSE file for details.