Skip to main content
Glama
RyamosThomas

Mailspring MCP Server

by RyamosThomas

Mailspring MCP Server Plugin

A Mailspring plugin that runs an MCP (Model Context Protocol) server, giving AI agents read-only access to your email data — threads, messages, contacts, folders, and labels.

The plugin uses Mailspring's own DatabaseStore API, making setup easy and seamless.

Installation

Use this if you want to install the plugin into Mailspring and run it normally.

  1. Install dependencies and build the plugin:

npm install
npm run build
  1. Install the built plugin into Mailspring through Mailspring's plugin install flow, or place the built plugin directory in Mailspring's packages directory.

  2. Restart Mailspring. The MCP server starts automatically on http://127.0.0.1:2525/mcp.

Related MCP server: Gmail MCP Server

MCP Configuration

Import the configuration using the following JSON snippet, example vscode snippet included in repo:

{
  "mcpServers": {
    "mailspring": {
      "url": "http://127.0.0.1:2525/mcp"
    }
  }
}

Development

Use this if you are actively working on the plugin code.

  1. Install dependencies and build:

    npm install
    npm run build
  2. Link the repo into Mailspring's packages directory so Mailspring loads your working copy:

./install.sh
  1. Restart Mailspring.

Available Tools

Tool

Description

search_emails

Full-text search with structured filters (from, to, subject, date range, folder, label, unread, starred, attachments). Supports FTS5 syntax: OR, NOT, quoted phrases, prefix matching.

read_email

Read a specific email with full plain-text body content and attachment list

batch_read_emails

Read multiple emails at once by ID — full body + attachments for each

list_threads

List threads with filters (folder, label, unread, starred, date range, attachments). Returns enriched metadata: message count, last sender, reply status.

read_thread

Read a full thread with all messages, reply status, attachment details, sanitized bodyHtml, and stripped plain-text body

list_contacts

List or search contacts by name/email

list_folders

List all mailbox folders

list_labels

List all email labels

get_recent_emails

Get recent emails with date range filtering and pagination

list_drafts

List draft emails with pagination

email_stats

Get mailbox statistics

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to query databases via natural language using the Model Context Protocol, with automatic schema discovery, SQL query execution, and read-only safety checks.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides access to Gmail functionality through the Model Context Protocol, allowing LLMs like Claude to interact with your email.
    2
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to manage Gmail through natural language, including search, read, send, label, and draft operations via the Model Context Protocol.

View all related MCP servers

Related MCP Connectors

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.

  • Search companies, enrich contacts, and reveal emails and phones from your AI agent.

View all MCP Connectors

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/RyamosThomas/Mailspring-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server