# Schedule Instagram posts from Codex or Cursor

You already use Codex or Cursor to write code. They can also write the week's posts: Monday's announcement, Wednesday's tip, Friday's promo. What they're missing is the tool to get them scheduled on Instagram.

With an MCP server, you give them that tool in two minutes.

## 1. Get a test key

```bash
curl -X POST https://wyroapi.com/v1/sandbox
```

Save the `api_key` in your environment:

```bash
export WYRO_API_KEY=wyro_sk_...
```

It's free, no sign-up, and everything you publish with it is simulated.

## 2a. Codex

In `~/.codex/config.toml`:

```toml
[mcp_servers.wyro]
url = "https://wyroapi.com/mcp"
bearer_token_env_var = "WYRO_API_KEY"
```

## 2b. Cursor

In `.cursor/mcp.json` (per project) or `~/.cursor/mcp.json` (global):

```json
{ "mcpServers": { "wyro": { "url": "https://wyroapi.com/mcp", "headers": { "Authorization": "Bearer wyro_sk_..." } } } }
```

## 3. Ask for the week

> Write 3 Instagram posts about our new menu and schedule them for Monday, Wednesday and Friday at noon New York time. Use these images: … Show me the preview of each one.

The agent uses the `wyro_publicar` tool with the `programar_para` field and gives you a preview link per post. Instagram needs an image or video in every post; if one is missing, the error says so and the agent fixes it.

## Time zones matter

The date uses ISO 8601 format **with an offset**: `2026-11-02T12:00:00-05:00` is noon in New York. A date without a time zone is rejected, so nobody ends up posting at 3 a.m. by mistake.

## Review what's scheduled

Ask the agent for the status (`wyro_estado_post`) or check your dashboard: each post shows the date, the networks and whether it has gone out.

## Going live

Once you're happy with the workflow, ask it to *"connect my Instagram"*. The agent gives you a link, you authorize your account and the same key starts publishing for real, with no configuration changes. Before publishing to a real account, the agent asks you for confirmation.

Full guide: [Scheduling posts](https://wyroapi.com/en/docs/scheduling) · [MCP server](https://wyroapi.com/en/docs/mcp).

---
Published on 2026-10-27 at https://wyroapi.com/en/blog/schedule-instagram-posts-codex-cursor
