# A social media MCP: how to give your agent the ability to publish

AI agents already write good content. What they're missing is the last step: publishing it. With a social media MCP server, Claude Code, Codex or Cursor can publish to Instagram, TikTok or LinkedIn from the same conversation.

This article covers which tools an agent needs to publish well, with a real example you can try for free.

## What tools an agent needs

Less is more. An agent picks better among 5 clear tools than among 40. To publish, this is enough:

| Tool | What it's for |
| --- | --- |
| `wyro_empezar` | Create a test key if there isn't one |
| `wyro_cuentas` | See which networks it can publish to |
| `wyro_publicar` | Publish or schedule |
| `wyro_estado_post` | Check whether it went out and get the link |
| `wyro_conectar_cuenta` | Give the person the link to connect their real account |

## Three decisions that make it work on the first try

**1. Trying it shouldn't require anything.** If the agent has to ask the person to sign up for a dashboard and copy a key, the flow breaks. With `wyro_empezar`, the agent creates its own test key and publishes to simulated accounts in seconds.

**2. Every response says what to do next.** Besides the data, responses include a `next_step` field in plain language: *"Show the user this preview. To publish for real, have them connect their account at…"*. The agent follows it and the person gets to the next step on their own.

**3. Errors teach.** A useful error for an agent says what happened, how to fix it and where the docs are:

```json
{
  "code": "media_required",
  "message": { "en": "That network needs an image or a video." },
  "fix": { "en": "Add \"media\": [{\"url\": \"https://...\"}] with a public URL." },
  "docs_url": "https://wyroapi.com/en/docs/errors#media_required"
}
```

## And one safety rule

On real accounts, the agent **always** asks for confirmation. `wyro_publicar` won't publish to a real account until it receives `confirmar: true`, and the tool description tells the model to show the text first and wait for a yes.

## Try it

```bash
claude mcp add --transport http wyro https://wyroapi.com/mcp
```

Without a key, the MCP server only exposes `wyro_empezar`: ask Claude *"get started with wyro and publish a test post on LinkedIn"* and watch it create the key, publish and show you the preview.

- Guide for agents: https://wyroapi.com/AGENTS.md
- Reference: https://wyroapi.com/en/llms.txt

---
Published on 2026-10-26 at https://wyroapi.com/en/blog/social-media-mcp
