Skip to main content
Glama
SagaSmithAI

SagaSmith Narrative MCP

Official
by SagaSmithAI

SagaSmith Narrative MCP

An authoritative, system-neutral MCP for long-form tabletop narrative play. It depends on sagasmith-core for durable campaigns, transactions, revisions, documents, continuity ledgers, snapshots, and branches.

The base runtime has two phases: lobby and play. A profile may opt into an authoritative conflict phase. Native MCP tools are session-scoped and dynamic; hosts must process tools/list_changed notifications.

The server never guesses rules from prose. A campaign binds an immutable profile version and checksum. Profiles may use Level 0 (explicit Agent/human rulings) or the limited pure Level 1 mechanics in this package. More complex rules require a separate system provider.

Lobby administrators can inspect campaign-scoped profile/Pack drafts through narrative_query. Access changes support grant and revoke operations with last-owner protection; controlled actors can be updated through actor_change. Recovery queries and snapshot/branch mutations are administrator-only.

See Architecture and authority and Profile and Pack lifecycle for the durable product boundary. Three self-authored regression campaigns live in fixtures/ash-harbor, fixtures/moss-road-seasons, and fixtures/echo-manor-voices. The third is a 15-session, five-NPC character-performance campaign with declared goals, private motives, red lines, false beliefs, relationship arcs, voice markers, isolated dialogue, and a recovered alternate ending.

Development

python -m pip install -e ".[dev]"
pytest
ruff check .

Run the original campaign fixtures concurrently through real stdio MCP sessions:

python scripts/regression_parallel_campaigns.py --output .runs/parallel

The runner opens real stdio MCP sessions, uses a separate session identity for each principal, executes every declared route step, follows a focused alternate branch, and emits machine-readable per-campaign timelines and a combined summary. A non-zero exit means the run is not accepted.

The Agent Host integration uses the MCP and Agent repositories' own environments: the test process runs with ../SagaSmith-agent/.venv/Scripts/python.exe, while the spawned MCP server runs with this repository's .venv/Scripts/python.exe:

../SagaSmith-agent/.venv/Scripts/python.exe -m pytest -q tests/test_agent_host_integration.py

Run locally with sagasmith-narrative-mcp. Its independent default home is ~/.sagasmith/narrative-mcp. Set SAGASMITH_NARRATIVE_MCP_HOME to relocate it, SAGASMITH_NARRATIVE_MCP_DATABASE_URL to use an explicit database, and SAGASMITH_NARRATIVE_MCP_BOUND_PRINCIPAL_ID when the transport authenticates one principal.

Without SAGASMITH_NARRATIVE_MCP_BOUND_PRINCIPAL_ID, stdio is a trusted single-user local mode; model-supplied principal fields are not multiplayer authentication. A multiplayer deployment must bind one authenticated principal per MCP process through a trusted transport. Shared-principal HTTP exposure is not currently supported and the server must not be published directly to a network.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server for managing Dungeons & Dragons campaigns with tools for characters, NPCs, locations, quests, combat encounters, and session tracking.
    30
    12
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to act as RPG Game Masters by managing campaign state including characters, inventory, quests, and logs through MCP tools. Supports campaign mutations and provides both MCP and HTTP API access to RPG session data.
    2
  • A
    license
    B
    quality
    D
    maintenance
    A comprehensive MCP server for managing AI-assisted Dungeons & Dragons campaigns, featuring tools for character sheets, combat tracking, and world-building. It enables players and DMs to interact with 5e game mechanics and query personal PDF rulebooks using RAG capabilities.
    97
    2
    MIT
  • A
    license
    -
    quality
    F
    maintenance
    Enables LLM-driven text game state management by exposing MCP tools for managing players, locations, items, entities, and abstract concepts.
    MIT

View all related MCP servers

Related MCP Connectors

  • Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.

  • Manage TTRPG campaigns: NPCs, locations, factions, quests, sessions, lore, and knowledge graphs.

  • MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SagaSmithAI/SagaSmith-narrative-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server