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.1.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.1-py3-none-any.whl (492.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: story_vault_mcp-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 62ba71991c0a63339bbe02d107349609f600243df417807176954e2bd43a85be
MD5 bda3097016acce651f9bea21ea5e5e3f
BLAKE2b-256 12bfdc3d87238629ba6ffc33067c91f2b0340948a4ee8d7ea6327632a37b064b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: story_vault_mcp-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f93d2afe87170bd815602a991cc60e14af8eacb2fb20c8376c0dcebf89fe76
MD5 d3d861ec0dad41b556c0a4351df79d26
BLAKE2b-256 be02543976445368eface9963f4774a8af2c07bf008cf03f0d19520680b0bf88

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.3

2 files

2.0.2

2 files

This release

2.0.1 This release

2 files

2.0.0

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