# Wavegrain for developers

> Connect AI agents and automation tools to Wavegrain through its MCP server with 79 tools, or post your own images and videos through the Posting API.

> Index of these docs: https://wavegrain.com/developers/llms.txt

Wavegrain makes carousels and TikTok slideshows.
It has two public interfaces: an MCP server for AI agents, and the Posting API (`/api/v1`) for programs that post their own images and videos.
The MCP server is one endpoint that AI agents and automation tools call to read your brands and slideshows, change saved work, and make new slideshows with your credits.
MCP, the Model Context Protocol, is the open standard that Claude, ChatGPT, Codex, Cursor, n8n, Make and Zapier use to call tools.

## What you can build

- An agent that writes a week of posts for a brand and puts them on your Wavegrain Calendar for you to approve.
- An n8n, Make or Zapier workflow that asks for a slideshow every Monday ([what a workflow can automate](/integrations)).
- A script that exports finished slideshows as ZIP files.

Wavegrain makes the slides; your agent decides what to make.
An agent can schedule a slideshow on the Calendar. You approve it in Wavegrain before anything is posted, unless you let that agent's key approve.

## Quickstart

**1. Make an access key.**
In Wavegrain, open Settings, AI agents and API, and pick "Other MCP tool" under "Choose your AI".
Make a key with the `read` permission.
It starts with `wg_pat_` and is shown once.
Save it in an environment variable:

```bash
export WAVEGRAIN_MCP_TOKEN="wg_pat_..."
```

**2. List your tools.**

```bash
curl -N https://wavegrain.com/api/mcp \
  -H "Authorization: Bearer $WAVEGRAIN_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

**3. Call a tool.**

```bash
curl -N https://wavegrain.com/api/mcp \
  -H "Authorization: Bearer $WAVEGRAIN_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_slideshows","arguments":{"limit":5}}}'
```

The answer is a JSON-RPC result with your slideshows in `structuredContent`.
It may arrive as one server-sent `message` event (`data: {...}`), so accept both content types.
The server is stateless: no `initialize` call or session is needed first.

In practice you will not write these requests yourself.
Add the server to your agent or automation tool instead; the guides below show each one.

## Smaller tool lists

`https://wavegrain.com/api/mcp` lists every tool.
Two more addresses serve the same server with fewer tools, so your agent reads less on every turn:

- `https://wavegrain.com/api/mcp/core`: the tools most chats need, about 40 % of the text: brands, styles, slideshows, editing, the Calendar, posting and approving.
- `https://wavegrain.com/api/mcp/readonly`: only the tools that need the `read` permission. Nothing there changes, spends credits or posts, whatever the key may do.

The same key or connected app works at all three addresses; its permissions decide what it may do.

## Next

- [Authentication](/developers/authentication): access keys, permissions, and OAuth for hosted apps.
- [MCP tool reference](/developers/mcp-tools): every tool by permission, each linked to its page of inputs and outputs.
- [Posting API](/developers/posting-api): post your own images and videos with an access key.
- [Webhooks](/developers/webhooks): signed events when a post goes out or fails.
- [Limits and errors](/developers/limits-and-errors): rate limits, credits and what each error means.
- [Changelog](/developers/changelog): dated changes to the tools and the API that can change what your calls make or cost.
- [API reference](/developers/api-reference): the OpenAPI document for the endpoint and the OAuth server.
- Guides: [Claude](/developers/guides/claude), [ChatGPT](/developers/guides/chatgpt), [Codex](/developers/guides/codex), [Cursor](/developers/guides/cursor), [n8n](/developers/guides/n8n), [Make](/developers/guides/make), [Zapier](/developers/guides/zapier).

## For AI tools

Every page here has a Markdown version: add `.md` to its address.
[`/developers/llms.txt`](/developers/llms.txt) lists the pages, and [`/developers/llms-full.txt`](/developers/llms-full.txt) holds all of them in one file.
The tool list is also JSON at [`/developers/mcp-tools.json`](/developers/mcp-tools.json), and the OpenAPI document at [`/developers/openapi.json`](/developers/openapi.json).

Slideshows are made through the MCP server; the Posting API posts media you already have.
