JMAP MCP Server
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.
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>"
}
}
}
}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.
Tools
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.
Local Development
Prerequisites: Ensure you have Node.js installed.
Clone the repository: Clone this repository to your local machine.
Install dependencies: Navigate to the project directory and run:
npm install
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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