Lessie Email logo

Lessie Email

Community
LessieAI
lessie-email

Send, manage, and automate emails across multiple providers (Gmail, Outlook, Official Email) via MCP. Use this skill whenever the user wants to send emails, check inbox, manage email threads, create bulk email campaigns, manage drafts, or check email accounts and quotas. Trigger this skill when the user mentions sending mail, checking inbox, email campaigns, drafts, follow-ups, read/unread status, or email automation. Requires MCP server configuration.

Overview

PublisherLessieAI
Repositorylessie-skill
Skill namelessie-email
Stars
34
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LessieAI on GitHub. Read the source before you install it.

Installation

Install the Lessie Email AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LessieAI/lessie-skill/tree/main/lessie-email
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LessieAI/lessie-skill.git /tmp/lessie-skill
mkdir -p .claude/skills
cp -r /tmp/lessie-skill/lessie-email .claude/skills/lessie-email
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lessie Email in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lessie Email on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lessie Email is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Lessie Email — Multi-Provider Email Management

Setup

Add the Lessie Email MCP server to your MCP config (Claude Code ~/.claude.json, Cursor ~/.cursor/mcp.json, Codex ~/.codex/config.toml, etc.):

json
{
  "mcpServers": {
    "lessie-email-mcp": {
      "command": "npx",
      "args": ["-y", "@lessie/mcp-server"],
      "env": {
        "LESSIE_REMOTE_MCP_URL": "https://app.lessie.ai/email-api/mcp-public/mcp"
      }
    }
  }
}

Uninstall

Remove the "lessie-email" entry from your MCP config and run rm -rf ~/.lessie/.

Version check

Run this check once at the start of each session. Non-blocking — if any command fails, skip silently.

  1. Read current local version from this file's metadata version field above.
  2. Fetch remote version:
    bash
    curl -sf --max-time 5 https://raw.githubusercontent.com/LessieAI/lessie-skill/main/lessie-email/SKILL.md | head -5 | grep 'version:' | head -1 | awk '{print $2}'
  3. If the remote version is newer → tell the user:

    ⬆️ A newer version of lessie-email skill is available ({current} → {remote}). Run this command to update:

    npx skills add LessieAI/lessie-skill -y -g
  4. If versions match or check fails → skip, say nothing.

Authorization

  1. Directly call use_lessie to perform the desired action — skip authorization if already connected.
  2. If use_lessie fails (e.g., returns "not authorized" or "remote MCP server not connected") → call authorize to start the OAuth flow:
    • authorize returns an authorization URL. Tell the user you need to open a browser for Lessie login/registration, and open it using the appropriate system command:
      • macOS: open "<url>"
      • Linux: xdg-open "<url>"
      • Windows: start "<url>"
    • Tell the user the browser has been opened and they need to complete login/registration.
    • After the user confirms, call authorize again to verify the connection.
    • If authorization fails (timeout, denied, port conflict), follow the diagnostic hints returned by authorize and retry.
  3. After authorization succeeds → retry the original use_lessie call.

Troubleshooting: Authorization repeatedly fails

Root cause: stale lessie-mcp-server processes from old sessions occupy the callback port (19836), forcing port fallback and corrupting OAuth client state.

Fix — kill stale processes and clear storage, then re-authorize:

bash
ps aux | grep 'lessie-mcp-server' | grep -v grep | awk '{print $2}' | xargs kill 2>/dev/null
rm -rf ~/.lessie/
lsof -i :19836 | grep LISTEN  # should return nothing

Always inform the user before opening the browser — never silently redirect.

Quick start

After setup, try:

  • "Show me my email accounts and unread counts"
  • "Send an email from alice@company.com to bob@example.com about the Q2 report"
  • "List my recent email threads"
  • "Create a bulk email campaign to these 50 contacts"
  • "Draft an email to the engineering team about the sprint review"
  • "Mark all emails in this thread as read"

Tools overview

Email Accounts

ToolWhen to use
list_email_accounts_with_unreadView all linked email accounts with unread counts

Email Operations

