Skip to main content
Glama
by jahfer

JMAP-MCP

Read emails via MCP!

Introduction

JMAP-MCP is a connector designed to interact with a JMAP (JSON Mail Access Protocol) server, allowing you to read emails via the Model Context Protocol (MCP). This project specifically demonstrates integration with a Fastmail JMAP server.

Setup

  1. Prerequisites: Ensure you have Node.js installed.

  2. Clone the repository: Clone this repository to your local machine.

  3. Install dependencies: Navigate to the project directory and run:

    npm install

API Token Configuration

You need to set your JMAP API token to authenticate with your email server (e.g., Fastmail). Obtain your API token from your server's settings.

Set the JMAP_SESSION_URL and JMAP_TOKEN environment variables when running the application.

MCP Configuration

To use JMAP-MCP, you need to configure it as an mcpServer in your MCP configuration file. Here is an example configuration:

{ "mcpServers": { "emails": { "command": "npx", "args": ["-y", "@jahfer/jmap-mcp-server"], "env": { "JMAP_SESSION_URL": "https://api.fastmail.com/jmap/session", // for example "JMAP_TOKEN": "<your-jmap-token>" } } } }

Usage

Once configured in MCP, you can use commands or features within MCP that interact with the server definition to read your emails via the JMAP protocol.

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Related MCP Servers

View all related MCP servers

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/jahfer/jmap-mcp-server'

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