mcp-sequential-thinking
Local MCP work notes with persistent sessions, decisions, evidence and resumable tasks.
Install / Use
claude mcp add arben-adm -- npx -y github:arben-adm/mcp-sequential-thinkingIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of mcp-sequential-thinking
mcp-sequential-thinking scores 90/100 on our quality scale, 268th of 593 Data & Analytics skills we index (top 46%).
Its MCP Server is 17 KB long, well organised into 35 sections with 18 code examples: a thorough specification that gives an agent plenty to work with.
It has 959 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 5 days ago, so mcp-sequential-thinking is actively maintained.
- Our last check on 2026-10-18 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 95/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-sequential-thinking compared with similar skills
All 4 of these similar skills score higher than mcp-sequential-thinking; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-sequential-thinking (this skill)by arben-adm | 90 | 959 | 5d ago | MCP Server |
| claude-memby thedotmack | 100 | 102.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 100.4k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 76.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.5k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-sequential-thinking?
- Run
claude mcp add arben-adm -- npx -y github:arben-adm/mcp-sequential-thinking. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-sequential-thinking work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-sequential-thinking safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-sequential-thinking still maintained?
- The repository was last updated 5 days ago, so mcp-sequential-thinking is actively maintained.
Skill content
View source on GitHubSequential Thinking MCP Server
A Model Context Protocol (MCP) server providing a structured thinking journal: schema-validated thoughts, an append-only audit trail, structural analysis, and session export/import. It records and organizes a thinking process through defined stages — it does not evaluate, generate, or improve the reasoning itself; that stays with whatever model is calling it.
<a href="https://glama.ai/mcp/servers/m83dfy8feg"><img width="380" height="200" src="https://glama.ai/mcp/servers/m83dfy8feg/badge" alt="Sequential Thinking Server MCP server" /></a>
Features
- Structured Thinking Framework: Organizes thoughts through standard cognitive stages (Problem Definition, Research, Analysis, Synthesis, Conclusion), with warnings (or, in
--strict-stagesmode, rejection) when a thought skips or backtracks a stage - Revisions & Branching: Revise earlier thoughts or fork alternative lines of reasoning, with revision- and branch-aware analysis and summaries
- Thought Tracking: Records and manages sequential thoughts with metadata as a structured, typed audit trail (
structured_contenton every tool response) - Related Thought Analysis: Finds thoughts that are lexically similar to the current one, independent of stage, plus a separate same-tag/same-stage grouping — a categorical signal, not a claim of semantic relevance
- Progress Monitoring: Explicit mainline position, total recorded thoughts, branch count, and revision count — not a single ambiguous percentage
- Summary Generation: Extracts the actual recorded thinking (per-stage excerpts, aggregated challenged assumptions, open branches, revision chains) alongside structural statistics — a deterministic extraction, not new reasoning
- Persistent Storage: Append-only JSONL session log with thread-safety and automatic crash recovery
- Data Import/Export: Share and reuse thinking sessions
- Extensible Architecture: Easily customize and extend functionality
- Robust Error Handling: Protocol/validation errors (bad stage, duplicate thought number, path traversal) fail the call outright; execution errors the caller can adapt to come back as a normal tool result
- Type Safety: Comprehensive type annotations (
mypy --strictclean) and Pydantic validation, including declared output schemas for every tool
Prerequisites
- Python 3.10 or higher
- UV package manager (Install Guide)
Key Technologies
- Pydantic: For data validation, serialization, and structured tool output schemas
- Portalocker: For thread-safe file access
- MCP Python SDK 2.x (
mcp.server.mcpserver.MCPServer): For Model Context Protocol integration
Project Structure
mcp-sequential-thinking/
├── mcp_sequential_thinking/
│ ├── server.py # Main server implementation and MCP tools
│ ├── models.py # Data models with Pydantic validation
│ ├── storage.py # Thread-safe persistence layer
│ ├── storage_utils.py # Shared utilities for storage operations
│ ├── analysis.py # Thought analysis and pattern detection
│ ├── utils.py # Common utilities and helper functions
│ ├── logging_conf.py # Centralized logging configuration
│ └── __init__.py # Package initialization
├── tests/
│ ├── test_analysis.py # Tests for analysis functionality
│ ├── test_models.py # Tests for data models
│ ├── test_storage.py # Tests for persistence layer
│ └── __init__.py
├── run_server.py # Server entry point script
├── debug_mcp_connection.py # Utility for debugging connections
├── README.md # Main documentation
├── CHANGELOG.md # Version history and changes
├── example.md # Customization examples
├── LICENSE # MIT License
└── pyproject.toml # Project configuration and dependencies
Quick Start
The package is published on PyPI as mcp-sequential-thinking. The easiest way to run it is via uvx — no install step needed:
uvx mcp-sequential-thinking
Or install it permanently:
pip install mcp-sequential-thinking
mcp-sequential-thinking
Development Setup
To work on the code, clone the repository and set it up from source:
-
Set Up Project
# Create and activate virtual environment uv venv .venv\Scripts\activate # Windows source .venv/bin/activate # Unix # Install package and dependencies uv pip install -e . # For development with testing tools uv pip install -e ".[dev]" # For all optional dependencies uv pip install -e ".[all]" -
Run the Server
# Run directly uv run -m mcp_sequential_thinking.server # Or use the installed script mcp-sequential-thinking -
Run Tests
# Run all tests pytest # Run with coverage report pytest --cov=mcp_sequential_thinking
Claude Desktop Integration
Add to your Claude Desktop configuration:
- Linux:
~/.config/Claude/claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Option 1: Using uvx with the PyPI package (recommended)
No clone, no venv, no manual updates — uvx fetches the package from PyPI and runs it:
{
"mcpServers": {
"sequential-thinking": {
"command": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
To test unreleased changes, point uvx at the repository instead:
{
"mcpServers": {
"sequential-thinking": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/arben-adm/mcp-sequential-thinking",
"mcp-sequential-thinking"
]
}
}
}
Option 2: Using the installed entry point
If you've installed the package with pip install mcp-sequential-thinking (or pip install -e . from a clone):
{
"mcpServers": {
"sequential-thinking": {
"command": "mcp-sequential-thinking"
}
}
}
Option 3: Using a local clone's virtual environment (development)
If you have set up the project with uv venv && uv pip install -e ., point directly to the venv Python interpreter. This avoids dependency resolution issues (e.g., on systems with Python 3.14+):
{
"mcpServers": {
"sequential-thinking": {
"command": "/path/to/mcp-sequential-thinking/.venv/bin/python",
"args": [
"-m",
"mcp_sequential_thinking.server"
],
"cwd": "/path/to/mcp-sequential-thinking"
}
}
}
Option 4: Using uv run on a local clone (development)
{
"mcpServers": {
"sequential-thinking": {
"command": "uv",
"args": [
"run",
"--directory",
"/path/to/mcp-sequential-thinking",
"-m",
"mcp_sequential_thinking.server"
]
}
}
}
Editor & IDE Integration
Cursor
Add to your Cursor MCP configuration at .cursor/mcp.json in your project root (or globally at ~/.cursor/mcp.json):
{
"mcpServers": {
"sequential-thinking": {
"command": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
VS Code (Copilot MCP)
VS Code supports MCP servers since version 1.99+. Add to .vscode/mcp.json in your workspace or to your user settings.json:
{
"servers": {
"sequential-thinking": {
"command": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
Note: Enable MCP support in VS Code via
"chat.mcp.enabled": truein your settings.
Zed
Add to your Zed settings (~/.config/zed/settings.json):
{
"context_servers": {
"sequential-thinking": {
"command": {
"path": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
}
Claude Code (CLI)
Add the server using the CLI:
claude mcp add sequential-thinking -- uvx mcp-sequential-thinking
Or manually create/edit .mcp.json in your project root:
{
"mcpServers": {
"sequential-thinking": {
"command": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
Windsurf
Add to your Windsurf MCP configuration at ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"sequential-thinking": {
"command": "uvx",
"args": ["mcp-sequential-thinking"]
}
}
}
Gemini CLI
Add to your Gemini CLI settings at ~/.gemini/settings.json:
{
"mcpServers": {
"sequential-thinking": {
"type": "stdio",
"command": "uvx",
"args": ["mcp-sequential-thinking"],
"env": {}
}
}
}
Tip: All editor configurations above run the published PyPI package via
uvx. To run from a local clone instead (e.g. for development), useuv run --directory /path/to/mcp-sequential-thinking -m mcp_sequential_thinking.serveror point directly to the venv Python interpreter (see Claude Desktop Options 3 and 4).
How It Works
The server maintains a history of thoughts and processes them through a structured workflow. Each thought is validated using Pydantic models, categorized into thinking stages, and stored with relevant metadata in a thread-safe storage system. The server automatically handles data persistence, backup creation, and provides tools for analyzing relationships between thoughts.
Sessions are persisted as an append-only JSONL log at ~/.mcp_sequential_thinking/current_session.jsonl (override the directory with the MCP_STORAGE_DIR environment variable). Each process_thought call appends a single fsynced line, so the file doubles as an audit trail and a truncated final line from an interrupted write is recovered automatically. Sessions from v0.5.x (current_session.json) are migrated losslessly on first start; the original file is kept as current_session.json.migrated-to-v2.
Usage Guide
The Sequential Thinking server exposes five main tools:
1. process_thought
Records and analyzes a new thought in your sequential thinking process.
Parameters:
thought(string): The content of your thoughtthought_number(integer): Position in your sequence (e.g., 1 for first thought)total_thoughts(integer): Expected total thoughts in the sequencenext_thought_needed(boolean): Whether more thoughts are needed after this onestage(string): The thinking stage - must be one of:- "Problem Definition"
- "Research"
- "Analysis"
- "Synthesis"
- "Conclusion"
tags(list of strings, optional): Keywords or categories for your thoughtaxioms_used(list of strings, optional): Principles or axioms applied in your thoughtassumptions_challenged(list of strings, optional): Assumptions your thought questions or challengesis_revision(boolean, optional): Whether this thought revises an earlier onerevises_thought_number(integer, optional): The number of the earlier thought being revised (required together withis_revision)branch_from_thought(integer, optional): The thought number to fork from when explor
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
102.0kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
100.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
76.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.5kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

