jlbadano/ig-mcp — reverse-engineered prompt
Reverse engineered prompt
Build me a Python MCP server that lets an AI assistant work with an Instagram Business account through the Instagram Graph API. I want it to connect using Facebook app credentials, an Instagram access token, and an Instagram Business Account ID from environment variables, with clear setup docs so I know how to get those values.
It should let the AI get profile details, recent posts, post insights, account pages, and publish images or videos. It should also include direct message tools for listing conversations, reading messages, and replying, but make it clear those only work if Meta grants advanced access.
Please make it feel production ready, with safe handling of secrets, helpful errors for expired or missing tokens, basic rate limit awareness, logging, tests, and an example config file. Add Docker support and simple examples showing how to connect it to an MCP compatible client. Look up current Meta and MCP docs online if you need to.
Want more depth? Deep Reverse