home / mcp / instagram120 mcp server
Provides access to the Instagram120 API via MCP, exposing endpoints for posts, reels, user info, stories, highlights, and more.
Configuration
View docs{
"mcpServers": {
"bach-ai-tools-bachai-instagram120": {
"command": "python",
"args": [
"server.py"
],
"env": {
"API_KEY": "your_api_key_here"
}
}
}
}You can access the Instagram120 API through this MCP server, enabling you to integrate Instagram data and actions into your applications with a standardized MCP interface. This server exposes a set of endpoints for posts, reels, user info, stories, highlights, and more, while simplifying authentication and deployment via MCP clients.
Connect to the Instagram120 MCP Server using an MCP client or launcher. You will run the server via stdio, which means you start a local process that the MCP platform communicates with through standard input and output. You can choose from multiple start methods, depending on your environment and preference.
Prerequisites: ensure you have Python and a working Python environment, and you can install Python packages with pip.
Install the package from PyPI:
pip install bach-instagram120Or install from source in development mode (editable):
pip install -e .Run the server using one of the supported methods.
# Using uvx (recommended, no extra install required)
uvx --from bach-instagram120 bach_instagram120
# Or specify a version
uvx --from bach-instagram120@latest bach_instagram120# Development mode
python server.pyAfter installation, you can also run the installed command directly (requires that you installed the package):
bach_instagram120API access requires authentication. Set your API key in the environment before starting the server.
Environment variable needed:
export API_KEY="your_api_key_here"To run via Cursor or Claude Desktop, configure the MCP wrapper to start the stdio server with the proper environment variable. The following examples show how to wire the API key into the MCP configuration file.
The server provides endpoints for various Instagram features, including posts, reels, user info, highlights, stories, and media access. Use the corresponding MCP endpoints in your application to retrieve data or perform actions.
Get Instagram posts by user ID or username. Supports optional pagination via maxId to retrieve the next set of posts.
Get Instagram reels by user ID or username. Supports pagination via maxId for continued retrieval.
Retrieve user information by user ID or username.
Fetch highlights for a user.
Retrieve stories within highlights.
Get a specific story by username and ID.
Convert HLS streams to MP4 format for easy playback.
Get multiple stories for a user.
Retrieve video links related to posts or reels.
Get profile information for a user.
Get data bypassing CORS restrictions.
Fetch a post or reel by its shortcode.