All news
Release

LoreHub MCP: your LoreHub world, ready for any AI agent

Your world already holds what an AI agent needs to be useful: the stories, the dialogues, who says what, the characters and places, the lore behind them. The LoreHub MCP server hands all of it to Claude, Cursor or any other app that speaks the Model Context Protocol, so you can work with your world right in your chat or editor. Your API key sets the access. Read key: agents look. Write key: agents create and edit, never delete. Every change shows in your history. Version 0.5.0 has sixteen tools that read, seventeen that write and six ready-made prompts, and keeps your keys in your system keychain.

What it does for each role

Tools that write need a Write key; everything else works with any key.

  • Writers. get_world_overview gives the agent the canon map, get_dialogue reads a dialogue as a script, and search_world finds each line, option, dialogue or document where a name or phrase comes up. With a Write key, create_dialogue, add_node, edit_node, add_option and link_nodes let the agent draft a scene or a new branch, and rename_dialogue and edit_option tidy it up.
  • Lore keepers. get_document, list_documents and get_timeline read characters, places, lore and the calendar, and the continuity_check prompt checks a scene against them. With a Write key, create_document, edit_document and relate_documents keep the wiki up to date.
  • Narrative designers. get_story_map shows how a story's dialogues connect and where each variable is set and checked, and check_dialogue reports nodes nobody can reach, options without a target, dead ends and unused variables. With a Write key, create_variable and set_variable_on_node add the state a branch needs, and move_node tidies the canvas.
  • Directors and artists. Director's notes → reference briefs and shot lists. get_dialogue_meta reads the Meta Areas drawn on the Dialogue Builder canvas: each area's title, note, priority and rules, like shot = close_up, and the nodes inside with their speaker and lines. The reference_brief and shot_list prompts turn them into a brief per area or a numbered shot list. With a Write key, add_meta_area, edit_meta_area and set_node_meta mark up the canvas for you.
  • Voice-over and producers. get_character_lines lists every line of a story by speaker with line and word counts, get_world_stats gives the world's numbers and translation progress, and the voice_casting_sheet prompt makes one entry per speaking character.
  • Localisers. get_translations reads every line with its translation and status in each language, the translation_review prompt checks meaning, tone and terms, and with a Write key set_translation writes a translation.
  • Programmers. get_export returns a dialogue's Export Schema v2 JSON, as the Export button gives it, and the engine_import_guide prompt explains its shape with loader code for Unity, Godot or Unreal.

Two Meta Areas overlap on the Dialogue Builder canvas: a wide shot of the boathouse at priority 1 and a close-up of the ledger at priority 2

Don't know the ids? Ask for "the dialogue Tom at Grandpa's" and the agent finds your world, story and dialogue itself with list_worlds, list_dialogues or search_world. Reading needs no more than Viewer access in the world. Agents never delete: there are no delete tools, and deleting stays in LoreHub.

How to use it

You need uv and an API key for each world you want to connect.

  1. Create a key. In LoreHub, open the avatar menu → Profile → API keys, pick the world, choose Read or Write, choose when the key expires and select Create key. Pick Read to explore, and Write when you want the agent to build. LoreHub shows the key, which starts with lh_, only once: copy it. The world id is on the same page: under the form once you pick a world, and next to each key in the list, as World id with a Copy button. Right after you create a key, LoreHub also shows the ready-made world add command.
  2. Add the world. Run the ready-made command, or the one below with the World id, and paste the key when it asks. The command has no key in it. It checks the key with LoreHub and stores it in your system keychain: the macOS Keychain, Windows Credential Manager or the Secret Service on Linux. No key goes in a config file.
    uvx lorehub-mcp world add --id <world id>
    
  3. Switch worlds. Add one key per world. Like subscriptions in az, one world is current, and the agent can switch for a session with use_world.
    uvx lorehub-mcp world list
    uvx lorehub-mcp world use "Tom's World"
    
  4. Connect your AI. In Claude Code, run:
    claude mcp add LoreHub -- uvx lorehub-mcp
    

    For Claude Desktop, Cursor and other apps, the LoreHub MCP page has the config to paste. It has no key in it either.

Then ask your agent something like "Read the dialogue Tom at Grandpa's and check it for dead ends", "What does our world say about the Ferryman?" or "Make a voice casting sheet for the first story".

On a machine without a keychain, such as CI or a container, set LOREHUB_API_KEY and LOREHUB_WORLD_ID in the server's environment instead: together they win over the worlds you added.

Each world gets a number of API calls a day from its plan (10 on Free), shared by all its members' keys. Most reads cost 1 call; writes and a few reads, like check_dialogue and get_dialogue_meta, cost 2 or more. Every result tells the agent how many calls are left. Each key works in one world and expires when you choose. A Write key lets agents create and edit but never delete, and every change shows in your history. If a key leaks or you stop using it, revoke it on the same page and it stops working at once.

The package is lorehub-mcp on PyPI. Directing with Meta Areas? Start with the Meta Areas guide.

Try it

Connect your agent to LoreHub and ask it about your world. If something feels off, tell us on Discord or Reddit.