Klupt Instagram API

Hosted MCP server for Instagram data: followers and following in real newest-first order, plus profiles, posts, reels, stories, comments and search. 32 read-only tools, API key auth.

Hosted MCP Server

npx add-mcp 'https://api.klupt.io/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Klupt MCP server: Instagram followers and following, newest first

Glama Listed on mcpservers.org

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.

ToolWhat it returns
get_profilePublic 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_followingAccounts that a public Instagram account follows, in Instagram's real newest-first order: position 1 is the account they followed most recently.
get_followersAccounts that follow a public Instagram account, newest follower first: position 1 is the most recent follower.
get_postsPosts of a public Instagram account, newest first, about 12 per page: shortcode, URL, date, type, caption, like / comment / view counts and thumbnail.
search_usersFind Instagram accounts by name or username (up to about 40 results).
get_reelsReels 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_postsPosts in which a public Instagram account is tagged, about 12 per page.
get_repostsPosts a public Instagram account reposted, about 12 per page.
get_storiesStories a public Instagram account posted in the last 24 hours, with media URLs and expiry times.
get_highlightsStory highlights of a public Instagram account (id, title, item count, cover).
get_account_detailsWhen an Instagram account joined (month and year), its country and how many times it changed username.
get_similar_accountsAccounts Instagram considers similar to this one (up to about 80).
get_post_statsLike, comment and view counts for 1 to 20 posts in one call.
get_postOne Instagram post or reel by shortcode, numeric id or instagram.com URL: caption, date, counts, media URLs, owner, location and audio.
get_commentsComments on an Instagram post, top first (sort "top") or newest first (sort "newest"), about 15 per page.
get_post_likersAccounts that liked an Instagram post, about 100 per page.
get_comment_repliesReplies to a comment.
get_comment_likersAccounts that liked a comment.
get_storyOne Instagram story by numeric id.
get_highlight_storiesThe stories inside one story highlight (ids come from get_highlights).
search_hashtagsFind Instagram hashtags matching a word, with post counts.
search_placesFind Instagram places (locations) by name, or near a point with lat and lng.
search_audioFind songs and original audio used in Reels.
get_hashtagOne Instagram hashtag and its post count.
get_hashtag_postsTop posts for an Instagram hashtag.
get_placeOne Instagram place: name, category, address, city, coordinates, phone and website.
get_place_postsTop (sort "top") or most recent (sort "recent") posts tagged at an Instagram place.
get_trending_audioAudio trending on Instagram Reels right now.
get_audioOne song or original audio: title, artist, duration and how many reels use it.
get_audio_reelsReels that use a given song or original audio.
resolve_instagram_urlTurn any instagram.com link (profile, post, reel, story, highlight, hashtag, place or audio) into its type, ids and the tool to call next.
get_balanceYour 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.

Links

License

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