# HikerAPI [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/subzeroid/hikerapi-mcp  
**GitHub Stars:** 9  
**npm Downloads (last month):** 547  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hikerapi

## Description
Instagram data via HikerAPI: profiles, posts, reels, stories, comments, hashtags, locations.

## Tools
Capabilities this server exposes over MCP:

- **get_v2_media_comments** — Get comments on an Instagram post, about 15 per call. Pass the media `id`; for the next page pass the page id from the previous response as `page_id`. Use `get_v2_media_comments_replies` for replies under one comment and `get_v2_media_likers` for users who liked the post. Live request to Instagram, one billed request per page. (GET /v2/media/comments)
- **get_v2_user_by_username** — Get an Instagram profile by username (without @). Use it when you have a handle; use `get_v2_user_by_id` when you already know the numeric user id (faster), and `get_gql_user_about` for the "About this account" panel. Returns the user object; pass its `pk` as the user id to the other user tools. Live request to Instagram, one billed request per call. (GET /v2/user/by/username)
- **get_gql_user_medias** — List an Instagram user's posts, one page per call. Use it to read an account's feed; use `get_v2_user_clips` for reels only and `get_v2_user_tag_medias` for posts the user is tagged in. Pass `user_id`; for the next page pass the cursor from the previous response as `profile_grid_items_cursor`. `flat=true` flattens nested media objects into a single list. Live request to Instagram, billed per call. (GET /gql/user/medias)
- **get_v2_user_stories** — Get an Instagram user's active stories by user id. Use it when you have the id; use `get_v2_user_stories_by_username` when you only have a handle and `get_v2_user_highlights` for saved highlight collections. `force=true` skips the account privacy check. Live request to Instagram, billed as 2 requests per call. (GET /v2/user/stories)
- **get_v2_user_by_id** — Get an Instagram profile by numeric user id. Use it when you already have the id from another tool; use `get_v2_user_by_username` when you only have a handle. Returns the same user object. Live request to Instagram, billed per call. (GET /v2/user/by/id)
- **get_v2_user_clips** — List an Instagram user's reels (short videos), one page per call. Use it for reels only; use `get_gql_user_medias` for all posts. Pass `user_id`; for the next page pass `next_page_id` from the previous response as `page_id`. Live request to Instagram, billed per call. (GET /v2/user/clips)
- **get_gql_user_reposts** — List content an Instagram user has reposted, one page per call. Use `get_gql_user_medias` for the user's own posts. Pass `user_id`; for the next page pass the cursor from the previous response as `repost_next_max_id`. `flat=true` returns a simple items list. Live request to Instagram, billed per call. (GET /gql/user/reposts)
- **get_v2_user_stories_by_username** — Get an Instagram user's active stories by username. Use it only when you have a handle and not the user id: it is slower than `get_v2_user_stories` and billed as 3 requests per call instead of 2. Live request to Instagram. (GET /v2/user/stories/by/username)
- **get_v2_user_tag_medias** — List posts in which an Instagram user is tagged, one page per call. Use it to see who features an account; use `get_gql_user_medias` for the user's own posts. Pass `user_id`; for the next page pass `next_page_id` from the previous response as `page_id`. Live request to Instagram, billed per call. (GET /v2/user/tag/medias)
- **get_v2_user_highlights** — List an Instagram user's story highlights (saved story collections) by user id, one page per call. Use `get_v2_highlight_by_id` to open one highlight and `get_v2_user_highlights_by_username` when you only have a handle. For the next page pass `next_page_id` from the previous response as `page_id` (`amount` is ignored). Live request to Instagram, billed as 2 requests per call. (GET /v2/user/highlights)
- **get_v2_user_highlights_by_username** — List an Instagram user's story highlights by username, one page per call. Use it only when you have a handle and not the user id: it is slower than `get_v2_user_highlights` and billed as 3 requests per call instead of 2. For the next page pass `next_page_id` from the previous response as `page_id`. Live request to Instagram. (GET /v2/user/highlights/by/username)
- **get_v1_user_search_following** — Search within the accounts an Instagram user follows by name or username. Use it to check whether a user follows specific accounts; use `get_g2_user_following` to list all of them. Pass `user_id` and `query`; `force=true` skips the account privacy check. Live request to Instagram, billed per call. (GET /v1/user/search/following)
- **get_v1_user_search_followers** — Search within an Instagram user's followers by name or username. Use it to check whether specific accounts follow a user; use `get_g2_user_followers` to list all followers. Pass `user_id` and `query`; `force=true` skips the account privacy check. Live request to Instagram, billed per call. (GET /v1/user/search/followers)
- **get_g2_user_followers** — List accounts that follow an Instagram user, one page per call. Use it to page through the follower list; use `get_v1_user_search_followers` to look for specific names among them and `get_g2_user_following` for accounts the user follows. Pass `user_id`; for the next page pass the cursor from the previous response as `page_id`. Live request to Instagram, one billed request per page. (GET /g2/user/followers)
- **get_g2_user_following** — List accounts an Instagram user follows, one page per call. Use it to page through the following list; use `get_v1_user_search_following` to look for specific names in it and `get_g2_user_followers` for the user's followers. Pass `user_id`; for the next page pass the cursor from the previous response as `page_id`. Live request to Instagram, one billed request per page. (GET /g2/user/following)
- **get_v2_user_suggested_profiles** — Get the accounts Instagram suggests as related to a given user. Use it to find similar accounts; use `get_v2_fbsearch_accounts` to search accounts by keyword instead. Pass `user_id`; `expand_suggestion=true` returns more detail per account. Live request to Instagram, billed per call. (GET /v2/user/suggested/profiles)
- **get_gql_user_about** — Get the "About this account" panel for an Instagram user id: verified status, country of registration, account creation date and former usernames. Use it for account provenance checks; use `get_v2_user_by_id` for the regular profile. Live request to Instagram, billed per call. (GET /gql/user/about)
- **get_v2_media_info_by_code** — Get an Instagram post or reel by its shortcode (the part after /p/ or /reel/ in the link). Use `get_v2_media_info_by_url` when you have a full link and `get_v2_media_info_by_id` for a numeric media id. Returns the media object, or 404 for deleted or unavailable posts; promoted (ad) posts may also return 404. User tags are not included for videos, use `get_gql_media_usertags` for those. Live request to Instagram, billed per call. (GET /v2/media/info/by/code)
- **get_v2_media_comments_replies** — Get replies under one comment of an Instagram post. Use it to read a thread; use `get_v2_media_comments` for the top-level comments. Pass `media_id` and `comment_id` (both from the comments tool); paginate with `min_id` from the previous response. Live request to Instagram, billed per call. (GET /v2/media/comments/replies)
- **get_v2_media_likers** — Get users who liked an Instagram post, by media `id`. Use `get_gql_comment_likers_chunk` for likers of a single comment and `get_v2_media_comments` for commenters. Live request to Instagram, billed per call. (GET /v2/media/likers)
- **get_v2_media_info_by_url** — Get an Instagram post or reel by its link (instagram.com/p/... or /reel/...). Use `get_v2_media_info_by_code` for a bare shortcode. Returns the media object, 404 for deleted or unavailable posts and 400 for links that are not posts: use `get_v2_story_by_url` for story links and `get_v1_share_by_url` for /s/ share links. Promoted (ad) posts may also return 404. Live request to Instagram, billed per call. (GET /v2/media/info/by/url)
- **get_v2_media_info_by_id** — Get an Instagram post or reel by numeric media id. Use `get_v2_media_info_by_code` for a shortcode and `get_v2_media_info_by_url` for a full link. Returns the media object, or 404 for deleted or unavailable posts; promoted (ad) posts may also return 404. User tags are not included for videos, use `get_gql_media_usertags` for those. Live request to Instagram, billed per call. (GET /v2/media/info/by/id)
- **get_gql_media_usertags** — Get the users tagged in Instagram videos; pass up to 10 media ids in `media_ids`. Use it for reels and videos, because the `get_v2_media_info_*` tools do not return user tags for video. Live request to Instagram, billed per call. (GET /gql/media/usertags)
- **get_gql_comment_likers_chunk** — Get users who liked one comment on an Instagram post, one page per call. Pass `comment_id` and `media_id`; paginate with `end_cursor` from the previous response. Use `get_v2_media_likers` for likers of the post itself. Live request to Instagram, billed per call. (GET /gql/comment/likers/chunk)
- **get_v1_search_hashtags** — Search Instagram hashtags by keyword. Use it when unsure of the exact tag; use `get_v1_hashtag_by_name` for one known hashtag. Live request to Instagram, billed per call. (GET /v1/search/hashtags)
- **get_v2_fbsearch_accounts** — Search Instagram accounts by keyword. Use it to find a profile when you do not know the exact handle; use `get_v2_user_by_username` for an exact handle. Paginate with `page_token` from the previous response. Live request to Instagram, billed per call. (GET /v2/fbsearch/accounts)
- **get_v1_fbsearch_places** — Search Instagram places by name (`query`), optionally with `lat` and `lng`. Use it to find a location id for `get_g2_location_by_id` and the location media tools; use `get_v1_location_search` when you only have coordinates. Live request to Instagram, billed per call. (GET /v1/fbsearch/places)
- **get_v1_search_music** — Search Instagram music tracks by keyword (song or artist). Use `get_v2_track_by_id` for one known track. Live request to Instagram, billed per call. (GET /v1/search/music)
- **get_v1_hashtag_by_name** — Get an Instagram hashtag by exact name (no # and no special characters). Use it for the hashtag's own info; use `get_v2_hashtag_medias_top` or `get_v2_hashtag_medias_recent` for its posts and `get_v1_search_hashtags` when unsure of the exact tag. Live request to Instagram, billed per call. (GET /v1/hashtag/by/name)
- **get_v2_track_by_id** — Get an Instagram music track by `track_id`. Use `get_v1_search_music` to find tracks by keyword. For the next page pass `next_page_id` from the previous response as `page_id`. Live request to Instagram, billed per call. (GET /v2/track/by/id)
- **get_g2_location_by_id** — Get an Instagram location by id: name, latitude/longitude, category and description. Use `get_v1_fbsearch_places` or `get_v1_location_search` to find the id first, and the location media tools for posts made there. Live request to Instagram, billed per call. (GET /g2/location/by/id)
- **get_v1_location_medias_recent_chunk** — List recent posts made at an Instagram location, one page per call. Pass `location_pk`; paginate with `max_id` from the previous response. Use `get_v1_location_medias_top_chunk` for top posts. Live request to Instagram, billed per call. (GET /v1/location/medias/recent/chunk)
- **get_v1_location_search** — Find Instagram locations at a coordinate: pass `lat` and `lng`. Use `get_v1_fbsearch_places` to search places by name instead. Live request to Instagram, billed per call. (GET /v1/location/search)
- **get_v1_location_medias_top_chunk** — List top posts made at an Instagram location, one page per call. Pass `location_pk`; paginate with `max_id` from the previous response. Use `get_v1_location_medias_recent_chunk` for the newest posts. Live request to Instagram, billed per call. (GET /v1/location/medias/top/chunk)
- **get_v2_story_by_url** — Get one Instagram story by its link. For share links that contain /s/, call `get_v1_share_by_url` first to resolve them. Use `get_v2_story_by_id` when you have the id. Live request to Instagram, billed per call. (GET /v2/story/by/url)
- **get_v2_story_by_id** — Get one Instagram story by its id. Use `get_v2_story_by_url` when you have a story link and `get_v2_user_stories` to list a user's active stories. Live request to Instagram, billed per call. (GET /v2/story/by/id)
- **get_v2_highlight_by_id** — Get one Instagram story highlight by id. Use `get_v2_user_highlights` to list a user's highlights and `get_v1_highlight_by_url` when you have a link. Live request to Instagram, billed per call. (GET /v2/highlight/by/id)
- **get_v1_highlight_by_url** — Get one Instagram story highlight by its link. For share links that contain /s/, call `get_v1_share_by_url` first to resolve them. Use `get_v2_highlight_by_id` when you have the id. Live request to Instagram, billed per call. (GET /v1/highlight/by/url)
- **get_v1_share_by_url** — Resolve an Instagram share link (a URL that contains /s/) to the object it points to: returns its id (`pk`) and `type`. Works for stories and highlights only; then call `get_v2_story_by_id` or `get_v2_highlight_by_id` with the id. For post links use `get_v2_media_info_by_url`. Live request to Instagram, billed per call. (GET /v1/share/by/url)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hikerapi": {
    "command": "npx",
    "args": ["-y","hikerapi-mcp"],
    "env": {
      "HIKERAPI_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HIKERAPI_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HikerAPI MCP server does

The HikerAPI MCP server connects an MCP-compatible AI assistant to HikerAPI, an API for reading Instagram data. It covers profile lookups, user media, followers, posts, comments, likers, account and reel search, hashtags, locations, stories, highlights, shared links, and audio tracks.

The server is read-only. Each exposed MCP tool corresponds to a HikerAPI HTTP GET operation, and the tool name reflects the endpoint path. For example, an endpoint for finding a user by username becomes a tool named `get_v2_user_by_username`. Returned response bodies are passed back as JSON text.

This belongs in the 🌐 Social Media category and is suited to assistants that need structured Instagram lookups rather than browser automation or write access.

## How it works

At startup, the HikerAPI MCP server downloads the live OpenAPI document from the configured API host. It uses that document to build MCP tool definitions, including argument schemas for endpoint path and query parameters. The server then communicates with the assistant over stdio and sends HTTPS requests to HikerAPI.

The default configuration exposes a curated core collection of roughly 45 tools. These select one endpoint for each common task instead of presenting every version variant to the model. Setting `HIKERAPI_TOOLS=all` exposes more than 100 non-deprecated endpoints. Deprecated operations and the `Legacy` and `System` groups remain excluded. API errors are returned as tool errors containing the HTTP status and response body.

## Setup and configuration

Install and run the HikerAPI MCP server with `npx -y hikerapi-mcp`, then provide an API key through `HIKERAPI_KEY`. The key is sent in the `x-access-key` request header.

`HIKERAPI_URL` changes the API base URL, while `HIKERAPI_SPEC_URL` controls where the OpenAPI document is loaded from. `HIKERAPI_TOOLS` selects the core or all mode. `HIKERAPI_TAGS` can restrict tools to selected comma-separated tags, and `HIKERAPI_EXCLUDE_TAGS` adds tags to the default exclusions. Timeout and response-size limits can be adjusted with the documented `*_TIMEOUT_MS` and `*_MAX_*_BYTES` variables.

Only use a custom API host when it is an intended self-hosted or proxied HikerAPI service. The server warns if the host is outside the two recognized HikerAPI hostnames because the access key will be sent there.

## Tools and capabilities

The HikerAPI MCP server can expose tools for:

- Looking up Instagram profiles and user media
- Reading post details, comments, and liker data
- Searching accounts and reels
- Retrieving popular or recent hashtag media
- Reading location details and recent location media
- Fetching stories, highlights, and shared-link data
- Looking up audio tracks

Use `tools/list` over MCP to inspect the current generated tool set and parameter schemas, since the available operations come from the live specification.

## Limitations and notes

The server only exposes GET operations, so it does not create, edit, delete, like, follow, or otherwise mutate Instagram data. API availability and response content depend on HikerAPI. The default core selection may omit less common endpoints; use all mode or tag filters when the required operation is not included.

The OpenAPI specification is fetched during startup, with configurable retry, timeout, and size limits. HikerAPI request responses are subject to the configured maximum response size, which defaults to 10 MB. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/hikerapi/readme_

