Klupt Instagram API

v1.0.1
io.klupt/instagram Checked 4 days ago Published 5 days ago

Instagram followers and following in real newest-first order, plus profiles, posts and reels.

This repository holds the setup guide and the registry metadata (server.json). The server itself is hosted by Klupt; nothing here needs to run. claude_desktop_config.json (uses the open-source mcp-remote bridge): On plans with custom connectors: Settings → Connectors → Add custom connector → https://api.klupt.io/mcp, request header x-api-key.

Summary extracted from the README.

Klupt MCP server: Instagram followers and following, newest first

Glama Listed on mcpservers.org mcptry

Klupt is a hosted MCP server for Instagram data. It gives Claude, Cursor, VS Code Copilot, Codex, Windsurf, Gemini CLI and any MCP client 32 read-only tools for public Instagram accounts. Its unique feature is real newest-first follower and following lists: position 1 is the account someone followed most recently.

Ask in plain words:

"Who did @natgeo follow most recently?" · "Show the newest followers of @nasa" · "Get the last 5 reels of @bbcnews with views"

This repository holds the setup guide and the registry metadata (server.json). The server itself is hosted by Klupt; nothing here needs to run.

Setup

Claude Code

claude mcp add --transport http klupt https://api.klupt.io/mcp \
  --header "X-Api-Key: $KLUPT_API_KEY" --scope user

Shared in a repo (.mcp.json):

{
  "mcpServers": {
    "klupt": {
      "type": "http",
      "url": "https://api.klupt.io/mcp",
      "headers": { "X-Api-Key": "${KLUPT_API_KEY}" }
    }
  }
}

Claude Desktop

claude_desktop_config.json (uses the open-source mcp-remote bridge):

{
  "mcpServers": {
    "klupt": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.klupt.io/mcp", "--header", "X-Api-Key:${KLUPT_API_KEY}"],
      "env": { "KLUPT_API_KEY": "kd_live_your_key" }
    }
  }
}

On plans with custom connectors: Settings → Connectors → Add custom connector → https://api.klupt.io/mcp, request header x-api-key.

Cursor

~/.cursor/mcp.json:

{
  "mcpServers": {
    "klupt": {
      "url": "https://api.klupt.io/mcp",
      "headers": { "X-Api-Key": "${env:KLUPT_API_KEY}" }
    }
  }
}

VS Code (GitHub Copilot)

.vscode/mcp.json:

{
  "inputs": [{ "type": "promptString", "id": "klupt-key", "description": "Klupt API key", "password": true }],
  "servers": {
    "klupt": { "type": "http", "url": "https://api.klupt.io/mcp", "headers": { "X-Api-Key": "${input:klupt-key}" } }
  }
}

OpenAI Codex

# ~/.codex/config.toml
[mcp_servers.klupt]
url = "https://api.klupt.io/mcp"
bearer_token_env_var = "KLUPT_API_KEY"

Windsurf

{ "mcpServers": { "klupt": { "serverUrl": "https://api.klupt.io/mcp", "headers": { "X-Api-Key": "${env:KLUPT_API_KEY}" } } } }

Gemini CLI

gemini mcp add --transport http --header "X-Api-Key: $KLUPT_API_KEY" -s user klupt https://api.klupt.io/mcp

OpenAI Responses API

from openai import OpenAI
import os

resp = OpenAI().responses.create(
    model="gpt-5",
    tools=[{"type": "mcp", "server_label": "klupt", "server_url": "https://api.klupt.io/mcp",
            "headers": {"X-Api-Key": os.environ["KLUPT_API_KEY"]}, "require_approval": "never"}],
    input="Who did @natgeo follow most recently? List 10, newest first.",
)
print(resp.output_text)

Tools

All tools are read-only and work on public accounts. Every answer carries meta.credits_charged and meta.credits_remaining.

Tool What it returns
get_profile Public Instagram profile for a username or numeric user id: full name, bio, external link, category, verified and private flags, follower / following / post counts, profile picture and the numeric user id.
get_following Accounts that a public Instagram account follows, in Instagram's real newest-first order: position 1 is the account they followed most recently.
get_followers Accounts that follow a public Instagram account, newest follower first: position 1 is the most recent follower.
get_posts Posts of a public Instagram account, newest first, about 12 per page: shortcode, URL, date, type, caption, like / comment / view counts and thumbnail.
search_users Find Instagram accounts by name or username (up to about 40 results).
get_reels Reels of a public Instagram account, newest first (sort "recent") or most viewed (sort "views"), about 12 per page, with view counts and video URLs.
get_tagged_posts Posts in which a public Instagram account is tagged, about 12 per page.
get_reposts Posts a public Instagram account reposted, about 12 per page.
get_stories Stories a public Instagram account posted in the last 24 hours, with media URLs and expiry times.
get_highlights Story highlights of a public Instagram account (id, title, item count, cover).
get_account_details When an Instagram account joined (month and year), its country and how many times it changed username.
get_similar_accounts Accounts Instagram considers similar to this one (up to about 80).
get_post_stats Like, comment and view counts for 1 to 20 posts in one call.
get_post One Instagram post or reel by shortcode, numeric id or instagram.com URL: caption, date, counts, media URLs, owner, location and audio.
get_comments Comments on an Instagram post, top first (sort "top") or newest first (sort "newest"), about 15 per page.
get_post_likers Accounts that liked an Instagram post, about 100 per page.
get_comment_replies Replies to a comment.
get_comment_likers Accounts that liked a comment.
get_story One Instagram story by numeric id.
get_highlight_stories The stories inside one story highlight (ids come from get_highlights).
search_hashtags Find Instagram hashtags matching a word, with post counts.
search_places Find Instagram places (locations) by name, or near a point with lat and lng.
search_audio Find songs and original audio used in Reels.
get_hashtag One Instagram hashtag and its post count.
get_hashtag_posts Top posts for an Instagram hashtag.
get_place One Instagram place: name, category, address, city, coordinates, phone and website.
get_place_posts Top (sort "top") or most recent (sort "recent") posts tagged at an Instagram place.
get_trending_audio Audio trending on Instagram Reels right now.
get_audio One song or original audio: title, artist, duration and how many reels use it.
get_audio_reels Reels that use a given song or original audio.
resolve_instagram_url Turn any instagram.com link (profile, post, reel, story, highlight, hashtag, place or audio) into its type, ids and the tool to call next.
get_balance Your Klupt API plan, credit balance, rate limits and this key's usage this month.

Prompts: recent_follows (who did an account recently follow) and new_followers (newest followers of an account).

Why Klupt

Most Instagram data APIs return follower and following lists in an order that is not chronological, so "who did they follow recently" can't be answered reliably. Klupt returns them in Instagram's real newest-first order, measured and documented at https://api.klupt.io/docs/instagram-following-api.

Built on the Klupt API

  • Klupt: see who an Instagram account followed most recently (web, Android, Chrome extension).
  • RecentlyFollowed: an hourly recent-follows tracker, also built by the Klupt team.

Building on it? Email api@klupt.io to be listed.

License

MIT for the contents of this repository (docs and metadata). Use of the hosted API is subject to the Klupt API terms.