Instagram MCP Server logo

Instagram MCP Server

by MCP-Mirror

This is a Model Context Protocol (MCP) server designed to fetch Instagram posts. It leverages Chrome's existing login session to access and retrieve data.

View on GitHub

Last updated: N/A

What is Instagram MCP Server?

The Instagram MCP Server is a service that retrieves Instagram posts using Chrome's login session, adhering to the Model Context Protocol (MCP). It provides a structured way to access Instagram data programmatically.

How to use Instagram MCP Server?

To use the server, install dependencies with npm install, build the server with npm run build, and then run it using CHROME_USER_DATA_DIR=/path/to/chrome/profile npm start. You can then use the get_instagram_posts tool via JSON-RPC to fetch posts from a specified username.

Key features of Instagram MCP Server

  • Modular architecture

  • Type-safe implementation (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

Use cases of Instagram MCP Server

  • Automated Instagram data extraction

  • Content archiving

  • Social media monitoring

  • SEO optimization for Instagram content

FAQ from Instagram MCP Server

What is the CHROME_USER_DATA_DIR?

It's the path to your Chrome user data directory, which contains your login session.

What is the get_instagram_posts tool?

It fetches recent posts from an Instagram profile.

What parameters does get_instagram_posts accept?

It requires a username and optionally accepts limit, saveDir, and delayBetweenPosts.

What error codes does the server use?

The server uses standardized error codes like INVALID_REQUEST, INVALID_PARAMS, METHOD_NOT_FOUND, and INTERNAL_ERROR.

How do I run the server in development mode?

Use the command npm run dev.