/Platform

Connect Storytailor MCP

Storytailor as an agent inside your product. Your users sign in with their own Storytailor accounts, so their plan covers what they create and nothing is metered to you.

Connect your tool

Storytailor MCP is a real MCP server, 174 tools over JSON-RPC at https://mcp.storytailor.dev/mcp. Pick what you use.

  1. Add the server

    claude mcp add --scope project --transport http storytailor https://mcp.storytailor.dev/mcp \
      --header "Authorization: Bearer stk_live_..."
  2. Confirm it connected

    Run inside Claude Code. The server should list as connected.

    /mcp

Client-side trouble? Claude Code MCP docs

Check it works before you have a key

tools/list is unauthenticated on purpose, so you can prove the server is reachable from your network, and see the real catalog — before you talk to us about access.


Ready-made prompts

Paste one of these into your assistant. Each already carries the real host, the fact that the catalog is open, and the rules that are not optional, so your agent does not invent tool names or route a key through a browser.

Paste into Claude Code, Codex, Cursor or any coding agent to get a working client.

Build a small, well-typed client for an MCP server in this project's language and framework.

The server is Storytailor MCP at https://mcp.storytailor.dev/mcp. It speaks MCP over JSON-RPC 2.0:
POST with {"jsonrpc":"2.0","id":1,"method":"tools/list"} to see every tool —
that call needs NO credential, so verify it before wiring anything else.
Tool calls use method "tools/call" and authenticate with a connection header:
Authorization: Bearer <MY_KEY>. Available tools include auth.*, stories.*, characters.*, libraries.*, care_circle.*, hue.*, subscriptions.*.

Non-negotiable rules for anything you build with this:
- Never describe the output as diagnosing, screening or detecting a condition
  in a child. It surfaces what a child expressed for a person to interpret.
- Safety verdicts are server-side and cannot be bypassed. Do not add a flag
  that skips them, and fail closed if a call errors.
- Never log or echo a child's free text into third-party analytics.

Do this:
1. Call tools/list first and generate types from the returned JSON Schemas
   rather than hand-writing them. Do not invent tool names.
2. Wrap calls in one function that handles JSON-RPC errors properly —
   surface error.message, do not swallow it.
3. Read the key from the environment. Never commit it, never send it to the
   browser, and never put it in a URL.
4. Write one integration test that asserts tools/list returns a non-empty
   array, so a broken connection fails loudly in CI.
5. Show me the tool list you actually received before you write any code
   against it.

How authentication actually works

This is the part integrators get wrong, and it is worth two minutes.

Two identitiesYour client is you. The bearer token is a Storytailor user. Tools act as that user, on their libraries, against their quota.
Getting a user tokenEither the user signs in through your surface via the auth.* tools, or, better, if you have children as users — Sign in with Storytailor hands you one without you ever holding a password.
Where the token goesOn the connection, as Authorization: Bearer. A per-call accessToken argument still works as an override for multi-user servers, but the connection header is the normal path.
No account yettools/list answers anyway. Evaluate the whole catalog before you talk to us.

What you can call

174 tools, because this is the whole product rather than a slice of it. Fetch tools/list for the authoritative catalog with full JSON Schemas — generate your types from that, never from a table in a document that can go stale.

auth.*Sign-in, OTP, profile completion, password reset.
stories.*Plan, create, read, continue, translate, narrate, delete.
characters.*Define, render, regenerate, transfer, continuity.
libraries.*Storytailor IDs, reading and sensory profiles, permissions.
care_circle.*Members, invitations, sponsored seats.
hue.*Lighting as progressive enhancement. Never a dependency.
subscriptions.*Plan state and quota, so you can show a real limit rather than guess.

Things that will bite you

  • Creation is asynchronous. A story or a character is a pipeline, not a request. Call the status tool and poll; do not assume one call returns finished content, and do not hide the wait behind a spinner that lies about how long it takes.
  • Quota belongs to the user. A 402 means that person hit their plan ceiling, not that your integration is broken. Surface their real plan and limit. The subscription tools return both.
  • Safety verdicts are final. They are server-side and cannot be disabled by any flag or key. Fail closed: if a check errors, show no story rather than an unchecked one.
  • Never send us a child’s real name or birthdate. A Storytailor ID carries an ID name and an age band by design. If your form collects more, do not forward it.

This is a beta. Credentials are issued by request, after a short automated review of fit; the catalog above answers unauthenticated, so you can evaluate first.

Connect Storytailor MCP · Storytailor Platform