Needle MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Needle MCP or direct API to manage leads, create outreach campaigns, prepare drafts, and handle connected LinkedIn and Instagram accounts through natural language.

Needle MCP logoNeedle MCP
Dcr Oauth

Needle MCP is a hosted service for managing leads, outreach campaigns, drafts, and social accounts. It gives teams a simple way to coordinate LinkedIn and Instagram outreach in one place.

116 Tools

Try Needle MCP now

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

TOOL ROUTER PLAYGROUND
Needle MCP
Try asking
TOOLS

Supported Tools

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

Needle archive campaign

Archive a campaign.

Needle check suppressions

Check whether identities are contactable or suppressed.

Needle comment on instagram post

Comment on an Instagram post, or reply to a comment on it.

Needle comment on linkedin post

Comment on a LinkedIn post, or reply to a comment when commentId is given.

Needle compose preview

Preview an AI-composed outreach message without sending it, from any prompt, account, and profile.

Needle create campaign

Create a campaign.

Needle create draft

Draft a message, InMail or connection request (text is its note) to a lead from a connected account.

Needle create file access url

Mint a preview URL for a stored file.

Needle create file upload

Mint a short-lived signed PUT URL, or copy a public file with sourceUrl.

Needle create instagram post

Publish an Instagram feed post or story.

Needle create lead

Create a lead.

Needle create leads

Create up to 500 leads at once, matching on identity so re-sending a list does not duplicate anyone.

Needle create suppressions

Create suppression entries for people or companies.

Needle create webhook

Add an https URL that receives events, signed with a new secret.

Needle delete connected account

Delete a connected account.

Needle delete file

Delete a private file stored in Needle.

Needle delete lead

Delete a lead.

Needle delete leads

Delete up to 500 leads by id, stopping their live campaign enrollments.

Needle delete suppression

Delete a suppression entry.

Needle delete webhook

Delete a webhook.

Needle enroll campaign leads

Enroll existing leads in a campaign, by lead id.

Needle follow instagram user

Follow an Instagram user as a connected account.

Needle get assistant chat

Read a chat the user had with the assistant inside the Needle web app, to continue it here.

Needle get campaign

Get a campaign by id.

Needle get campaign stats

Campaign progress, funnel (distinct leads per stage), enrollments, and steps (including current and completed leads per step) for a campaign.

Needle get connected account

Get a connected account and its usage.

Needle get draft

Get one draft and where it is in review: awaiting_review, sent, failed or discarded.

Needle get instagram account profile

Get the Instagram profile of the connected account, with its follower, following and post counts.

Needle get instagram post

Get one Instagram post by post id, or by the short code from its URL.

Needle get instagram profile

Get an Instagram profile by username without @.

Needle get lead

Get a lead, its identities, and enrollments.

Needle get linkedin company

Get a LinkedIn company by public identifier, numeric id, or company URL such as https://www.linkedin.com/company/heravideo.

Needle get linkedin in mail balance

Read the InMail credits left on a connected account.

Needle get linkedin job

Get one LinkedIn job with its full description, applicant count, apply link and hiring team.

Needle get linkedin post

Get one LinkedIn post by the postId returned from a post listing or search.

Needle get linkedin profile

Get a LinkedIn profile by user id or public identifier.

Needle get me

Returns the user and the workspace (`organization`) this caller is bound to.

Needle get message preview for step

What a campaign step would send to the lead of one of the campaign's enrollments, from the step's account, with subject, sender and attachments.

Needle get message preview for task

What a queued task would send to its lead, from the step's current content and account.

Needle get onboarding info

Get what the user told Needle during onboarding and what it produced: the use case, website, notes, attached documents, the ideal customer profile, the ids of the leads found, the onboarding campaign id, and when onboarding was completed.

Needle get place

Get place details by Google Place id.

Needle get webhook

Get one webhook with its delivery status.

Needle like instagram post

Like an Instagram post, or one of its comments.

Needle list campaign events

List a page of campaign events.

Needle list campaign leads

List a page of leads enrolled in a campaign.

Needle list campaigns

List a page of campaigns.

Needle list campaign tasks

List a page of the actions this campaign owes its leads, earliest scheduled first.

Needle list connected account events

List a page of events for a connected account.

Needle list connected account limits

Every metered action on a connected account with its channel defaults, the caps currently enforced, the override behind them (if any), and usage so far.

Needle list connected accounts

List a page of connected LinkedIn and Instagram accounts.

Needle list connected account tasks

List a page of the queue for one connected account, earliest scheduled first.

Needle list drafts

List a page of drafted messages, newest first.

Needle list files

List a page of files you can use: every workspace file, then your private files.

Needle list instagram conversation messages

List messages in an Instagram conversation.

Needle list instagram conversation participants

List the accounts in an Instagram conversation, with their usernames.

Needle list instagram conversations

List the Instagram inbox of a connected account, most recent first.

Needle list instagram followers

List the followers of an Instagram account.

Needle list instagram following

List the accounts an Instagram account follows.

Needle list instagram post comments

List the comments on an Instagram post, or the replies to one comment.

Needle list instagram post reactions

List the accounts that liked an Instagram post, or one of its comments.

