Fastmail MCP Server
An unofficial MCP server that enables users to manage their Fastmail accounts through natural language interactions. It provides tools to query mailboxes, retrieve email content with advanced filtering, and send messages directly through the Fastmail API.
README
Fastmail MCP Server (Unofficial)
Unofficial Model Context Protocol server for Fastmail integration.
Setup Instructions
1. Get Your Fastmail API Token
- Log in to Fastmail
- Go to Settings → Privacy & Security → API tokens
- Click New API token
- Give it a name (e.g., "Claude MCP")
- Select the required scopes:
Mail(read/write as needed) - Copy the generated token
2. Configure Claude Code
Add the following to your Claude Code MCP settings (~/.claude/claude_desktop_config.json or project .mcp.json):
{
"mcpServers": {
"fastmail": {
"type": "url",
"url": "https://fastmail-mcp.vercel.app/mcp",
"headers": {
"Authorization": "Bearer YOUR_FASTMAIL_API_TOKEN"
}
}
}
}
Security Note: Keep your API token secure. Never commit it to version control. Consider using environment variables or a secrets manager.
Available Tools
mailbox_get
Get mailbox information (folders) - list all mailboxes or get specific ones by ID.
email_query
Query emails with filters and sorting.
mailboxId(optional): Mailbox ID to search inlimit(optional, default: 10): Maximum number of emails to returnfrom(optional): Filter by senderto(optional): Filter by recipientsubject(optional): Filter by subject texthasKeyword(optional): Filter by keyword (e.g.,$seen,$flagged)notKeyword(optional): Filter by absence of keywordbefore(optional): Filter by date (ISO format)after(optional): Filter by date (ISO format)sort(optional, default:receivedAt): Sort by propertyascending(optional, default: false): Sort order
email_get
Get specific emails by their IDs.
emailIds(required): Array of email IDs to retrieveaccountId(optional): Account ID (auto-detected if not provided)properties(optional): Specific properties to fetchfetchTextBodyValues(optional): Fetch text/plain body valuesfetchHTMLBodyValues(optional): Fetch text/html body valuesfetchAllBodyValues(optional): Fetch all text body valuesmaxBodyValueBytes(optional): Maximum size in bytes for body values
email_send
Send emails with support for plain text, HTML, or both.
to(required): Recipient email addresssubject(required): Email subjectbody(required): Plain text bodyhtmlBody(optional): HTML body for multipart/alternative emailsidentityId(optional): Identity ID to send from
API Endpoints
POST /mcp- MCP protocol endpointGET /health- Health check endpoint
Development
pnpm install # Install dependencies
pnpm dev # Watch mode for TypeScript compilation
pnpm build # Build for production
pnpm start # Run local server
pnpm deploy # Deploy to Vercel
This is an unofficial community project and is not affiliated with Fastmail.
Source code and issues: GitHub
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.