multiple thinking tools based on @waldzellai/clear-thought
A Model Context Protocol (MCP) server that provides structured reasoning and thinking tools for AI assistants. This server implements multiple cognitive frameworks and reasoning methodologies to enhance problem-solving capabilities.
The Clarity Mcp Server provides the following reasoning tools:
git clone https://github.com/pronitdas/clarity-mcp.git
cd clarity-mcp
pnpm install
pnpm run build
pnpm start
## Watch mode for development
pnpm run dev
## Clean build files
pnpm run clean
The Clear Thought MCP Server is designed to be integrated with AI assistants through the Model Context Protocol (MCP). Here’s how to integrate and use the server:
mcp://localhost:0/clear-thinking
index.ts
Register the tools with your MCP client:
const tools = {
sequentialthinking: {
name: "sequentialthinking",
description: "Step-by-step reasoning with revision capabilities",
parameters: {
thought: "string",
thoughtNumber: "number",
totalThoughts: "number",
nextThoughtNeeded: "boolean"
}
},
// ... other tools ...
};
The server can be integrated with MCP-compatible clients using a simple configuration file. Here’s a typical example:
{
"command": "npx",
"args": [
"clarity-mcp-server"
],
}
Place this configuration in your client’s MCP configuration file (e.g., mcp.json
). The server will be started automatically when the client needs to use the reasoning tools.
{
"name": "sequentialthinking",
"arguments": {
"thought": "Let me analyze this step by step...",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}
}
{
"name": "mentalmodel",
"arguments": {
"modelName": "first_principles",
"problem": "How to optimize database performance"
}
}
{
"name": "designpattern",
"arguments": {
"patternName": "modular_architecture",
"context": "Building a scalable web application"
}
}
{
"name": "collaborativereasoning",
"arguments": {
"topic": "Should we implement microservices?",
"personas": [
{
"id": "architect",
"name": "Senior Architect",
"expertise": ["system design", "scalability"],
"background": "10+ years in enterprise architecture"
}
],
"stage": "problem-definition",
"sessionId": "session-1",
"iteration": 0,
"nextContributionNeeded": true
}
}
SequentialThinkingServer
: Manages step-by-step reasoning processesMentalModelServer
: Handles mental model applicationDesignPatternServer
: Processes software design patternsProgrammingParadigmServer
: Manages programming approach selectionDebuggingApproachServer
: Handles debugging methodologiesCollaborativeReasoningServer
: Manages multi-perspective analysisDecisionFrameworkServer
: Handles decision analysisMetacognitiveMonitoringServer
: Manages self-assessmentScientificMethodServer
: Handles scientific reasoningStructuredArgumentationServer
: Manages dialectical analysisVisualReasoningServer
: Handles visual thinking toolsMemoryServer
: Manages persistent memory operationsfirst_principles
- Break down to fundamental truthsopportunity_cost
- Analyze trade-offs and alternativeserror_propagation
- Understand how errors compoundrubber_duck
- Explain problems step-by-steppareto_principle
- Focus on vital few factorsoccams_razor
- Prefer simpler explanationsmodular_architecture
- Component-based designapi_integration
- Service integration patternsstate_management
- State handling strategiesasync_processing
- Asynchronous operation patternsscalability
- Scaling and performance patternssecurity
- Security implementation patternsagentic_design
- Autonomous agent patternsimperative
- Step-by-step instruction styleprocedural
- Function-based organizationobject_oriented
- Class and object modelingfunctional
- Function-based computationdeclarative
- Outcome-focused programminglogic
- Rule-based programmingevent_driven
- Event-based programmingaspect_oriented
- Cross-cutting concern separationconcurrent
- Parallel execution patternsreactive
- Event-driven data flowsbinary_search
- Bisection debugging methodreverse_engineering
- Backward trace analysisdivide_conquer
- Component isolation methodbacktracking
- Execution path tracingcause_elimination
- Process of eliminationprogram_slicing
- Code dependency analysisadd
- Add new memory nodeslink
- Create relationships between memoriessearch
- Search across stored memoriescontext
- Retrieve memory context and relationshipscreate
, update
, delete
, transform
, observe
graph
, flowchart
, stateDiagram
, conceptMap
, treeDiagram
, custom
node
, edge
, container
, annotation
rotate
, move
, resize
, recolor
, regroup
clear-thinking/
├── index.ts # Main MCP server entry point
├── tools/ # Tool implementations
│ ├── mentalModelServer.ts
│ ├── sequentialThinkingServer.ts
│ ├── designPatternServer.ts
│ ├── programmingParadigmServer.ts
│ ├── debuggingApproachServer.ts
│ ├── collaborativeReasoningServer.ts
│ └── ... # Other reasoning tools
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
The server supports the following configuration options in index.ts
:
const config = {
transport: "stdio", // or "tcp" for network transport
port: 0, // default for stdio
timeout: 30000, // tool execution timeout in ms
maxConcurrent: 10, // max concurrent tool executions
logging: {
level: "info",
format: "json"
}
};
// Server initialization
const server = new Server({
name: "clarity-mcp-server",
version: "1.1.2",
config
}, {
capabilities: {
tools: { /* tool definitions */ }
}
});
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
Build Errors:
## Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install
npm run build
Runtime Errors:
MCP Connection Issues:
Tool Execution Timeouts:
Schema Validation Errors:
Transport Issues:
Mcp Server Qrcode
Model Context Protocol server for generating QR codes
Hh Jira Mcp Server
Mcp Server Ragdocs
An MCP server that provides tools for retrieving and processing documentation through vector search, both locally or hosted. Enabling AI assistants to augment their responses with relevant documentation context.
Enable AI agents to work reliably - giving them secure access to structured data, tools to take action, and the context needed to make smart decisions.
MCP Server to run python code locally
An MCP server enhances AI responses with real-time search results via Higress ai-search.
multiple thinking tools based on @waldzellai/clear-thought