An Instagram MCP server for your AI assistant
SocialHolmes runs an MCP server at https://api.socialholmes.com/mcp that lets Claude, Cursor, Codex or any MCP client over HTTP pull public Instagram data: profiles, posts, reels, comments, hashtags and tagged posts. Your assistant gets the rows, not a summary of a web page, and you pay $0.50 per 1,000 results.
What you get
Every row comes back as structured JSON. These are the fields on a row, taken from the endpoint's recorded example response in the reference. Every field we collect is in the row itself, including the extra fields the platform sends, so a live row can carry more than the recorded example.
Instagram profile — one profile per row
id username full_name biography category is_verified is_private follower_count following_count media_count external_url profile_pic_url
Instagram posts — one post per row
id shortcode url type caption taken_at like_count comment_count share_count is_paid_partnership width height media_urls thumbnail_url author media_id image_versions2 video_versions
Instagram comments — one comment per row
id text created_at like_count reply_count is_edited author
Which tools does the Instagram MCP server give an assistant?
scrape runs a public Instagram endpoint. That covers a profile, its posts, its reels, a single post, the comments on a post, tagged posts, a hashtag, a location and highlights. get_run tells the assistant where a run has got to, and get_results reads the rows of a finished run page by page. Reading the same rows again never costs anything.
list_runs shows recent runs, cancel_run stops one that has not finished while keeping what it already collected, list_platforms lists every endpoint your account can call with its parameters, and account shows your balance and limits. account and list_platforms are free.
Because the tools return structured rows, the assistant can filter, sort and compare them. It can work out which of your last 20 posts got the most comments, or line your numbers up against a competitor's, instead of guessing from a page it half read.
How does a run work through MCP?
Runs are asynchronous. The scrape tool starts the run and hands back a run id straight away. A run id is not an error. The assistant checks it with get_run and reads the rows with get_results when the run has finished. If a tool call errors or times out, the assistant is told to check list_runs before starting the same run again, so you do not pay twice.
Every run is quoted and held before it starts. If your balance cannot cover the quote, the run is refused rather than started. The optional max_credits argument refuses anything that could cost more than you agreed to.
What can I ask it to do with Instagram?
Agencies ask it to pull a client's last month of posts and reels and write up which formats got the most engagement. Marketers ask it to collect the comments under a launch post and group them into questions, complaints and praise. Researchers ask it to gather the latest posts under a hashtag and count how often a brand comes up.
Each of these is a handful of scrape calls the assistant plans itself. You can watch the runs land in your dashboard, and download the same rows as CSV or JSON if you want them outside the chat.
Example request
The assistant makes this same call for you, but you can also call the REST API directly with the same key. This one fetches a profile's latest posts.
The call returns a run id straight away; poll GET /api/public/v1/runs/:id until it succeeds, then read the rows from GET /api/public/v1/runs/:id/results. Reading results again does not cost anything more.
curl -X POST https://api.socialholmes.com/api/public/v1/scrape/instagram/posts \
-H "Authorization: Bearer $SOCIALHOLMES_KEY" \
-H "Content-Type: application/json" \
-d '{"parameters": {"username": "cristiano"}, "limit": 25}'
import os
import requests
run = requests.post(
"https://api.socialholmes.com/api/public/v1/scrape/instagram/posts",
headers={"Authorization": f"Bearer {os.environ['SOCIALHOLMES_KEY']}"},
json={"parameters": {"username": "cristiano"}, "limit": 25},
).json()
print(run["id"], run["status"])
const response = await fetch("https://api.socialholmes.com/api/public/v1/scrape/instagram/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHOLMES_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ parameters: { username: "cristiano" }, limit: 25 }),
})
const run = await response.json()
console.log(run.id, run.status)
require "net/http"
require "json"
response = Net::HTTP.post(
URI("https://api.socialholmes.com/api/public/v1/scrape/instagram/posts"),
{ parameters: { username: "cristiano" }, limit: 25 }.to_json,
"Authorization" => "Bearer #{ENV.fetch('SOCIALHOLMES_KEY')}",
"Content-Type" => "application/json"
)
run = JSON.parse(response.body)
puts run["id"], run["status"]
<?php
$ch = curl_init("https://api.socialholmes.com/api/public/v1/scrape/instagram/posts");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("SOCIALHOLMES_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["parameters" => ["username" => "cristiano"], "limit" => 25]),
]);
$run = json_decode(curl_exec($ch), true);
echo $run["id"], " ", $run["status"];
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
)
func main() {
body, _ := json.Marshal(map[string]any{
"parameters": map[string]string{"username": "cristiano"},
"limit": 25,
})
req, _ := http.NewRequest("POST", "https://api.socialholmes.com/api/public/v1/scrape/instagram/posts", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("SOCIALHOLMES_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
var run map[string]any
json.NewDecoder(res.Body).Decode(&run)
fmt.Println(run["id"], run["status"])
}
Use it from an AI assistant over MCP
The same account and API key work as an MCP server at https://api.socialholmes.com/mcp, over HTTP with no package to install. In Claude Code:
claude mcp add --transport http socialholmes https://api.socialholmes.com/mcp \
--header "Authorization: Bearer sh_<your key>"
Cursor, Codex and Claude Desktop connect the same way; the MCP setup guide has the config for each. Then ask in plain language:
Pull the last 20 posts from @nasa and from @spacex. Compare average likes and comments per post, then fetch the comments on each account's most-liked post and summarise what people are asking.
Pricing
$0.50 per 1,000 results, billed per row delivered. There is no subscription, and a run that returns nothing costs nothing. See the full pricing.
Questions people ask
What is the Instagram MCP server URL?
Which assistants work with it?
Do I need an Instagram account or an app review?
Is it a separate plan from the API?
Can my assistant overspend?
What does it cost?
Reference and related pages
Try it on your own targets
Get an API key, run a small limit first, and pay only for the rows you get back.