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.3.tar.gz (488.7 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.3-py3-none-any.whl (492.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: story_vault_mcp-2.0.3.tar.gz
  • Upload date:
  • Size: 488.7 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.3.tar.gz
Algorithm Hash digest
SHA256 bb60f44db5b1134a8763d2db38a089573a25e9d479f8f5e3dafa83dfa3ac0984
MD5 c8296364c295f80e9fb42ea838449438
BLAKE2b-256 f06d89697dbdbe856b0862f6df9c8a9d1220f4fd8710458e52d5cdadaf59667a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: story_vault_mcp-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 492.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b522dec9edefe03753df6e3c2b5a08f04055a226e016258039aca74052198e98
MD5 8bba663bd035c8706e9362cb4adf3d95
BLAKE2b-256 63df2dfa71a0a119e92750e9e4d96fd4d823335df99e6ade7583e3323bf663b0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.3 This release

2 files

2.0.2

2 files

2.0.1

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