MCP-Email-Verify

by Abhi5h3k
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Uses the AbstractAPI Email Validation API to verify email addresses by checking format, domain validity, and deliverability

  • Integrates with pre-commit hooks for code quality checks before committing code changes

  • Built using Python and requires Python 3.11.0 or higher for operation

MCP 电子邮件验证

轻量级**模型上下文协议 (MCP)**服务器,可让您的 LLM 验证电子邮件地址。此工具使用 AbstractAPI 电子邮件验证 API 检查电子邮件格式、域名有效性和可交付性。非常适合将电子邮件验证集成到 Claude Desktop 等 AI 应用程序中。


什么是模型上下文协议(MCP)?

MCP 的核心是一种标准化协议,旨在简化 AI 模型与外部系统之间的通信。MCP 可以被视为一种通用语言,允许不同的 AI 代理、工具和服务无缝交互。


特征

  • 电子邮件验证:实时验证电子邮件地址。
  • MCP 集成:与 MCP 兼容的 LLM 无缝连接。
  • 易于设置:使用 Python 和 MCP SDK 构建,可快速部署。

MCP 遵循客户端-服务器架构:


观看演示

点击下面的图片观看 MCP 电子邮件验证工具的视频演示:


要求

  • Python :Python 3.11.0 或更高版本。
  • UV :0.6.9或更高。

设置

1.克隆存储库

git clone https://github.com/Abhi5h3k/MCP-Email-Verify.git cd MCP-Email-Verify

2.安装UV

如果您没有安装 UV,可以使用以下命令安装它:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

验证安装:

uv --version

3.设置虚拟环境

使用 UV 创建虚拟环境:

uv venv

激活虚拟环境:在 Windows 上:

.venv\Scripts\activate

4.安装依赖项使用 UV 从 pyproject.toml 安装所需的依赖项:

uv install

运行服务器

  1. 设置环境变量在根目录中创建一个 .env 文件并添加您的AbstractAPI密钥:
ABSTRACT_API_KEY=your_api_key_here
  1. 运行服务器启动 MCP 服务器:
uv run server.py

用法

  1. 使用 Claude Desktop 注册服务器更新 claude_desktop_config.json 文件以包含您的 MCP 服务器:
{ "mcpServers": { "verify_mail": { "command": "uv", "args": [ "--directory", "C:\\ABSOLUTE\\PATH\\TO\\MCP-Email-Verify", "run", "server.py" ] } } }

  1. 重新启动 Claude Desktop 重新启动 Claude Desktop 以检测新工具。
  2. 验证电子邮件使用如下提示:

我试图通过thanos@snap.io给灭霸发邮件,请他恢复我最喜欢的电视节目,但我不确定这封邮件是否有效。你能帮我看看这是真的还是只是凭空想象吗?

发展

格式化和 Linting 该项目使用 black 和 isort 进行代码格式化和导入排序。

  1. 安装开发依赖项:
    uv add black isort --dev
  2. 格式化代码:
    black .
  3. 对导入进行排序:
isort .

设置预提交

pre-commit install pre-commit run --all-files

Smithery.ai 服务器上可用: MCP 电子邮件验证

文章:模型上下文协议 (MCP): AI 通信未来入门指南

-
security - not tested
F
license - not found
-
quality - not tested

轻量级模型上下文协议 (MCP) 服务器,可让您的 LLM 验证电子邮件地址。此工具使用 AbstractAPI 电子邮件验证 API 检查电子邮件格式、域名有效性和可交付性。非常适合将电子邮件验证集成到 Claude Desktop 等 AI 应用程序中。

  1. What is Model Context Protocol (MCP)?
    1. Features
  2. MCP follows a client-server architecture:
    1. Watch the Demo
      1. Requirements
      2. Setup
      3. Running the Server
      4. Usage
      5. Development
      6. Set up pre-commit
    ID: 2k7li0re1y