Lets AI assistants interact with Instagram through MCP tools.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add instagram --env IG_PASSWORD='<IG_PASSWORD>' --env IG_USERNAME='<IG_USERNAME>' -- npx -y mcp-instagram~/.codex/config.toml
[mcp_servers.instagram]
command = "npx"
args = ["-y", "mcp-instagram"]
env = { IG_PASSWORD = "<IG_PASSWORD>", IG_USERNAME = "<IG_USERNAME>" }
# codex mcp add instagram --env IG_PASSWORD='<IG_PASSWORD>' --env IG_USERNAME='<IG_USERNAME>' -- npx -y mcp-instagram~/.cursor/mcp.json
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": [
"-y",
"mcp-instagram"
],
"env": {
"IG_PASSWORD": "<IG_PASSWORD>",
"IG_USERNAME": "<IG_USERNAME>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"instagram": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-instagram"
],
"env": {
"IG_PASSWORD": "<IG_PASSWORD>",
"IG_USERNAME": "<IG_USERNAME>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": [
"-y",
"mcp-instagram"
],
"env": {
"IG_PASSWORD": "<IG_PASSWORD>",
"IG_USERNAME": "<IG_USERNAME>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": [
"-y",
"mcp-instagram"
],
"env": {
"IG_PASSWORD": "<IG_PASSWORD>",
"IG_USERNAME": "<IG_USERNAME>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"instagram": {
"command": "npx",
"args": [
"-y",
"mcp-instagram"
],
"env": {
"IG_PASSWORD": "<IG_PASSWORD>",
"IG_USERNAME": "<IG_USERNAME>"
}
}
}
}Environment variables
IG_PASSWORDIG_USERNAME
Replace the placeholders with your own credentials and keep them out of version control.