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.
# 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" }
}
}
}
// claude_desktop_config.json
{
"mcpServers": {
"handlehaul": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.handlehaul.com/mcp",
"--header", "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 3merges three pages,--allfollows the cursor to the end,--limit 50stops after 50 items--dataprints only the data,--jsonlone list item per linenpx handlehaul accountshows your credit balance, freenpm install -g handlehaulto drop thenpx
# 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.
- Node:
npm install handlehaul(handlehaul-js on GitHub) - Python:
pip install handlehaul(handlehaul-python on GitHub) - Claude skill: download it from GitHub and add it to Claude
- MCP setup for every client: handlehaul-mcp on GitHub, or the HandleHaul connector on Glama
- OpenAPI spec and llms.txt in the docs for any other agent framework
- Separate keys per agent, usage per key in the dashboard
// 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);
# pip install handlehaul
from handlehaul import HandleHaul
hh = HandleHaul() # reads HANDLEHAUL_API_KEY
res = hh.instagram.following("natgeo")
print(res.data, res.meta["credits_charged"])
// n8n: HTTP Request node
{
"method": "GET",
"url": "=https://api.handlehaul.com/v1/tiktok/users/{{ $json.handle }}/posts",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth" // header: x-api-key
}
AI agent questions
What is MCP?
Which clients work?
How are agent calls billed?
How do I keep an agent from spending too much?
Is there an SDK or a CLI?
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.