David Ashby

David Ashby

Full Instagram API MCP Server

Need help? Want access to this workflow + many more paid workflows + live Q&A sessions with a top verified n8n creator?

Join the community

Complete MCP server exposing 27 Instagram API operations to AI agents.

⚑ Quick Setup

  1. Import this workflow into your n8n instance
  2. Credentials Add Instagram API credentials
  3. Activate the workflow to start your MCP server
  4. Copy the webhook URL from the MCP trigger node
  5. Connect AI agents using the MCP URL

πŸ”§ How it Works

This workflow converts the Instagram API into an MCP-compatible interface for AI agents.

β€’ MCP Trigger : Serves as your server endpoint for AI agent requests
β€’ HTTP Request Nodes : Handle API calls to https://api.instagram.com/v1
β€’ AI Expressions : Automatically populate parameters via $fromAI() placeholders
β€’ Native Integration : Returns responses directly to the AI ​​agent

πŸ“‹ Available Operations (27 total)

πŸ”§ Geographies (1 endpoints)

β€’ GET /geographies/{geo-id}/media/recent : Get recent media from a custom geo-id.

πŸ”§ Locations (3 endpoints)

β€’ GET /locations/search : Search Locations by Coordinates
β€’ GET /locations/{location-id} : Get information about a location.
β€’ GET /locations/{location-id}/media/recent : Get a list of recent media objects from a given location.

πŸ”§ Media (10 endpoints)

β€’ GET /media/popular : Get Popular Media
β€’ GET /media/search : Search Media by Area
β€’ GET /media/shortcode/{shortcode} : Get information about a media object.
β€’ GET /media/{media-id} : Get information about a media object.
β€’ GET /media/{media-id}/comments : Get a list of recent comments on a media object.
β€’ POST /media/{media-id}/comments : Create a comment on a media object.
β€’ DELETE /media/{media-id}/comments/{comment-id} : Remove a comment.
β€’ DELETE /media/{media-id}/likes : Remove a like on this media by the current user.
β€’ GET /media/{media-id}/likes : Get a list of users who have liked this media.
β€’ POST /media/{media-id}/likes : Set a like on this media by the current user.

πŸ”§ Tags (3 endpoints)

β€’ GET /tags/search : Search Tags by Name
β€’ GET /tags/{tag-name} : Get information about a tag object.
β€’ GET /tags/{tag-name}/media/recent : Get a list of recently tagged media.

πŸ”§ Users (10 endpoints)

β€’ GET /users/search : Search Users by Name
β€’ GET /users/self/feed : Get User Feed
β€’ GET /users/self/media/liked : Get User Liked Media
β€’ GET /users/self/requested-by : Get Follow Requests
β€’ GET /users/{user-id} : Get basic information about a user.
β€’ GET /users/{user-id}/followed-by : Get the list of users this user is followed by.
β€’ GET /users/{user-id}/follows : Get the list of users this user follows.
β€’ GET /users/{user-id}/media/recent : Get the most recent media published by a user.
β€’ GET /users/{user-id}/relationship : Get information about a relationship to another user.
β€’ POST /users/{user-id}/relationship : Modify the relationship between the current user and the target user.

πŸ€– AI Integration

Parameter Handling : AI agents automatically provide values ​​for:
β€’ Path parameters and identifiers
β€’ Query parameters and filters
β€’ Request body data
β€’ Headers and authentication

Response Format : Native Instagram API responses with full data structure

Error Handling : Built-in n8n HTTP request error management

πŸ’‘ Usage Examples

Connect this MCP server to any AI agent or workflow:

β€’ Claude Desktop : Add MCP server URL to configuration
β€’ Cursor : Add MCP server SSE URL to configuration
β€’ Custom AI Apps : Use MCP URL as tool endpoint
β€’ API Integration : Direct HTTP calls to MCP endpoints

✨ Benefits

β€’ Zero Setup : No parameter mapping or configuration needed
β€’ AI-Ready : Built-in $fromAI() expressions for all parameters
β€’ Production Ready : Native n8n HTTP request handling and logging
β€’ Extensible : Easily modify or add custom logic

πŸ†“ Free for community use ! Ready to deploy in under 2 minutes.

Do you want to automate your business?

Let's talk about your project