HasData Instagram — Claude Code MCP server: how to install
A hosted MCP server that retrieves public Instagram profiles, feeds, and comments without an account login. Built for competitive analysis and content auditing.
claude mcp add instagram -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcpWhat HasData Instagram does
The server queries public Instagram endpoints and returns structured JSON to the client. It handles profile lookups, feed walking, and comment extraction on individual posts or reels. Captions arrive with hashtags and mentioned handles pre-parsed into distinct arrays, saving your agent from parsing text with regex.
Setup requires no social media account credentials. The server runs as a hosted endpoint over streamable HTTP at https://mcp.hasdata.com/mcp?apis=instagram or locally via the @hasdata/instagram-mcp launcher package. A single profile request bundles the twelve latest posts right away, saving round trips during account reviews.
Usage requires a HASDATA_API_KEY. The free tier includes 1,000 monthly credits, which equals 100 API queries. Without a valid HasData API key, calls fail immediately.
What it helps with
- fetch public profile metadata and bio links
- extract recent posts with pre-parsed hashtags and mentions
- retrieve comments and engagement counts from a specific post URL
- compare follower counts across multiple public accounts
Example prompts for the agent
- Fetch the profile for @nasa and summarize the bio links.
- Review the last twelve posts from @natgeo and list every mentioned account.
- Retrieve the comments and like count for this post URL.
How to install HasData Instagram
1Platform CLI
claude mcp add instagram -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcpReplace <…> with your own values
2Platform CLI: remote server
claude mcp add --transport http hasdata-instagram 'https://mcp.hasdata.com/mcp?apis=instagram'1Platform CLI: remote server
codex mcp add hasdata-instagram --url 'https://mcp.hasdata.com/mcp?apis=instagram'2Platform CLI
codex mcp add hasdata-instagram --env HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"hasdata-instagram": {
"url": "https://mcp.hasdata.com/mcp?apis=instagram"
}
}
}{
"mcpServers": {
"hasdata-instagram": {
"command": "npx",
"args": [
"-y",
"@hasdata/instagram-mcp"
],
"env": {
"HASDATA_API_KEY": "<HASDATA_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"hasdata-instagram": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=instagram"
}
}
}{
"servers": {
"hasdata-instagram": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hasdata/instagram-mcp"
],
"env": {
"HASDATA_API_KEY": "<HASDATA_API_KEY>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http hasdata-instagram 'https://mcp.hasdata.com/mcp?apis=instagram'2Platform CLI
gemini mcp add -e HASDATA_API_KEY=<HASDATA_API_KEY> hasdata-instagram npx -y @hasdata/instagram-mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about HasData Instagram
How to install HasData Instagram in Claude Code?
Run claude mcp add instagram -e HASDATA_API_KEY=<HASDATA_API_KEY> -- npx -y @hasdata/instagram-mcp.
What does HasData Instagram do?
It queries public Instagram data, returning structured JSON for account profiles, post feeds, and comments.
Do I need an Instagram account to use this server?
No personal account is needed. The server reads public endpoints strictly via HasData API without login credentials.