一个强大的模型上下文协议(MCP)服务器实现,用于无缝集成Apollo.io API,使AI助手能够与Apollo.io数据进行交互。
<a href="https://glama.ai/mcp/servers/@lkm1developer/apollo-io-mcp-server"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=2407978450,4269918068&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Apollo.io Server MCP server" /> </a>此MCP服务器提供了一整套工具,用于与Apollo.io API进行交互,允许AI助手:
# 克隆仓库
git clone https://github.com/lkm1developer/apollo-io-mcp-server.git
cd apollo-io-mcp-server
# 安装依赖
npm install
# 构建项目
npm run build
该服务器需要一个Apollo.io API访问令牌。您可以通过以下方式获得一个:
您可以以两种方式提供令牌:
作为环境变量:
APOLLO_IO_API_KEY=your-api-key
作为命令行参数:
npm start -- --api-key=your-api-key
对于开发,可以在项目根目录创建一个.env文件来存储环境变量:
APOLLO_IO_API_KEY=your-api-key
# 启动服务器
npm start
# 或者使用特定的API密钥
npm start -- --api-key=your-api-key
# 运行带有身份验证的SSE服务器
npx mcp-proxy-auth node dist/index.js
SSE服务器使用mcp-proxy-auth包进行身份验证。要实现身份验证:
安装包:
npm install mcp-proxy-auth
设置AUTH_SERVER_URL环境变量指向您的API密钥验证端点:
export AUTH_SERVER_URL=https://your-auth-server.com/verify
运行带有身份验证的SSE服务器:
npx mcp-proxy-auth node dist/index.js
SSE URL将在以下位置可用:
localhost:8080/sse?apiKey=apikey
将apikey替换为您实际的API密钥进行身份验证。
mcp-proxy-auth包充当代理,它:
此MCP服务器旨在与支持模型上下文协议的AI助手一起工作。一旦运行,服务器会暴露一组工具,这些工具可以被兼容的AI助手用来与Apollo.io数据进行交互。
服务器暴露了以下强大的Apollo.io集成工具:
people_enrichment
first_name (字符串,可选):人的名字last_name (字符串,可选):人的姓氏email (字符串,可选):人的电子邮件地址domain (字符串,可选):公司域名organization_name (字符串,可选):组织名称{
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com"
}
organization_enrichment
domain (字符串,可选):公司域名name (字符串,可选):公司名称{
"domain": "apollo.io"
}
people_search
q_organization_domains_list (数组,可选):要在其中搜索的组织域名列表person_titles (数组,可选):要搜索的职位头衔列表person_seniorities (数组,可选):要搜索的高级程度列表{
"person_titles": ["市场营销经理"],
"person_seniorities": ["vp"],
"q_organization_domains_list": ["apollo.io"]
}
organization_search
q_organization_domains_list (数组,可选):要搜索的组织域名列表organization_locations (数组,可选):要搜索的组织地点列表{
"organization_locations": ["日本", "爱尔兰"]
}
organization_job_postings
organization_id (字符串,必需):Apollo.io组织ID{
"organization_id": "5e60b6381c85b4008c83"
}
服务器设计易于扩展。要添加新的Apollo.io API功能:
src/apollo-client.ts中的ApolloClient类中添加新方法src/index.ts中的setupToolHandlers方法中注册新工具npm run build重新构建项目本项目采用MIT许可证 - 详情见LICENSE文件。
Apollo.io, 模型上下文协议, MCP, AI助手, TypeScript, API集成, Apollo.io API, 人员丰富, 组织丰富, 人员搜索, 组织搜索, 工作岗位发布, AI工具