Skip to content

feat: MCP Server - Expose email history as context for AI assistants #955

@jloriaux

Description

@jloriaux

Context

LePatron customers increasingly use internal AI assistants (ChatGPT, Claude, Copilot, etc.) for their
daily tasks. These assistants lack context about the email history created in LePatron, which limits
their usefulness for:

  • Generating content consistent with previous communications
  • Maintaining brand tone and style
  • Reusing elements that have worked well in the past

Proposal

Create an MCP (Model Context Protocol) server that exposes LePatron mailing history as a context
source for customers' AI assistants.

Planned Features

Phase 1 - MVP

  • Standalone MCP server with API key authentication
  • Resource: List of recent mailings (name, date, text preview)
  • Tool: Search mailing history (by keyword, date, author, etc.)

Phase 2 - Enhancements

  • Resource: Templates used and their variants
  • Tool: Extract CTAs and subject lines (when specified)
  • Filtering by workspace/folder

Customer Use Cases

  1. "Generate a follow-up email in the same tone as my previous communications"
  2. "What email subjects were used for last year's Black Friday campaign?"
  3. "Suggest CTA variations based on what we usually use"

Technical Considerations

  • Authentication: API key per group, generated in admin settings
  • Permissions: Respect user's workspace access rights
  • Performance: Pagination, caching of extracted content
  • Security: Rate limiting, no exposure of sensitive data (unresolved variables)

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions