---
title: "Instagram MCP for Codex: answer Instagram DMs · Spaces"
description: "Connect Codex to Instagram with Spaces: it reads and answers your Instagram DMs from your own account, inside Instagram’s limits. Free to start."
url: https://www.spacesos.com/agents/codex/instagram
---

# Instagram MCP for Codex

Yes. Spaces is the messaging layer for AI agents, and it works as a Instagram MCP server for Codex. Add Spaces to Codex, connect your own Instagram account, and Codex can read and answer your Instagram DMs, with 307 Instagram tools, inside Instagram’s limits. Codex never sees your Instagram password.

[Start free](https://app.spacesos.com/signup) [Instagram API for AI agents](https://www.spacesos.com/instagram-api)

## What Codex can do on Instagram

- Read every DM and go back through the whole history, with message requests in their own list
- Answer DMs with text, photos, videos and voice notes, and react with an emoji
- See the photos, videos, voice notes, stickers and shared posts, reels, stories and profiles people send
- Keep the inbox tidy: mark read or unread, star, archive and label conversations

Every Instagram tool is listed on [Instagram for AI agents](https://www.spacesos.com/channels/instagram).

## Connect Codex to Instagram

1. Run the command below once. It is saved in ~/.codex/config.toml for every Codex client.
2. Run codex mcp login spaces and sign in to Spaces in the browser.
3. Connect your Instagram account in Spaces. Connect your Instagram account by signing in through a secure link.

```
codex mcp add spaces --url https://api.spacesos.com/mcp
codex mcp login spaces
```

Only want Instagram? Use `https://api.spacesos.com/mcp/instagram` as the address instead, and Codex sees only the Instagram tools.

**Check it worked.** Run codex mcp list, or /mcp inside Codex. Spaces is listed with its tools.

Steps checked against [Codex MCP docs](https://developers.openai.com/codex/mcp) on 3 Nov 2026. Full Codex setup: [Connect Codex to Spaces](https://www.spacesos.com/agents/codex).

## Answer Instagram without being asked

A chat app answers when you ask it to. To have DMs answered within minutes, let your agent listen for new messages: it calls wait_for_events in a loop, or you register a URL with create_event_webhook, or create a trigger. Spaces shows on Your agent whether each agent listens or only acts when asked.

FAQ

## Questions, *answered.*

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### Is there a Instagram MCP server for Codex?

Yes. Spaces is the messaging layer for AI agents, and it works as a Instagram MCP server for Codex. Add Spaces to Codex, connect your own Instagram account, and Codex can read and answer your Instagram DMs, with 307 Instagram tools, inside Instagram’s limits. Codex never sees your Instagram password.

### Do I need the Instagram API or an approval to use Instagram with Codex?

No. Connect your Instagram account by signing in through a secure link. Spaces handles the connection, so there is no developer app to set up and nothing for Codex to approve on the Instagram side.

### Can Codex only use Instagram and nothing else?

Yes. Use https://api.spacesos.com/mcp/instagram as the address instead of https://api.spacesos.com/mcp, and Codex sees only the Instagram tools. You can also limit which accounts it may use under Your agent in Spaces.

### Will Codex answer Instagram DMs on its own?

A chat app answers when you ask it to. To have DMs answered within minutes, let your agent listen for new messages: it calls wait_for_events in a loop, or you register a URL with create_event_webhook, or create a trigger. Spaces shows on Your agent whether each agent listens or only acts when asked.

### Can Instagram block my account if Codex sends messages?

Instagram restricts accounts that send too much or too fast. Spaces keeps every action inside Instagram’s limits, paces sends and warms new accounts up, which lowers the risk without removing it. The limits are at /limits/instagram.

### What does it cost?

[Free to start](https://www.spacesos.com/pricing). Reading messages is always free. Codex itself is billed by its own maker.

## Instagram with other AI agents

[Claude Code](https://www.spacesos.com/agents/claude-code/instagram), [Claude](https://www.spacesos.com/agents/claude/instagram), [Cursor](https://www.spacesos.com/agents/cursor/instagram), [ChatGPT](https://www.spacesos.com/agents/chatgpt/instagram), [Grok](https://www.spacesos.com/agents/grok/instagram), [OpenClaw](https://www.spacesos.com/agents/openclaw/instagram), [Hermes](https://www.spacesos.com/agents/hermes/instagram), [Muse](https://www.spacesos.com/agents/muse/instagram), [Grokbot](https://www.spacesos.com/agents/grokbot/instagram), [Claude Duet](https://www.spacesos.com/agents/claude-duet/instagram), [Instinct](https://www.spacesos.com/agents/instinct/instagram), [GitHub Copilot](https://www.spacesos.com/agents/github-copilot/instagram), [n8n](https://www.spacesos.com/agents/n8n/instagram), [Perplexity](https://www.spacesos.com/agents/perplexity/instagram), [Poke](https://www.spacesos.com/agents/poke/instagram), [Mistral Vibe](https://www.spacesos.com/agents/mistral-vibe/instagram), [Copilot Studio](https://www.spacesos.com/agents/copilot-studio/instagram), [Lindy](https://www.spacesos.com/agents/lindy/instagram), [Dust](https://www.spacesos.com/agents/dust/instagram), [Google Antigravity](https://www.spacesos.com/agents/antigravity/instagram), [Devin Desktop](https://www.spacesos.com/agents/devin-desktop/instagram), [Kiro](https://www.spacesos.com/agents/kiro/instagram), [Zed](https://www.spacesos.com/agents/zed/instagram), [Warp](https://www.spacesos.com/agents/warp/instagram), [Amp](https://www.spacesos.com/agents/amp/instagram), [Goose](https://www.spacesos.com/agents/goose/instagram), [Cline](https://www.spacesos.com/agents/cline/instagram), [Junie](https://www.spacesos.com/agents/junie/instagram).

## Codex on other channels

[WhatsApp MCP for Codex](https://www.spacesos.com/agents/codex/whatsapp), [LinkedIn MCP for Codex](https://www.spacesos.com/agents/codex/linkedin), [Messenger MCP for Codex](https://www.spacesos.com/agents/codex/messenger), [Telegram MCP for Codex](https://www.spacesos.com/agents/codex/telegram).

Live in under 60 seconds

## Give Codex your Instagram today.

Connect your Instagram account in a minute. Free to start, no card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
