Instagram MCP Server
Overview
Instagram MCP Server is a Model Context Protocol (MCP) server designed to fetch Instagram posts utilizing an existing Chrome login session.
To use the server, you need to install the dependencies, build the server, and run it by providing the path to your Chrome user data directory.
- Modular architecture for clear separation of concerns - Type-safe implementation with TypeScript - Improved error handling and logging capabilities - Configurable via environment variables - JSON-RPC 2.0 compliant communication - Automatic media downloading and metadata generation - SEO-friendly description generation
- Fetching recent posts from Instagram profiles.
- Automating media download from social media.
- Integrating Instagram data into other applications or services.
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": {
"instagram-server-next-mcp-duhlink": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}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": {
"instagram-server-next-mcp-duhlink": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"instagram-server-next-mcp-duhlink": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"instagram-server-next-mcp-duhlink": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"instagram-server-next-mcp-duhlink": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"instagram-server-next-mcp-duhlink": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-instagram-server-next-mcp-duhlink"
]
}
}
}FAQ
Do I need to log in to use this server?
Yes! You must have a valid Chrome login session for the server to fetch posts.
Can I fetch posts from any Instagram account?
You can fetch posts from public accounts and accounts where you have access.
Is there a limit to the number of posts I can fetch?
Yes, you can fetch between 1 to 50 posts at a time or "all" posts from the specified user.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":395,"uuid":"1e87670f-fa91-495b-8cc8-6082fc1ce3c7","name":"instagram-server-next-mcp","title":"Instagram MCP Server","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/2401515?v=4","created_at":"2024-12-15T06:44:59.209Z","updated_at":"2024-12-16T06:52:42.922Z","status":"created","author_name":"duhlink","author_avatar_url":"https://avatars.githubusercontent.com/u/2401515?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/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"}]]}]