For developers & AI tools
Connect Claude, Cursor, or any MCP client to History Cake with an API key. Your assistant turns a researched document into a real tour — stories, locations, media, tags — and publishes it when it's ready.
Step 1
Sign in to Studio with a creator or admin account.
Open Settings → API tokens and create a token.
Copy it immediately — it's shown once. Tokens look like hc_mcp_…
Tokens are stored hashed, can expire, and can be revoked at any time. Your role is re-checked on every request.
Step 2
Point any client with remote MCP support straight at the hosted server:
claude mcp add --transport http history-cake https://historycake.app/api/mcp --header "Authorization: Bearer hc_mcp_..."For clients that only speak stdio, the @history-cake/mcp bridge proxies to the same server:
{
"mcpServers": {
"history-cake": {
"command": "npx",
"args": ["-y", "@history-cake/mcp"],
"env": { "HISTORY_CAKE_API_KEY": "hc_mcp_..." }
}
}
}Step 3
create_tour_bundle takes the whole thing: tour fields, stories with coordinates and narration scripts, tags, and media imported from HTTPS URLs.
import_media_url pulls images and audio into the media library; update_tour and update_story set covers and narration. Audio must be an HTTPS file — the MCP has no AI generation, so narration comes from your side or gets uploaded later in Studio.
check_tour_publishable lists exactly what's missing (narration, cover image, route stops). When it's clean, publish_tour puts the tour live at its public URL.
The toolkit
Create, inspect, update, reorder, tag, attach media, validate, publish. The full reference with JSON schemas lives at /llms-full.txt — readable by your AI directly.
| Tool | What it does |
|---|---|
| create_tour_bundle | |
| import_media_url | |
| create_story | |
| update_tour | |
| update_story | |
| get_tour | |
| get_my_tours | |
| get_story | |
| list_stories | |
| reorder_stories | |
| set_story_role | |
| remove_story_from_tour | |
| attach_media_to_story | |
| attach_media_to_tour | |
| list_tags | |
| check_tour_publishable | |
| publish_tour |
Full schemas: /llms-full.txt · npm package: @history-cake/mcp
Good to know
API keys can only be created by creator and admin accounts, and only touch your own tours.
Per token. Bundles count as one request.
Media imports fetch public HTTPS URLs server-side and store them in our media library.
Your AI does the writing and narration. The MCP stores and publishes content — Studio itself never generates content for you.