For developers & AI tools
Let your AI build History Cake tours.
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
Get an API key
- 1
Sign in to Studio with a creator or admin account.
- 2
Open Settings → API tokens and create a token.
- 3
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
Connect your AI
Remote (recommended)
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_..."Via npx (stdio clients)
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
From document to published tour
Create the tour in one call
create_tour_bundle takes the whole thing: tour fields, stories with coordinates and narration scripts, tags, and media imported from HTTPS URLs.
Add the media
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, then publish
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
16 tools, everything a tour needs
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
Limits & guarantees
Creator accounts only
API keys can only be created by creator and admin accounts, and only touch your own tours.
120 requests per minute
Per token. Bundles count as one request.
HTTPS media only
Media imports fetch public HTTPS URLs server-side and store them in our media library.
No AI features over MCP
Your AI does the writing and narration. The MCP stores and publishes content — Studio itself never generates content for you.