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.

Updated

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).
  • 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:

export WAVEGRAIN_MCP_TOKEN="wg_pat_..."

2. List your tools.

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.

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

For AI tools

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

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

Something wrong or missing? Write to support@wavegrain.com.