HarvestAPI MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with HarvestAPI MCP or direct API to search LinkedIn people, find companies, enrich profiles, and enrich company records through natural language.

HarvestAPI logoHarvestAPI
Api Key

HarvestAPI is a recruiting and lead intelligence service for LinkedIn people and company data. It helps teams find prospects and enrich profiles with useful company insights.

32 Tools

Try HarvestAPI now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
HarvestAPI
Try asking
TOOLS

Supported Tools

Every HarvestAPI action and event your agent gets out of the box.

Get LinkedIn Account Insights

Get broad LinkedIn company intelligence including company and revenue data, AI-generated sourced summaries, competitors, key people, headcount, hiring, news, suggested contacts, and alerts.

Get LinkedIn Ad

Get detailed creative, advertiser, impression, and targeting data for one LinkedIn ad.

Get LinkedIn Comment Reactions

Get one page of reactions to a LinkedIn comment.

Get LinkedIn Company

Enrich one LinkedIn company by company URL, universal name, or company ID.

Get LinkedIn Company People Stats

Return aggregate LinkedIn employee distributions for a company across location, school, function, skills, services, and fields of study.

Get LinkedIn Company Posts

Get one page of posts from a LinkedIn company.

Get LinkedIn Event

Get one LinkedIn event by URL or ID, including timing, venue, organizer, speakers, and announcement post.

Get LinkedIn Group

Get complete details for one LinkedIn group.

Get LinkedIn Job

Get complete details for one LinkedIn job.

Get My API User

Return details for the HarvestAPI user associated with the connected API key.

Get My Private Account Pools

Return private LinkedIn account-pool details associated with the connected HarvestAPI API user.

Get LinkedIn Post

Get one LinkedIn post by URL.

Get LinkedIn Post Comment Replies

Get one page of replies to a LinkedIn comment.

Get LinkedIn Post Comments

Get one page of comments for a LinkedIn post.

Get LinkedIn Post Reactions

Get one page of reactions to a LinkedIn post.

Get LinkedIn Profile

Enrich one LinkedIn profile by URL, public identifier, or profile ID.

Get LinkedIn Profile by Email

Reverse lookup a LinkedIn profile from a work email address.

Get LinkedIn Profile Comments

Get one page of comments authored by a LinkedIn profile, optionally limited by age.

Get LinkedIn Profile Posts

Use this dedicated profile feed to retrieve a profile's complete authored-post history one page at a time; unlike SEARCH_POSTS, it is intended for complete profile post retrieval.

Get LinkedIn Profile Reactions

Get one page of reactions made by a LinkedIn profile.

Search LinkedIn Accounts

Find LinkedIn companies with advanced recruiting and sales filters such as growth, hiring, department headcount, activity, and exclusions, returning one 25-result page.

Search LinkedIn Ads

Search the LinkedIn Ad Library by a complete search URL or structured keyword, advertiser, country, and date filters, returning one page.

Search LinkedIn Companies

Find LinkedIn companies by name keywords, location, size, or industry and return one controllable result page.

Search LinkedIn Events

Search LinkedIn events by keywords and return one controllable page.

Search LinkedIn Geo IDs

Resolve location text to LinkedIn Geo IDs for precise people and company search filters.

Search LinkedIn Groups

Search LinkedIn groups by keyword and return one controllable result page.

Search LinkedIn Jobs

Search LinkedIn jobs by title, company, location, work arrangement, employment type, salary, recency, seniority, industry, or function and return one controllable page.

Search LinkedIn Leads

Search LinkedIn people for recruiting candidates or sales prospects with advanced inclusion and exclusion filters, including a Sales Navigator search URL, and return one controllable result page.

Search LinkedIn Posts

Search LinkedIn posts by keywords, authors, companies, mentions, content type, group, and date controls, returning one page only.

Search LinkedIn Profiles

Search public LinkedIn profiles by person, employer, school, title, location, industry, or follower relationship and return one result page.

Search LinkedIn Services

Search LinkedIn service-provider profiles by service or name keywords and location.

Search LinkedIn Typeahead

Return LinkedIn search-bar suggestions or one page of company, school, or profile suggestions.

SETUP GUIDE

Connect HarvestAPI MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["harvestapi"],
  mcp: true,
});
Create a session scoped to HarvestAPI and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search LinkedIn for senior software engineers in Austin, Texas",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a HarvestAPI request
SETUP GUIDE

Connect HarvestAPI API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["harvestapi"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to HarvestAPI
3

Run HarvestAPI tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search LinkedIn for senior software engineers in Austin, Texas" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the HarvestAPI tool calls through the session, and print the final answer

Why Use Composio?

AI Native HarvestAPI Integration

  • Supports both HarvestAPI MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable people and company searches
  • Rich coverage for LinkedIn profile and company enrichment workflows

Managed Auth

  • Secure API key handling without hard-coding credentials in your agent
  • Central place to manage, scope, and revoke HarvestAPI access
  • Per user and per environment credentials for safer recruiting workflows

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Clear search and enrichment inputs help agents choose the right HarvestAPI tool
  • Comprehensive execution logs show what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access HarvestAPI
  • Scoped, least privilege access to people and company intelligence resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with HarvestAPI.It takes 30 seconds.

Managed auth, hosted MCP servers, and every HarvestAPI tool your agent needs.Free to start.

Start building