Developers
API & MCP
Connect CueTwin to your tools: send scripts and files through the API, or let an AI assistant (Claude, Cursor, VS Code…) create and edit scripts for you through MCP.
To start, create a key in CueTwin → Developers. It is free and works on every plan.
MCP server
With MCP, your AI assistant can list, write, edit and import scripts. Ask it, for example: “Write a 2-minute launch script and save it to CueTwin.”
URL
https://cuetwin.com/api/mcpIn the examples, replace ct_live_A_TUA_CHAVE with your key. Create it in CueTwin → Developers.
Install in CursorOpens Cursor to confirm. Or, by hand, in Settings → MCP → Add, paste:
{
"mcpServers": {
"cuetwin": {
"url": "https://cuetwin.com/api/mcp",
"headers": {
"Authorization": "Bearer ct_live_A_TUA_CHAVE"
}
}
}
}Available tools
list_scripts·get_script·get_accountcreate_script·update_script·delete_scriptimport_file(.txt, .md, .html, .docx, .pdf)
API
A JSON REST API. Authenticate each request with the Authorization header. Your plan limits apply, and changes to a script show straight away on screens presenting it.
Base URL
https://cuetwin.com/api/v1Authorization: Bearer ct_live_A_TUA_CHAVE| GET | /me | Your account, plan and scripts used. |
| GET | /scripts | Lists scripts (optional: ?folder=YouTube/Shorts for one folder, ?folder= for the root). |
| POST | /scripts | Creates a script: { title, content, folder? }. The folder is a name or path and is created if missing. |
| POST | /scripts/import | Creates a script from a .txt, .md, .html, .docx or .pdf file. |
| GET | /scripts/:id | One script with its full text. |
| PATCH | /scripts/:id | Changes the title, text or folder. |
| POST | /scripts/:id/import | Replaces a script’s text with a file’s. |
| DELETE | /scripts/:id | Deletes a script. |
Create a script
curl https://cuetwin.com/api/v1/scripts \
-H "Authorization: Bearer ct_live_A_TUA_CHAVE" \
-H "Content-Type: application/json" \
-d '{"title": "Launch", "content": "## Opening\n\nHello everyone! [SMILE]"}'Upload a file
curl https://cuetwin.com/api/v1/scripts/import \
-H "Authorization: Bearer ct_live_A_TUA_CHAVE" \
-F "file=@speech.docx" \
-F "folder=Events"JavaScript
const res = await fetch('https://cuetwin.com/api/v1/scripts', {
method: 'POST',
headers: { Authorization: 'Bearer ct_live_A_TUA_CHAVE', 'Content-Type': 'application/json' },
body: JSON.stringify({ title: 'Tuesday video', content: 'Hi! Today we talk about…' }),
});
const script = await res.json(); // { id, title, content, wordCount, seconds, … }Script format
- A blank line starts a new paragraph.
## Titlecreates a section (shown, not read).[PAUSE]is a note for the speaker (shown, not read).