NI

nikolausm/imap-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

140 stars 64 forks 质量 85 趋势 22MIT

nikolausm/imap-mcp-server 是从 https://github.com/nikolausm/imap-mcp-server. 导入的 MCP 服务器候选服务器。

概览

nikolausm/imap-mcp-server 是从 https://github.com/nikolausm/imap-mcp-server. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

强大的模型上下文协议(MCP)服务器,提供无缝的IMAP邮件集成,并支持安全的账户管理和连接池。

特色

  • 🔐 安全账户管理:采用AES-256加密的加密凭证存储
  • 🚀 连接池:高效的IMAP连接管理
  • 📧 全面的电子邮件操作:搜索、阅读、移动、标记、删除及批量删除邮件
  • ✉️ 电子邮件发送:通过SMTP发送、回复和转发邮件
  • 📁 文件夹管理:列表文件夹、检查状态、获取未读计数
  • 🔄 多账户支持:同时管理多个IMAP账户
  • 🛡️ 类型安全:基于TypeScript构建以保证可靠性
  • 🌐 基于网页的设置向导:带供应商预设的便捷账户配置
  • 📱 15+ 电子邮件服务提供商:预配置的 Gmail、Outlook、Yahoo 等
  • 🔗 自动SMTP配置:基于IMAP提供商的自动SMTP设置

安装

**需要Node.js 22.12或更新版本。**节点18和20都已达到 已终止生命周期,且该软件包的部分依赖不再支持 它们。用node --version检查你的。

通过 npx 运行(无需安装)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

IMAP MCP Server

A powerful Model Context Protocol (MCP) server that provides seamless IMAP email integration with secure account management and connection pooling.

Features

  • 🔐 Secure Account Management: Encrypted credential storage with AES-256 encryption
  • 🚀 Connection Pooling: Efficient IMAP connection management
  • 📧 Comprehensive Email Operations: Search, read, move, mark, delete, and bulk delete emails
  • ✉️ Email Sending: Send, reply, and forward emails via SMTP
  • 📁 Folder Management: List folders, check status, get unread counts
  • 🔄 Multiple Account Support: Manage multiple IMAP accounts simultaneously
  • 🛡️ Type-Safe: Built with TypeScript for reliability
  • 🌐 Web-Based Setup Wizard: Easy account configuration with provider presets
  • 📱 15+ Email Providers: Pre-configured settings for Gmail, Outlook, Yahoo, and more
  • 🔗 Auto SMTP Configuration: Automatic SMTP settings based on IMAP provider

Installation

Requires Node.js 22.12 or newer. Node 18 and 20 have both reached end-of-life, and several of this package’s dependencies no longer support them. Check yours with node --version.

Run via npx (No Installation Required)

Once published to npm, you can run the server directly without cloning or building anything — npx downloads the prebuilt package and runs it:

npx -y imap-mcp-server

This is the easiest way to use the server in an MCP client (see Configuration for ready-to-paste npx configs).

macOS/Linux:

curl -fsSL https://raw.githubusercontent.com/nikolausm/imap-mcp-server/main/install.sh | bash

Windows (PowerShell as Administrator):

iwr -useb https://raw.githubusercontent.com/nikolausm/imap-mcp-server/main/install.ps1 | iex

Manual Installation

  1. Clone the repository:
git clone https://github.com/nikolausm/imap-mcp-server.git
cd imap-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Account Setup

Accounts are stored encrypted in ~/.imap-mcp/accounts.json. This file is shared by all run modes — whether you start the server via npx, a global install, or a local clone, they all read the same accounts. So you only need to set up your accounts once.

Setting Up Accounts in npx Mode

If you run the server via npx (no clone), you have two ways to add accounts:

Option A — Run the setup wizard directly via npx (no install needed):

npx -p imap-mcp-server imap-setup

This launches the same web-based wizard described below and writes to ~/.imap-mcp/accounts.json, which your npx-configured MCP server then picks up automatically.

在 GitHub 查看完整 README

安装

npx -y imap-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "imap": { "command": "npx", "args": ["-y", "imap-mcp-server"], "env": {} } } }