RevenueBase MCP服务器
模型上下文协议(MCP)服务器,提供对RevenueBase业界领先的电子邮件验证API的访问。该服务器使人工智能助手和应用程序能够验证业务电子邮件,包括全面覆盖和防火墙保护的域,准确率超过99%。
特性
- 实时电子邮件验证:立即验证个人电子邮件地址
- 批量电子邮件处理:提交并处理大型电子邮件列表
- 流程管理:监视、取消和跟踪批处理作业
- 信用管理:检查剩余API信用
- API密钥管理:生成新的API密钥
- 高精度B2B电子邮件验证准确率超过99%
- 包罗万象的域名支持:验证其他工具无法处理的捕获所有电子邮件域
- 防火墙导航:绕过Mimecast和Barracuda等电子邮件防火墙
关于RevenueBase
RevenueBase提供业界领先的电子邮件验证服务,专门为B2B数据提供商构建。RevenueBase能够验证全面覆盖和防火墙保护的域,确保在其他服务不足的情况下达到最高的准确性。
了解有关RevenueBase电子邮件验证服务的更多信息,请访问: https://revenuebase.ai/email-list-cleaning/
安装
- 克隆此存储库:
git clone https://github.com/avivshafir/revenuebase-mcp-server
cd revenuebase-mcp-server- 使用uv安装依赖项:
uv sync- 设置您的RevenueBase API密钥:
export REVENUEBASE_API_KEY="your_api_key_here"用法
运行服务器
python server.py服务器将启动并可用于MCP连接。
与MCP客户端一起使用
克劳德桌面
要将此服务器与Claude Desktop一起使用,请将以下配置添加到您的Claude Desktop配置文件中:
macOS: ~/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 使用实际的RevenueBaseneneneba API密钥。
其他MCP客户端
对于其他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:
# Initialize the connection
await session.initialize()
# List available tools
tools = await session.list_tools()
print("Available tools:", [tool.name for tool in tools.tools])
# Call a tool
result = await session.call_tool("real_time_email_verification", {
"email": "test@example.com"
})
print("Verification result:", result)可用工具
1.实时电子邮件验证
立即验证单个电子邮件地址。
参数:
email(string):要验证的电子邮件地址
例子:
real_time_email_verification("user@example.com")2.批量提交电子邮件
提交文件参考以进行批量电子邮件处理。
参数:
filename(string):批处理的文件名引用
例子:
batch_email_submission("email_list.csv")3.批处理状态
检查批处理电子邮件作业的状态。
参数:
process_id(int):批处理作业的ID
例子:
batch_process_email_status(12345)4.排队进程
列出所有排队的电子邮件批处理作业。
例子:
queued_process()5.取消流程
取消正在进行或排队的批处理电子邮件作业。
参数:
process_id(int):要取消的进程的ID
例子:
cancel_process(12345)6.获取积分
检索您帐户的剩余信用点数。
例子:
get_credits()7.生成新的API密钥
生成并返回新的API密钥。
例子:
new_api_key()配置
环境变量
REVENUEBASE_API_KEY:您的RevenueBase API密钥(必需)
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密钥
错误处理
所有工具都包括正确的错误处理,并将提高 RuntimeError 如果没有配置API密钥。来自RevenueBase API的HTTP错误会使用自动引发 requests.raise_for_status().
需求
- Python 3.7+
- fastmcp
- 请求:
许可证
此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。
支持
有关RevenueBase API支持和文档,请访问:
对于此MCP服务器的问题,请在此存储库中打开问题。