ToolWhen to use
send_emailSend an email (supports HTML, CC/BCC, attachments, replies)
get_email_detailView full email details (content, delivery status, read status)
list_sent_emailsBrowse sent emails with cursor pagination
get_email_quotaCheck daily sending quota for a specific email address
delete_emailSoft-delete an email
set_email_read_statusMark an email as read or unread

Thread Management

ToolWhen to use
list_threadsBrowse email conversations (all/read/unread filtering)
get_thread_messagesView all messages in a conversation thread
delete_threadSoft-delete an entire conversation thread
set_thread_read_statusMark all emails in a thread as read or unread

Drafts

ToolWhen to use
create_draftCreate a new email draft
update_draftUpdate an existing draft (subject, content, recipients, etc.)
delete_draftDelete a draft
list_draftsBrowse drafts with cursor pagination

Bulk Email Tasks

ToolWhen to use
create_taskCreate a bulk email send task (auto-schedules per recipient)
list_tasksBrowse bulk tasks with progress info
get_task_detailView task details with delivery/open/fail stats per recipient
delete_taskDelete a bulk email task
pause_taskPause a running bulk email task
resume_taskResume a paused bulk email task

Agent behavior rules

Before sending emails

  1. Always check accounts first: Call list_email_accounts_with_unread to get available sender addresses.
  2. No email accounts bound: If the account list is empty, tell the user they have no email accounts linked yet and guide them to visit https://app.lessie.ai/ to bind an email account. Open the URL using the appropriate system command:
    • macOS: open "https://app.lessie.ai/"
    • Linux: xdg-open "https://app.lessie.ai/"
    • Windows: start "https://app.lessie.ai/" Then ask the user to return after binding and retry.
  3. Always check quota: Call get_email_quota for the chosen sender to confirm quota is sufficient.
  4. Never guess email addresses: Only use addresses returned by the account list.

Replying to emails

  1. Get the thread context: call get_thread_messages to see the conversation.
  2. Use the thread_id and reply_to_message_id from the last message.
  3. Pass both when calling send_email for a proper threaded reply.

Draft workflow

  1. Create a draft with create_draft — specify sender, recipients, subject, and content.
  2. Update the draft with update_draft if changes are needed.
  3. When ready, use send_email with the finalized content (drafts are not sent directly).
  4. Delete the draft with delete_draft after sending or if no longer needed.

Bulk task management

  • After creating a task with create_task, monitor progress with get_task_detail.
  • Use pause_task to temporarily halt a running campaign (e.g., if issues are found).
  • Use resume_task to continue a paused campaign.
  • Use delete_task to permanently remove a task.

Gmail/Outlook specific

  • When calling get_email_detail, delete_email, get_thread_messages for Gmail/Outlook accounts, always pass the email parameter.
  • The system auto-routes to the correct provider API based on the email address.

Key constraints

  • Cursor pagination: all list endpoints use cursor + size — pass next_cursor from previous response.
  • Default page size: 20 (max 100).
  • Email content: provide at least text_content or html_content — if only text is provided, HTML is auto-generated.
  • Attachments require pre-uploaded S3 keys with s3key, filename, mime_type, size.
  • Bulk tasks auto-schedule sends across time to respect quotas and avoid spam.

Frequently asked questions

What does the Lessie Email AI skill do?

Send, manage, and automate emails across multiple providers (Gmail, Outlook, Official Email) via MCP. Use this skill whenever the user wants to send emails, check inbox, manage email threads, create bulk email campaigns, manage drafts, or check email accounts and quotas. Trigger this skill when the user mentions sending mail, checking inbox, email campaigns, drafts, follow-ups, read/unread status, or email automation. Requires MCP server configuration.

Why use Lessie Email on TypingMind?

Because you install it once and use it with any model. Lessie Email is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lessie Email in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LessieAI/lessie-skill/tree/main/lessie-email. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lessie Email?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lessie Email?

As many as you like. As long as a model supports skills, you can use Lessie Email with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lessie Email AI skill free?

It is published on GitHub by LessieAI. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