Sequential Thinking MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sequential Thinking MCP Serverguide me through debugging a memory leak in Node.js"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sequential Thinking MCP Server
An MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process which automatically writes sequential thinking logs to Recall associated with each thought session.
Features
The Sequential Thinking MCP provides the following capabilities:
Step-by-Step Problem Solving
Break down complex problems into manageable steps
Revise and refine thoughts as understanding deepens
Branch into alternative paths of reasoning
Adjust the total number of thoughts dynamically
Hypothesis Management
Generate solution hypotheses
Verify hypotheses based on the chain of thought
Provide corrective analysis when needed
Recall Integration
Store all sequential thinking sessions securely on-chain
Access complete thought histories
Retrieve specific thinking sessions
List all stored sessions
Security ⚠️
IMPORTANT: PRIVATE KEY PROTECTION
This MCP server requires a private key for Recall operations. To protect this sensitive information:
NEVER share your private key or .env file contents
NEVER run commands that display your private key (like
cat .env)NEVER allow the LLM to execute shell commands directly without your approval
If using a .env file, store it with restricted permissions:
chmod 600 .env
Multiple Layers of Protection
This server implements several layers of security to keep your private key safe:
1. Private Key Isolation
Your private key is only loaded during initialization
After loading, the key is immediately removed from environment variables
The actual key is never logged or transmitted to the LLM
2. Log Protection
Automatic redaction of any private key patterns in logs
Console output is filtered to replace private keys with
[REDACTED]Object sanitization that masks sensitive fields before display
3. Access Prevention
Secure environment variable handling
Strict validation of required environment variables
Console output sanitization to prevent leaking secrets
Recall Integration
This MCP server includes integration with Recall, allowing you to store sequential thinking logs securely on-chain. All thinking steps for each query are automatically saved to your Recall bucket.
Configuration
To use the Recall integration, you need to provide the following environment variables:
RECALL_PRIVATE_KEY(required): Your Recall private keyRECALL_NETWORK(optional): The network to connect to (testnet or mainnet, defaults to testnet)RECALL_BUCKET_ALIAS(optional): The alias for the bucket where logs will be stored (defaults to 'sequential-thinking-logs')RECALL_LOG_PREFIX(optional): The prefix for log files stored in the bucket (defaults to 'sequential-')
Each thought is stored individually with its metadata, and complete thinking sessions are stored when finished. This allows you to:
Review complete reasoning chains
Analyze thought processes
Save valuable problem-solving approaches for future reference
Build a knowledge base of reasoning patterns
Environment Variable Precedence
The Sequential Thinking MCP server uses the following order of precedence for environment variables:
Environment variables provided directly from Cursor/Claude configuration
Environment variables from a .env file (if present and #1 is not available)
Default values for optional variables
Setup
Clone the repository
Install dependencies:
npm installChoose one of these configuration methods:
Method 1: Using environment variables in Cursor/Claude config (Recommended)
The recommended approach is to provide environment variables directly in your Cursor or Claude Desktop configuration. This is more secure and eliminates the need for a .env file.
The server will automatically use these environment variables when provided through the configuration.
See the "Adding to Cursor" and "Adding to Claude Desktop" sections below for specific setup instructions.
Method 2: Using a .env file (Fallback)
If you prefer to use a .env file, or are running the server directly without Cursor/Claude, you can create one:
Create a
.envfile with your private key:RECALL_PRIVATE_KEY=your_private_key_here RECALL_NETWORK=testnet RECALL_BUCKET_ALIAS=sequential-thinking-logs RECALL_LOG_PREFIX=sequential-Secure your .env file:
chmod 600 .env
Note: The private key can be provided with or without the "0x" prefix - both formats work.
Tools
The server exposes the following MCP tools:
Tool Name | Description | Parameters |
| Process step-by-step thinking and store in Recall |
|
| Get the status of the Recall integration |
|
| List all sequential thinking sessions |
|
| Get a specific thinking session |
|
sequentialthinking
Facilitates a detailed, step-by-step thinking process for problem-solving and analysis.
Inputs:
thought(string): The current thinking stepnextThoughtNeeded(boolean): Whether another thought step is neededthoughtNumber(integer): Current thought numbertotalThoughts(integer): Estimated total thoughts neededisRevision(boolean, optional): Whether this revises previous thinkingrevisesThought(integer, optional): Which thought is being reconsideredbranchFromThought(integer, optional): Branching point thought numberbranchId(string, optional): Branch identifierneedsMoreThoughts(boolean, optional): If more thoughts are needed
Output:
When the final thought is submitted (nextThoughtNeeded = false), the tool returns:
recallInfowith:txHash: The transaction hash on the Recall networksuccess: Whether storage was successfulkey: The session file nameviewUrl: A direct link to view the session in the Recall portal
recallstatus
Get the status of the Recall integration.
Inputs:
check(boolean): Set to true to check the status
Output:
Information about the Recall integration including initialization status, bucket address, bucket alias, and log prefix
listsessions
List all sequential thinking session objects stored in your Recall bucket.
Inputs:
includePortalLinks(boolean, optional): Whether to include portal links for each session
Output:
A list of all stored session files with their metadata and optional portal links
getsession
Retrieve the contents of a specific sequential thinking session file.
Inputs:
key(string): The key/filename of the session to retrieve
Output:
The complete contents of the requested session file including all thoughts and metadata
A portal link to view the session in the Recall portal
Usage
The Sequential Thinking tool is designed for:
Breaking down complex problems into steps
Planning and design with room for revision
Analysis that might need course correction
Problems where the full scope might not be clear initially
Tasks that need to maintain context over multiple steps
Situations where irrelevant information needs to be filtered out
Building
npm run build
npm run startDevelopment Mode
npm run devImportant Note for Development
When developing the MCP server, use console.error() instead of console.log() for all debugging and logging. The Claude Desktop app communicates with the server via stdout, so any console.log() statements will interfere with this communication and cause JSON parsing errors.
Adding to Cursor
To add this MCP server to Cursor:
Build the project first with
npm run buildIn Cursor, go to Settings > MCP Servers
Click "Add Server"
Configure the server with the following settings:
Name:
Sequential Thinking MCP(or any name you prefer)Type:
commandCommand:
nodeArguments:
/path/to/sequential-thinking-recall/dist/index.js(replace with your actual path)Environment Variables:
RECALL_PRIVATE_KEY: Your private key (with or without "0x" prefix)RECALL_NETWORK:testnet(ormainnetif needed)RECALL_BUCKET_ALIAS:sequential-thinking-logsRECALL_LOG_PREFIX:sequential-
Click "Save"
Using Environment Variables in Cursor Configuration
For more security, you can configure Cursor via the .cursor/mcp.json file in your home directory:
{
"mcpServers": {
"sequential-thinking-mcp": {
"command": "node",
"args": [
"/Users/yourusername/sequential-thinking-recall/dist/index.js"
],
"env": {
"RECALL_PRIVATE_KEY": "your-private-key-here",
"RECALL_NETWORK": "testnet",
"RECALL_BUCKET_ALIAS": "sequential-thinking-logs",
"RECALL_LOG_PREFIX": "sequential-"
}
}
}
}This approach eliminates the need for a .env file.
Adding to Claude Desktop
To add this MCP server to Claude Desktop:
Build the project first with
npm run buildLocate your Claude Desktop configuration file at:
On macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonOn Windows:
%APPDATA%\Claude\claude_desktop_config.jsonOn Linux:
~/.config/Claude/claude_desktop_config.json
Create or edit the
claude_desktop_config.jsonfile with the following content:{ "mcpServers": { "sequential-thinking-mcp": { "command": "node", "args": [ "/path/to/sequential-thinking-recall/dist/index.js" ], "env": { "RECALL_PRIVATE_KEY": "your-private-key-here", "RECALL_NETWORK": "testnet", "RECALL_BUCKET_ALIAS": "sequential-thinking-logs", "RECALL_LOG_PREFIX": "sequential-" } } } }Replace
/path/to/sequential-thinking-recall/dist/index.jswith the full path to your compiled server fileExample:
/Users/username/sequential-thinking-recall/dist/index.js
For the
RECALL_PRIVATE_KEY, you can provide it with or without the "0x" prefix - both formats workSave the configuration file and restart Claude Desktop
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/recallnet/sequential-thinking-recall'
If you have feedback or need assistance with the MCP directory API, please join our Discord server