Skip to main content

Sequential Story MCP Server

A Model Context Protocol (MCP) server for Sequential Thinking and Sequential Story as mnemonic techniques for problem-solving.

Overview

This project offers two complementary MCP tools for structuring complex problems:

  1. Sequential Story - A narrative-based approach to sequential thinking. Instead of tracking abstract thoughts, it structures problems as story elements with characters, settings, and plot developments to make them more memorable and engaging.

  2. Sequential Thinking - A pure Python port of the JavaScript implementation, eliminating Node.js dependencies

Both approaches leverage the power of sequencing and structure to enhance memory retention and problem understanding.

Features

Sequential Story

  • Build problem solutions as narrative sequences
  • Revise and branch story elements as needed
  • Track characters, settings, tones, and plot points
  • Formatted, color-coded display of story elements

Sequential Thinking

  • Structure problems as a sequence of thoughts
  • Revise or branch thinking paths as needed
  • Generate and verify solution hypotheses
  • Track thinking process completion
  • Pure Python implementation (no Node.js required)

Common Features

  • Formatted, color-coded display of elements
  • Full MCP protocol support for integration with AI systems
  • Support for branching and revision

Installation

During Development

When working with the package locally before publishing:

# Clone the repository
git clone https://github.com/dhkts1/sequentialStory
cd sequentialStory

# Install dependencies using uv
uv venv
source .venv/bin/activate
uv sync

# Install with development dependencies
uv sync --group dev

Installing with MCP

# Install in the Claude desktop app
mcp install -e . src/cli.py -n "Sequential Story"

# Install with only the Sequential Thinking tool
mcp install -e . src/cli.py -n "Sequential Thinking" --env-var "TOOLS='[\"thinking\"]'"

# Install with only the Sequential Story tool explicitly
mcp install -e . src/cli.py -n "Sequential Story" --env-var "TOOLS='[\"story\"]'"

# Install with both tools
mcp install -e . src/cli.py -n "Sequential Tools" --env-var "TOOLS='[\"thinking\",\"story\"]'"

For development:

# For development with the MCP Inspector
mcp dev src/__main__.py:main

You can also configure Claude desktop to use the tool with uvx by adding this to your Claude mcpServers.json:

"mcpServers": {
  "Sequential Story": {
    "command": "uvx",
    "args": [
      "sequential-story"
    ]
  }
}

The environment variable TOOLS controls which tools are enabled. By default, only the Sequential Story tool is enabled, but the Sequential Thinking tool can be added as needed.

This is useful when you want to focus on a specific problem-solving approach or when integrating with other MCP tools. You can also update the environment variables directly in the Claude desktop app after installation.

Example story element

{
  "element": "Our protagonist, a data scientist named Alex, encounters a mysterious pattern in the customer behavior data.",
  "elementNumber": 1,
  "totalElements": 5,
  "nextElementNeeded": true,
  "character": "Alex (data scientist)",
  "setting": "Data analysis lab",
  "tone": "Mysterious",
  "plotPoint": "Discovery of pattern"
}

Example thought element

{
  "thought": "The problem requires analyzing multiple data sources to identify correlations between customer behavior and sales patterns.",
  "thoughtNumber": 1,
  "totalThoughts": 5,
  "nextThoughtNeeded": true
}

Development

# Install pre-commit hooks
uv run pre-commit install

# Run all pre-commit checks
poe pre

Credits

This project builds on the concepts of sequential thinking and structured problem-solving, adapting these approaches to both analytical and narrative frameworks for enhanced memory and problem-solving.

The Sequential Thinking implementation is a pure Python port inspired by the JavaScript implementation from the Model Context Protocol repositories: https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking

Metadata

Release files for iflow-mcp_dhkts1-sequential-story 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_dhkts1-sequential-story 1.0.1
File Size Uploaded
iflow_mcp_dhkts1_sequential_story-1.0.1.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_dhkts1-sequential-story 1.0.1
File Interpreter ABI Platform
iflow_mcp_dhkts1_sequential_story-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / iflow_mcp_dhkts1_sequential_story-1.0.1.tar.gz

Download URL iflow_mcp_dhkts1_sequential_story-1.0.1.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
65ca319f05d602dbaa81de096dfe6591d3ed589e0e5eff4d94e9e76991bb227b
BLAKE2b-256 checksum
How to use checksums
14b1d1e23be7ded4ae59676aef729dc5399970fb68fc55af31e5bd302623405e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_dhkts1_sequential_story-1.0.1-py3-none-any.whl

Download URL iflow_mcp_dhkts1_sequential_story-1.0.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
381077baac6c74e4c3e0c25881aa2f2eb5ad95ee17d542ef1c32ac4aee402526
BLAKE2b-256 checksum
How to use checksums
5f7dd30b74464999b6d1cc8072564d259a8952b8658dfeb67430d93b0e293bac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release 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