Needle list instagram posts

List the posts of an Instagram account, most recent first.

Needle list lead events

List a page of events for a lead.

Needle list lead properties

List every custom property key leads in this workspace use, with its type, lead count and most common values.

Needle list leads

List a page of leads in this workspace.

Needle list lead tasks

List a page of the actions campaigns owe a lead, earliest scheduled first.

Needle list linkedin company jobs

List jobs on a LinkedIn company page.

Needle list linkedin company posts

List posts on a LinkedIn company page.

Needle list linkedin conversation messages

List messages in a LinkedIn conversation.

Needle list linkedin conversations

List LinkedIn conversations.

Needle list linkedin followers

List followers of the connected account, or of a person or company when identity is given.

Needle list linkedin following

List the people and companies this account follows.

Needle list linkedin invitations

List a page of pending LinkedIn connection invitations from this account.

Needle list linkedin post comments

List comments on a post, or replies to one comment when commentId is given.

Needle list linkedin post reactions

List the people who reacted to a LinkedIn post, or to a comment when commentId is given.

Needle list linkedin posts

List posts from a person (user id or public identifier) or a company page (numeric id or company URL).

Needle list linkedin received invitations

List connection invitations other people sent to this account.

Needle list linkedin relations

List first-degree LinkedIn connections.

Needle list linkedin search parameters

Resolve LinkedIn filter values from keywords.

Needle list suppressions

List a page of suppression entries.

Needle list webhooks

List the workspace's webhooks, oldest first, with their delivery status.

Needle react to instagram message

Add an emoji reaction to an Instagram direct message.

Needle react to linkedin post

React to a LinkedIn post, or to a comment when commentId is given.

Needle read docs

Read one page of the Needle documentation as markdown.

Needle remove campaign lead

Stop a live lead enrollment in a campaign.

Needle reset connected account limit

Remove the override for one action so the connected account runs on the channel defaults again.

Needle respond to linkedin invitation

Accept or decline an invitation from the received invitations listing.

Needle search campaigns

Find campaigns in this workspace by name.

Needle search connected accounts

Find connected accounts by display name, handle, or username.

Needle search docs

Find Needle documentation pages: guides, concepts, every REST API endpoint, and every MCP tool.

Needle search enrollments

Find enrollments by the lead or the campaign name.

Needle search events

Search a page of events.

Needle search leads

Find leads already in this workspace.

Needle search linkedin companies classic

Search LinkedIn companies.

Needle search linkedin jobs

Search LinkedIn jobs with keywords, a company, or a LinkedIn jobs searchUrl.

Needle search linkedin people

Deprecated.

Needle search linkedin people classic

Search standard LinkedIn people with keywords or filters.

Needle search linkedin people sales navigator

Search Sales Navigator leads with keywords or filters, including current and past company, company headcount and type, function, seniority, years of experience, groups, saved lists and personas, and Spotlights such as changed_jobs.

Needle search linkedin posts

Search LinkedIn posts.

Needle search places

Build a list of businesses and locations.

Needle search suppressions

Find suppression entries by person, company domain, note, or reason.

Needle send instagram message

Send an Instagram direct message as a connected account.

Needle send linkedin in mail

Send a LinkedIn InMail.

Needle send linkedin invitation

Send a LinkedIn connection invitation.

Needle send linkedin message

Send a LinkedIn message as a connected account.

Needle stop campaign leads

Stop the live enrollments of up to 500 leads in a campaign, by lead id.

Needle unfollow instagram user

Unfollow an Instagram user as a connected account.

Needle update campaign

Update a campaign.

Needle update connected account

Update a connected account.

Needle update connected account limit

Set hourly, daily, or weekly caps for one action on a connected account.

Needle update lead

Update a lead profile or identities.

Needle update lead property

Change how a custom property is compared when filtering (type: string, number, boolean, date), or whether it shows as a column in the leads table.

Needle update leads

Update up to 500 existing leads by id; never creates leads.

Needle update webhook

Change the URL, the headers, the event types, or several at once, or turn on a webhook that was turned off after 3 days without a 2xx (enabled: true).

Needle upsert lead

Create a lead, or when a LinkedIn or Instagram identity already belongs to one, patch the fields sent onto it.

Needle withdraw draft

Take back a draft before anyone reviewed it, so it never sends.

Needle withdraw linkedin invitation

Withdraw a pending LinkedIn invitation.

SETUP GUIDE

Connect Needle 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: ["needle_mcp"],
  mcp: true,
});
Create a session scoped to Needle MCP 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: "Create a LinkedIn outreach campaign for my new leads",
  stopWhen: stepCountIs(10),
});

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

Connect Needle MCP 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: ["needle_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Needle MCP
3

Run Needle MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Create a LinkedIn outreach campaign for my new leads" }],
});

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 Needle MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Needle MCP Integration

  • Supports both Needle MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable lead and outreach tool execution
  • Rich coverage for managing leads, campaigns, drafts, and connected social accounts

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Needle MCP access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

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

Use Needle MCP with any AI Agent Framework

Choose a Framework you want to connect Needle MCP with

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 Needle MCP.It takes 30 seconds.

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

Start building