EA

edwardchoh/apollo-io-mcp-server

开发工具

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

16 stars 9 forks 质量 52 趋势 9NOASSERTION

将 Aporo.io API 功能暴露为工具的 MCP 服务器

概览

这个项目提供了一个MCP服务器,将阿波罗.io API功能暴露为工具. 它允许您使用"模型背景协议"(MCP)与阿波罗.io API进行交互. 该项目包括以下主要组成部分: - apollo client.py:定义了阿波罗克利特级,用于与阿波罗.io API进行交互. 它包括人员致富、组织致富、人员搜寻、组织搜寻和组织职位张贴的方法。 - server.py:定义快取MCP服务器,该服务器将阿波罗.io API功能暴露为工具. 它使用在apollo client.py中定义的ApolloClient类与API相互作用. - apollo/:包含Apollo.io API的数据模型,如PeopleEfuctedQuery,OrganizationEfucationQuery,PeopleSearchQuery,OrganizationSearchQuery,以及OrganizationJobPostingsQuery. 以下功能作为MCP工具被曝光: - 人-富集:利用人-富集终点丰富1个人的数据.

概述(AI 翻译)

这个项目提供了一个MCP服务器,将阿波罗.io API功能暴露为工具. 它允许您使用"模型背景协议"(MCP)与阿波罗.io API进行交互.

□ 概览

该项目包括以下主要组成部分:

  • apollo_client.py:定义 [[T1] 类,用于与阿波罗.io API相接. 它包括人员致富、组织致富、人员搜寻、组织搜寻和组织职位张贴的方法。
  • [[T2]: 定义 FastMCP 服务器,该服务器将阿波罗.io API 功能暴露为工具. 它使用ApolloClient所定义的类与API相互作用.
  • apollo/:载有阿波罗.io API的数据模型,例如[[T6]、[[T7]、[[T8]、[T9]和OrganizationJobPostingsQuery]。

□ 功能

以下功能作为MCP工具被曝光:

  • people_enrichment: 利用"人民富集"终点丰富1人数据.
  • [[T12]: 利用组织浓缩端点来丰富1家公司的数据.

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

README

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

Apollo.io MCP Server

This project provides an MCP server that exposes the Apollo.io API functionalities as tools. It allows you to interact with the Apollo.io API using the Model Context Protocol (MCP).

Overview

The project consists of the following main components:

  • apollo_client.py: Defines the ApolloClient class, which is used to interact with the Apollo.io API. It includes methods for people enrichment, organization enrichment, people search, organization search, and organization job postings.
  • server.py: Defines the FastMCP server, which exposes the Apollo.io API functionalities as tools. It uses the ApolloClient class defined in apollo_client.py to interact with the API.
  • apollo/: Contains the data models for the Apollo.io API, such as PeopleEnrichmentQuery, OrganizationEnrichmentQuery, PeopleSearchQuery, OrganizationSearchQuery, and OrganizationJobPostingsQuery.

Functionalities

The following functionalities are exposed as MCP tools:

  • people_enrichment: Use the People Enrichment endpoint to enrich data for 1 person.
  • organization_enrichment: Use the Organization Enrichment endpoint to enrich data for 1 company.
  • people_search: Use the People Search endpoint to find people.
  • organization_search: Use the Organization Search endpoint to find organizations.
  • organization_job_postings: Use the Organization Job Postings endpoint to find job postings for a specific organization.

Usage

To use this MCP server, you need to:

  1. Set the APOLLO_IO_API_KEY environment variable with your Apollo.io API key. Or create ‘.env’ file in the project root with APOLLO_IO_API_KEY.
  2. Get dependencies: uv sync
  3. Run the uv run mcp run server.py

Data Models

The apollo/ directory contains the data models for the Apollo.io API. These models are used to define the input and output of the MCP tools.

  • apollo/people.py: Defines the data models for the People Enrichment endpoint.
  • apollo/organization.py: Defines the data models for the Organization Enrichment endpoint.
  • apollo/people_search.py: Defines the data models for the People Search endpoint.
  • apollo/organization_search.py: Defines the data models for the Organization Search endpoint.
  • apollo/organization_job_postings.py: Defines the data models for the Organization Job Postings endpoint.

Testing

To test, set APOLLO_IO_API_KEY environment variable and run uv run apollo_client.py.

Usage with Claude for Desktop

  1. Configure Claude for Desktop to use these MCP servers by adding them to your claude_desktop_config.json file:
{
  "mcpServers": {
    "apollo-io-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "mcp",
        "run",
        "path/to/apollo-io-mcp-server/server.py"
      ]
    }
  }
}

Resources

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "apollo-io-mcp-server": { "type": "stdio", "command": "uv", "args": [ "run", "mcp", "run", "path/to/apollo-io-mcp-server/server.py" ] } } }