RevenueBase MCP 服务器是一个模型上下文协议(MCP)服务器,它提供对 RevenueBase 业界领先的电子邮件验证 API 的访问。该服务器使 AI 助手和应用程序能够以超过 99% 的准确率验证商业电子邮件,包括通配域名和受防火墙保护的域名。
RevenueBase 为 B2B 数据提供商提供业界领先的电子邮件验证服务。凭借验证通配域名和受防火墙保护的域名的能力,RevenueBase 确保在其他服务不足的地方实现最高的准确性。
了解更多关于 RevenueBase 的电子邮件验证服务,请访问:https://revenuebase.ai/email-list-cleaning/
git clone https://github.com/avivshafir/revenuebase-mcp-server
cd revenuebase-mcp-server
uv sync
export REVENUEBASE_API_KEY="your_api_key_here"
python server.py
服务器将启动并可用于 MCP 连接。
要在 Claude Desktop 中使用此服务器,请将以下配置添加到你的 Claude Desktop 配置文件中:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"revenuebase": {
"command": "uv",
"args": ["--directory", "/path/to/revenuebase-mcp-server", "run", "python", "server.py"],
"env": {
"REVENUEBASE_API_KEY": "your_api_key_here"
}
}
}
}
将 /path/to/revenuebase-mcp-server 替换为你克隆的仓库的实际路径,并将 your_api_key_here 替换为你实际的 RevenueBase API 密钥。
对于其他 MCP 客户端,你可以使用 stdio 传输连接到服务器。该服务器作为标准的 MCP 服务器运行,并通过 stdin/stdout 接受连接。
使用 MCP Python SDK 的示例:
from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client
server_params = StdioServerParameters(
command="python",
args=["server.py"],
env={"REVENUEBASE_API_KEY": "your_api_key_here"}
)
async with stdio_client(server_params) as (read, write):
async with ClientSession(read, write) as session:
# 初始化连接
await session.initialize()
# 列出可用工具
tools = await session.list_tools()
print("可用工具:", [tool.name for tool in tools.tools])
# 调用工具
result = await session.call_tool("real_time_email_verification", {
"email": "test@example.com"
})
print("验证结果:", result)
即时验证单个电子邮件地址。 参数:
email(字符串):要验证的电子邮件地址。
示例:real_time_email_verification("user@example.com")
提交文件引用以进行批量电子邮件处理。 参数:
filename(字符串):用于批量处理的文件名引用。
示例:batch_email_submission("email_list.csv")
检查批量电子邮件处理作业的状态。 参数:
process_id(整数):批量处理作业的 ID。
示例:batch_process_email_status(12345)
列出所有排队的电子邮件批量处理作业。 示例:
queued_process()
取消正在进行或排队的批量电子邮件处理作业。 参数:
process_id(整数):要取消的进程的 ID。
示例:cancel_process(12345)
检索你的账户剩余的信用额度。 示例:
get_credits()
生成并返回一个新的 API 密钥。 示例:
new_api_key()
REVENUEBASE_API_KEY:你的 RevenueBase API 密钥(必需)。服务器连接到以下 RevenueBase API 端点:
https://api.revenuebase.ai/v1/process-email - 实时电子邮件验证https://api.revenuebase.ai/v1/batch-process-email - 批量电子邮件提交https://api.revenuebase.ai/v1/batch-process-email-status - 批量状态检查https://api.revenuebase.ai/v1/queued-process - 列出排队进程https://api.revenuebase.ai/v1/cancel-process - 取消进程https://api.revenuebase.ai/v1/credits - 获取信用额度https://api.revenuebase.ai/v1/new-api-key - 生成新 API 密钥所有工具都包含适当的错误处理,如果未配置 API 密钥,将引发 RuntimeError。RevenueBase API 的 HTTP 错误将使用 requests.raise_for_status() 自动引发。
本项目采用 MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件。
如需 RevenueBase API 支持和文档,请访问:
如果此 MCP 服务器出现问题,请在此仓库中提交问题。