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_overviewgives the agent the canon map,get_dialoguereads a dialogue as a script, andsearch_worldfinds each line, option, dialogue or document where a name or phrase comes up. With a Write key,create_dialogue,add_node,edit_node,add_optionandlink_nodeslet the agent draft a scene or a new branch, andrename_dialogueandedit_optiontidy it up. - Lore keepers.
get_document,list_documentsandget_timelineread characters, places, lore and the calendar, and thecontinuity_checkprompt checks a scene against them. With a Write key,create_document,edit_documentandrelate_documentskeep the wiki up to date. - Narrative designers.
get_story_mapshows how a story's dialogues connect and where each variable is set and checked, andcheck_dialoguereports nodes nobody can reach, options without a target, dead ends and unused variables. With a Write key,create_variableandset_variable_on_nodeadd the state a branch needs, andmove_nodetidies the canvas. - Directors and artists. Director's notes → reference briefs and shot lists.
get_dialogue_metareads the Meta Areas drawn on the Dialogue Builder canvas: each area's title, note, priority and rules, likeshot = close_up, and the nodes inside with their speaker and lines. Thereference_briefandshot_listprompts turn them into a brief per area or a numbered shot list. With a Write key,add_meta_area,edit_meta_areaandset_node_metamark up the canvas for you. - Voice-over and producers.
get_character_lineslists every line of a story by speaker with line and word counts,get_world_statsgives the world's numbers and translation progress, and thevoice_casting_sheetprompt makes one entry per speaking character. - Localisers.
get_translationsreads every line with its translation and status in each language, thetranslation_reviewprompt checks meaning, tone and terms, and with a Write keyset_translationwrites a translation. - Programmers.
get_exportreturns a dialogue's Export Schema v2 JSON, as the Export button gives it, and theengine_import_guideprompt explains its shape with loader code for Unity, Godot or Unreal.

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.
- 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-madeworld addcommand. - 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> - Switch worlds. Add one key per world. Like subscriptions in
az, one world is current, and the agent can switch for a session withuse_world.uvx lorehub-mcp world list uvx lorehub-mcp world use "Tom's World" - 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.