Instagram MCP Server logo

Instagram MCP Server

by duhlink

The Instagram MCP Server fetches Instagram posts using Chrome's existing login session. It utilizes the Model Context Protocol (MCP) for communication.

View on GitHub

Last updated: N/A

What is Instagram MCP Server?

The Instagram MCP Server is a tool that allows you to fetch Instagram posts programmatically using Chrome's existing login session. It acts as a server implementing the Model Context Protocol (MCP) to retrieve data from Instagram.

How to use Instagram MCP Server?

  1. Install dependencies using npm install. 2. Build the server using npm run build. 3. Run the server by setting the CHROME_USER_DATA_DIR environment variable to the path of your Chrome profile and then executing npm start. You can then use the available tools, such as get_instagram_posts, by sending JSON-RPC 2.0 compliant requests to the server.

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

  • Automating Instagram data collection

  • Building Instagram scrapers

  • Creating custom Instagram analytics dashboards

  • Integrating Instagram data into other applications

FAQ from Instagram MCP Server

What is MCP?

MCP stands for Model Context Protocol, a communication protocol used for fetching data.

What is CHROME_USER_DATA_DIR?

It is the path to your Chrome user data directory, which contains your login session and other profile information.

How do I find my Chrome user data directory?

The location varies depending on your operating system. Search online for instructions specific to your OS.

What is JSON-RPC 2.0?

JSON-RPC 2.0 is a stateless, light-weight remote procedure call (RPC) protocol encoded in JSON.

What are the limitations of the get_instagram_posts tool?

The limit parameter for get_instagram_posts allows fetching a maximum of 50 posts at a time, or all posts.