Skip to main content

story-vault-mcp

MCP server for Story Vault — a local-first writing app. This server lets any MCP-compatible AI client (Claude Desktop, Cursor, Cline, Qwen Chat, …) read and write your encrypted Story Vault project data: scenes, characters, world notes, ideas, the main story/manuscript, and project memory.

This is the Python distribution (uvx story-vault-mcp). The server itself is a Node.js program; this package embeds it and launches it for you. Node.js >= 18 is required on PATH.

Install / run

uvx story-vault-mcp

Or install with pip:

pip install story-vault-mcp
story-vault-mcp

Configuration

The server needs three environment variables (your vault PIN is used only to decrypt the database and is never exposed to the AI):

Variable Required Purpose
STORY_VAULT_PIN yes Your vault PIN.
STORY_VAULT_DATA_DIR no Path to the vault data dir (default <cwd>/data).
STORY_VAULT_PROJECT_ID no Default project ID — tools can omit project_id.

Claude Desktop

Edit claude_desktop_config.json:

{
  "mcpServers": {
    "story-vault": {
      "command": "uvx",
      "args": ["story-vault-mcp"],
      "env": {
        "STORY_VAULT_PIN": "your-pin",
        "STORY_VAULT_PROJECT_ID": "1",
        "STORY_VAULT_DATA_DIR": "C:/path/to/your/vault/data"
      }
    }
  }
}

Other clients (Cursor, Cline, …)

Use the same command/args/env shape in the client's MCP configuration.

Tools

37 tools covering the full project surface — see the project's ARCHITECTURE.md ("MCP Server (External AI Access)" section) for the complete list. Highlights:

  • list_projects / get_project / create_project / update_project
  • list_scenes / read_scene_content / create_scene / save_scene_version (writes prose)
  • list_characters / create_character / update_character
  • list_world_notes / create_world_note
  • list_ideas / create_idea
  • get_main_story / add_scene_to_story / reorder_main_story
  • list_memory / add_memory / search_memory

Security

  • The PIN is consumed only to derive the SQLCipher key (scrypt, N=4096). No tool output contains it.
  • User metadata, AI provider settings/API keys, and filesystem paths are never returned.
  • Every call enforces project ownership against the vault's local user.

Building from source

# from the repo root: bundle the Node server and copy it into this package
pnpm build:mcp:npm
cp mcp/npm/dist/index.cjs mcp/python/story_vault_mcp/mcp_server.cjs
cd mcp/python && uv build

HTTP mode (optional)

story-vault-mcp --http starts a Streamable HTTP server on 127.0.0.1:3100/mcp (port via STORY_VAULT_PORT).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

story_vault_mcp-2.0.0.tar.gz (488.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

story_vault_mcp-2.0.0-py3-none-any.whl (492.0 kB view details)

Uploaded Python 3

File details

Details for the file story_vault_mcp-2.0.0.tar.gz.

File metadata

  • Download URL: story_vault_mcp-2.0.0.tar.gz
  • Upload date:
  • Size: 488.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for story_vault_mcp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 83b0752334904cb0294889878a50f01ccfcb130ef6b6da2c96e9c93b65274d9e
MD5 ba488d9da4210cf96fefed39afc55205
BLAKE2b-256 171ebe16027ab2167b510ee029243435075b0cc77d0b30d6662c242d762e3245

See more details on using hashes here.

File details

Details for the file story_vault_mcp-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: story_vault_mcp-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 492.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for story_vault_mcp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f691cb5bdcd60097919ed662f9b2875e126a8908ef6dca7116b864e3004564a
MD5 36e51e9e6f9e0ca4876ea96bb9682994
BLAKE2b-256 3470135c82b63edce07ae0812f9b24da45bbbdd042b3e8b23dc9c03b3628777e

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

This release

2.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page