Email Triage MCP
Integrates with Atlassian's ecosystem to create Jira tasks and manage issues directly from processed email content.
Enables comprehensive email management including reading, searching, classifying, and acting on emails via the Gmail API.
Utilizes Google's infrastructure for Gmail API connectivity and secure OAuth2-based authentication.
Requires configuration in the Google Cloud Console to enable API access and manage OAuth 2.0 Client credentials.
Allows for the automated creation of Jira issues from email threads, with support for custom priorities, due dates, and descriptions.
Enables the creation of Linear issues and tasks from action items extracted from emails.
Facilitates the transformation of email content into Todoist tasks to streamline personal or team productivity.
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., "@Email Triage MCPSummarize my unread emails and create Linear tasks for action items"
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.
@truss-dev/email-triage-mcp
Agentic email triage for Claude Code. Classify, extract tasks, auto-label, and manage your inbox — all from your AI agent.
This MCP server connects to Gmail and gives Claude Code (or any MCP-compatible agent) the ability to read, classify, search, and act on your email. No external AI APIs needed — classification runs locally using rule-based pattern matching. Your agent provides the intelligence; this server provides the data.
Installation
npm install -g @truss-dev/email-triage-mcpClaude Code Configuration
Add to your ~/.claude/settings.json or claude_desktop_config.json:
{
"mcpServers": {
"email-triage": {
"command": "truss-email-triage",
"env": {
"GMAIL_CLIENT_ID": "your-client-id",
"GMAIL_CLIENT_SECRET": "your-client-secret",
"TRUSS_LICENSE_KEY": "truss_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}Gmail Setup
1. Create OAuth Credentials
Go to Google Cloud Console
Create a new project (or select existing)
Enable the Gmail API under APIs & Services > Library
Go to APIs & Services > Credentials > Create Credentials > OAuth 2.0 Client ID
Application type: Desktop app
Copy the Client ID and Client Secret
2. Set Environment Variables
export GMAIL_CLIENT_ID="your-client-id.apps.googleusercontent.com"
export GMAIL_CLIENT_SECRET="your-client-secret"3. Authorize
Once the MCP server is running in Claude Code, use the authorize_gmail tool:
Call
authorize_gmailwith no arguments — it returns an authorization URLOpen that URL in your browser, sign in, and grant access
Copy the authorization code
Call
authorize_gmailwithcode: "the-code-you-got"
Tokens are stored locally at ~/.truss/gmail-tokens.json and refresh automatically.
Tools Reference
Free Tier (10 classifications/day)
classify_email
Classify an email by intent.
Parameter | Type | Required | Description |
| string | yes | Gmail message ID |
Returns: Category (action_required, fyi, meeting_request, sales_pitch, support_ticket, newsletter, personal), confidence score, reasoning, and all category scores.
extract_action_items
Extract action items and deadlines from an email.
Parameter | Type | Required | Description |
| string | yes | Gmail message ID |
Returns: List of action items with description, deadline, priority, and assignee.
get_email_digest
Get a prioritized digest of all unread inbox emails.
Parameter | Type | Required | Description |
| number | no | Max emails to process (default 25) |
Returns: Sorted list of unread emails with classification, priority, and action items.
search_emails
Search across emails using Gmail query syntax.
Parameter | Type | Required | Description |
| string | yes | Gmail search query |
| number | no | Max results (default 10) |
Returns: Matching emails with metadata and snippets.
Pro Tier ($25/mo — unlimited)
create_task
Create tasks in Linear, Jira, or Todoist from email content.
Parameter | Type | Required | Description |
| string | yes | Gmail message ID |
| string | yes |
|
| string | no | Override auto-generated title |
| string | no | Override auto-generated description |
| string | no |
|
| string | no | YYYY-MM-DD format |
auto_label
Automatically label and archive emails based on classification.
Parameter | Type | Required | Description |
| string | yes | Gmail message ID |
| boolean | no | Archive after labeling |
| boolean | no | Mark as read after labeling |
| string | no | Additional label to apply |
Creates labels under the Triage/ prefix (e.g., Triage/Action Required, Triage/Newsletter).
batch_triage
Process all unread emails at once. Classify, label, extract tasks, and create external tasks in one operation.
Parameter | Type | Required | Description |
| number | no | Max emails (default 50) |
| boolean | no | Apply labels (default true) |
| boolean | no | Auto-archive newsletters |
| boolean | no | Auto-archive sales pitches |
| boolean | no | Create tasks for action_required emails |
| string | no |
|
smart_reply
Generate a draft reply based on email context.
Parameter | Type | Required | Description |
| string | yes | Gmail message ID |
| string | no |
|
| string | no | What you want to say |
| boolean | no | Reference action items (default true) |
email_analytics
Get usage patterns and sender analytics.
Parameter | Type | Required | Description |
| number | no | Days to analyze (default 7) |
Returns: Category breakdown, top senders, response times, busiest hours, and insights.
follow_up_tracker
Track emails awaiting responses.
Parameter | Type | Required | Description |
| string | yes |
|
| string | no | For |
| number | no | Scan window (default 7) |
| number | no | Days before "overdue" (default 3) |
Utility Tools
check_auth_status
Check Gmail authentication and license status. No parameters.
authorize_gmail
Authorize Gmail access via OAuth2 flow.
Parameter | Type | Required | Description |
| string | no | OAuth code (omit for auth URL) |
Free vs Pro
Feature | Free | Pro ($25/mo) |
Email classification | 10/day | Unlimited |
Action item extraction | Yes | Yes |
Email digest | Yes | Yes |
Email search | Yes | Yes |
Auto-labeling | - | Yes |
Batch triage | - | Yes |
Smart reply drafts | - | Yes |
Task creation (Linear/Jira/Todoist) | - | Yes |
Email analytics | - | Yes |
Follow-up tracking | - | Yes |
Subscribe to Pro: https://buy.stripe.com/28E00igAv4605cWfXL7wA06
After subscribing, set the TRUSS_LICENSE_KEY environment variable.
Task Integration Setup
Linear
export LINEAR_API_KEY="lin_api_xxxxxxxx"Get your API key at Linear Settings > API.
Todoist
export TODOIST_API_TOKEN="xxxxxxxx"Get your token at Todoist Integrations > Developer.
Jira
export JIRA_DOMAIN="yourcompany" # yourcompany.atlassian.net
export JIRA_EMAIL="you@company.com"
export JIRA_API_TOKEN="xxxxxxxx"Get your API token at Atlassian API Tokens.
How Classification Works
The classifier uses rule-based pattern matching with no external AI API dependency. It analyzes:
Headers:
List-Unsubscribe(newsletter),In-Reply-To(thread context),Content-Type(calendar invites)Sender patterns:
noreply@, support addresses, personal email domainsSubject patterns: Action keywords, ticket numbers, forwarded messages, meeting language
Body patterns: Action verbs, deadlines, meeting links, unsubscribe links, sales language
Each category has weighted rules. The email is scored against all categories and the highest-scoring category wins. Confidence reflects how strongly the patterns matched.
This design is intentional — your AI agent (Claude, etc.) provides the reasoning layer. The MCP server provides fast, deterministic, free email data access.
Data Storage
All data is stored locally on your machine:
File | Purpose |
| OAuth2 refresh token (mode 0600) |
| Usage tracking, analytics, follow-ups (SQLite) |
| Cached license validation (7-day TTL) |
No email content is sent to TRUSS servers. License validation is a simple key check.
Troubleshooting
"Gmail not authenticated"
Run check_auth_status to verify, then authorize_gmail to set up OAuth.
"Free tier daily limit reached"
Free tier allows 10 classifications per day (resets at midnight UTC). Upgrade to Pro for unlimited: Subscribe
"Gmail OAuth credentials not configured"
Set GMAIL_CLIENT_ID and GMAIL_CLIENT_SECRET environment variables. Create credentials at Google Cloud Console.
"This feature requires a TRUSS Pro license"
Pro tools (create_task, auto_label, batch_triage, smart_reply, email_analytics, follow_up_tracker) require a Pro subscription.
Token refresh errors
Delete ~/.truss/gmail-tokens.json and re-authorize with authorize_gmail.
SQLite errors
Delete ~/.truss/usage.db to reset the database. Usage counters will restart.
Development
git clone https://github.com/truss-dev/email-triage-mcp.git
cd email-triage-mcp
npm install
npm run build
# Run locally
npm run dev
# Run evals
npm run evalLicense
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/claw-factory/email-triage-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server