imap-mcp 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -29
- package/dist/tools/create-draft.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://langmail.me/?ref=imap-mcp">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/langmail/.github/main/assets/wordmark-dark.svg">
|
|
5
|
+
<img alt="Langmail" src="https://raw.githubusercontent.com/langmail/.github/main/assets/wordmark-light.svg" width="120">
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<h1 align="center">imap-mcp</h1>
|
|
11
|
+
|
|
12
|
+
<p align="center">
|
|
13
|
+
<b>An MCP server that lets your AI agent save email drafts to any IMAP mailbox.</b><br>
|
|
14
|
+
It gives your agent one tool, <code>create-draft</code>, which saves a message to your Drafts folder for you to review and send. It works with any IMAP server that accepts a password login and with any MCP client that starts local servers, such as Claude Desktop, Claude Code or Cursor.
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
<a href="https://www.npmjs.com/package/imap-mcp"><img alt="npm" src="https://img.shields.io/npm/v/imap-mcp?style=flat-square"></a>
|
|
19
|
+
<a href="https://github.com/langmail/imap-mcp/actions/workflows/release.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/langmail/imap-mcp/release.yml?branch=main&style=flat-square&label=CI"></a>
|
|
20
|
+
<a href="https://github.com/langmail/imap-mcp#license"><img alt="License" src="https://img.shields.io/npm/l/imap-mcp?style=flat-square"></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<a href="https://discord.gg/CabhN3xuyk"><img alt="Join us on Discord" src="https://img.shields.io/badge/Join%20us%20on%20Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" height="40"></a>
|
|
25
|
+
</p>
|
|
26
|
+
|
|
27
|
+
<p align="center">
|
|
28
|
+
<a href="#available-tools">Tools</a> ·
|
|
29
|
+
<a href="https://github.com/langmail/imap-mcp/blob/main/CHANGELOG.md">Changelog</a> ·
|
|
30
|
+
<a href="https://langmail.me/?ref=imap-mcp">Hosted version</a>
|
|
31
|
+
</p>
|
|
2
32
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
📧 An IMAP Model Context Protocol (MCP) server to expose IMAP operations as tools for AI assistants.
|
|
6
|
-
|
|
7
|
-
[](https://choosealicense.com/licenses/mit/)
|
|
8
|
-
[](https://github.com/prettier/prettier)
|
|
9
|
-
[](https://modelcontextprotocol.io)
|
|
10
|
-
[](https://github.com/semantic-release/semantic-release)
|
|
11
|
-
|
|
12
|
-
Maintained by the team behind Langmail. Want mail, calendar and contacts for your agent over one hosted MCP, with OAuth and nothing to run? → [langmail.me](https://langmail.me/?ref=imap-mcp)
|
|
13
|
-
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
## ✨ Features
|
|
17
|
-
|
|
18
|
-
- **Email Draft Creation**: Create draft emails that are saved to your IMAP server's drafts folder
|
|
19
|
-
- **IMAP Integration**: Connect to any IMAP-compatible email server (Gmail, Outlook, etc.)
|
|
20
|
-
- **Secure Authentication**: Uses environment variables for secure credential management
|
|
21
|
-
- **MCP Compatible**: Works with Claude and other AI assistants that support the Model Context Protocol
|
|
22
|
-
- **TypeScript**: Full TypeScript support with proper type definitions
|
|
23
|
-
|
|
24
|
-
## Setup
|
|
25
|
-
|
|
26
|
-
```
|
|
33
|
+
```json
|
|
27
34
|
{
|
|
28
35
|
"mcpServers": {
|
|
29
|
-
...,
|
|
30
36
|
"imap": {
|
|
31
37
|
"command": "npx",
|
|
32
|
-
"args": [
|
|
33
|
-
"imap-mcp"
|
|
34
|
-
],
|
|
38
|
+
"args": ["imap-mcp"],
|
|
35
39
|
"env": {
|
|
36
40
|
"IMAP_HOST": "<IMAP host>",
|
|
37
41
|
"IMAP_PORT": "<IMAP port>",
|
|
@@ -44,6 +48,14 @@ Maintained by the team behind Langmail. Want mail, calendar and contacts for you
|
|
|
44
48
|
}
|
|
45
49
|
```
|
|
46
50
|
|
|
51
|
+
## ✨ Features
|
|
52
|
+
|
|
53
|
+
- **Email Draft Creation**: Create draft emails that are saved to your IMAP server's drafts folder
|
|
54
|
+
- **IMAP Integration**: Connect to any IMAP-compatible email server (Gmail, Outlook, etc.)
|
|
55
|
+
- **Secure Authentication**: Uses environment variables for secure credential management
|
|
56
|
+
- **MCP Compatible**: Works with Claude and other AI assistants that support the Model Context Protocol
|
|
57
|
+
- **TypeScript**: Full TypeScript support with proper type definitions
|
|
58
|
+
|
|
47
59
|
## Usage
|
|
48
60
|
|
|
49
61
|
1. Compile TypeScript to JavaScript:
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "imap-mcp",
|
|
3
3
|
"mcpName": "io.github.langmail/imap-mcp",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "0.1.
|
|
4
|
+
"description": "An MCP server that lets your AI agent save email drafts to any IMAP mailbox.",
|
|
5
|
+
"version": "0.1.3",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"author": "Dominik Grusemann",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
37
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
38
38
|
"dotenv": "^16.5.0",
|
|
39
39
|
"imap": "^0.8.19",
|
|
40
40
|
"zod": "^3.25.67"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint-config-prettier": "^10.1.5",
|
|
52
52
|
"husky": "^9.1.7",
|
|
53
53
|
"lint-staged": "^16.1.2",
|
|
54
|
-
"prettier": "3.
|
|
54
|
+
"prettier": "3.10.1",
|
|
55
55
|
"semantic-release": "^25.0.9",
|
|
56
56
|
"shx": "^0.4.0",
|
|
57
57
|
"typescript": "^5.8.3",
|