drio
Open app

Instagram MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

Instagram MCP Server is a Model Context Protocol (MCP) server designed to fetch Instagram posts using an existing Chrome login session.

To use the server, install the dependencies, build the server, and run it with the path to your Chrome user data directory.

  • Modular architecture with clear separation of concerns - Type-safe implementation using TypeScript - Improved error handling and logging - Configurable through environment variables - JSON-RPC 2.0 compliant communication - Automatic media downloading and metadata generation - SEO-friendly description generation
  1. Fetching recent posts from Instagram profiles
  2. Automating media downloads from Instagram
  3. Generating metadata for Instagram posts

Add to your AI client

Use these steps to connect Instagram MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "duhlink-instagram-server-next-mcp-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-duhlink-instagram-server-next-mcp-mcp-mirror"
      ]
    }
  }
}

FAQ

Can I fetch posts from any Instagram profile?

Yes, you can fetch posts from any public Instagram profile by providing the username.

Is there a limit to the number of posts I can fetch?

Yes, you can specify a limit between 1 and 50, or fetch all posts.

Do I need to be logged into Instagram to use this server?

Yes, you need to have a valid Chrome login session to access Instagram posts.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":658,"uuid":"30a534b0-9f65-46bd-9eaa-71964b13595f","name":"duhlink_instagram-server-next-mcp","title":"Instagram MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2024-12-30T03:25:40.747Z","updated_at":"2025-02-23T07:15:12.415Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"instagram,mcp-server,social-media","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/duhlink_instagram-server-next-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]