MCP · CLI · SDKs · n8n

Instagram and TikTok data inside your AI agent

Add one MCP server and ask in plain English. Claude, Cursor or your n8n flow picks the right endpoint, spends a credit and reads clean JSON.

Add the MCP server

Get a key from the dashboard, then run one command. The server lives at https://api.handlehaul.com/mcp.

Listed on Glama and in the official MCP Registry as com.handlehaul/social-data.

Terminal
# Add the HandleHaul MCP server to Claude Code
claude mcp add --transport http handlehaul https://api.handlehaul.com/mcp \
  --header "x-api-key: $HANDLEHAUL_API_KEY"

# Then ask in plain English:
# "Top 10 TikTok videos using #mealprep this week, with transcripts"

Or add it to your editor

Paste the config, replace YOUR_KEY, restart the app. HandleHaul tools show up in the tool list.

// ~/.cursor/mcp.json
{
  "mcpServers": {
    "handlehaul": {
      "url": "https://api.handlehaul.com/mcp",
      "headers": { "x-api-key": "YOUR_KEY" }
    }
  }
}

Ask for what you need

Prompts that work out of the box.

“Find the 10 most viewed TikToks under #mealprep this week and summarize their hooks.”

“Get the transcript of this TikTok and rewrite it as a 30-second script for Instagram Reels.”

“Compare engagement on the last 12 posts of these three creators and rank them.”

“List the comments on this reel that ask a question, grouped by topic.”

Run it from the terminal

The npm package ships a handlehaul command. Every API route is a command and the answer is JSON on stdout, ready for jq, a file or your agent's shell tool.

  • --pages 3 merges three pages, --all follows the cursor to the end, --limit 50 stops after 50 items
  • --data prints only the data, --jsonl one list item per line
  • npx handlehaul account shows your credit balance, free
  • npm install -g handlehaul to drop the npx
Terminal
# Every API route is a command; JSON on stdout
export HANDLEHAUL_API_KEY=YOUR_KEY   # or pass --key
npx handlehaul tiktok profile nasa
npx handlehaul tiktok transcript https://www.tiktok.com/@nasa/video/7301234567890123456
npx handlehaul instagram followers natgeo --pages 3 > followers.json
npx handlehaul ig reels natgeo --sort views --data
npx handlehaul account

SDKs, scripts and workflows

Official SDKs for Node and Python: a typed method for every endpoint, cursor paging, retries that respect Retry-After. In n8n, Make or Lovable, use an HTTP request with your key in the x-api-key header.

// npm install handlehaul
import { HandleHaul } from 'handlehaul';

const hh = new HandleHaul(); // reads HANDLEHAUL_API_KEY
const { data, meta } = await hh.instagram.following('natgeo');
console.log(data, meta.credits_charged);

AI agent questions

What is MCP?
The Model Context Protocol lets AI apps call external tools. Add the HandleHaul MCP server and your assistant can look up profiles, posts, followers, comments and transcripts by itself.
Which clients work?
Claude Code, Claude Desktop, Cursor and any other MCP client. Tools without MCP (n8n, Make, Lovable, Zapier) can call the REST API directly.
How are agent calls billed?
The same as any call: 1 credit per successful tool call. Cache hits and failed calls are free, so an agent retrying does not burn credits on errors. A handle we have not looked up in 7 days adds 1 lookup credit; the agent can pass the numeric id from an earlier result to skip it.
How do I keep an agent from spending too much?
Use a separate API key for the agent and watch its usage in the dashboard. Credits are prepaid, so spend can never exceed what you bought.
Is there an SDK or a CLI?
Yes, both official. npm install handlehaul installs the JavaScript/TypeScript SDK and the handlehaul CLI, so npx handlehaul tiktok profile nasa works without installing anything first. pip install handlehaul installs the Python SDK, sync and async. All of them read your key from HANDLEHAUL_API_KEY.

Give your agent a handle

One key, Instagram and TikTok, 1 credit per successful tool call.

Want to test first? Sandbox keys are free and unlimited, with sample data in the live schema.