think-mcp
Provides structured thinking tools including mental models, design patterns, debugging approaches, decision frameworks, and multi-persona reasoning to enhance AI assistant problem-solving capabilities.
README
think-mcp
Structured thinking tools for AI assistants. Provides mental models, debugging approaches, decision frameworks, and more via the Model Context Protocol.
Quick Start
Installation
npm install -g think-mcp
Claude Desktop Configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"think-mcp": {
"command": "npx",
"args": ["think-mcp"]
}
}
}
Tools
| Tool | Description | Use When |
|---|---|---|
trace |
Step-by-step thought tracing | Breaking down complex problems |
model |
Mental models (first principles, pareto, etc.) | Applying structured thinking frameworks |
pattern |
Software design patterns | Architectural decisions |
paradigm |
Programming paradigms | Choosing coding approaches |
debug |
Debugging approaches | Systematic troubleshooting |
council |
Multi-persona deliberation | Getting diverse perspectives |
decide |
Decision analysis frameworks | Making important choices |
reflect |
Metacognitive monitoring | Assessing knowledge boundaries |
hypothesis |
Scientific method | Testing ideas systematically |
debate |
Dialectical reasoning | Exploring arguments |
map |
Visual/spatial reasoning | Diagramming concepts |
Examples
Using trace for complex problem-solving
"Use the trace tool to think through how to refactor this authentication system"
Using model with first principles
"Apply first_principles thinking using the model tool to analyze why our build is slow"
Using council for multiple perspectives
"Use council to get security expert, performance engineer, and UX designer perspectives on this API design"
Using debug for systematic troubleshooting
"Use the debug tool with binary_search approach to find the source of this memory leak"
Using decide for structured decisions
"Use decide with weighted-criteria analysis to choose between PostgreSQL and MongoDB"
Tool Details
trace (Sequential Thinking)
Dynamic problem-solving through structured thoughts with revision and branching support.
- Break down complex problems into steps
- Revise previous thoughts as understanding evolves
- Branch into alternative approaches
- Track progress across multiple reasoning steps
model (Mental Models)
Apply proven mental models to problems:
first_principles- Break down to fundamentalsopportunity_cost- Analyze trade-offserror_propagation- Understand error chainsrubber_duck- Explain to clarifypareto_principle- Focus on high-impact factorsoccams_razor- Prefer simpler explanations
pattern (Design Patterns)
Software architecture patterns:
modular_architecture- Component separationapi_integration- External service patternsstate_management- State handling approachesasync_processing- Asynchronous patternsscalability- Growth considerationssecurity- Security best practicesagentic_design- AI agent patterns
paradigm (Programming Paradigms)
Programming approach selection:
imperative,procedural,object_orientedfunctional,declarative,logicevent_driven,aspect_orientedconcurrent,reactive
debug (Debugging Approaches)
Systematic debugging methods:
binary_search- Divide and narrowreverse_engineering- Work backwardsdivide_conquer- Isolate componentsbacktracking- Trace executioncause_elimination- Rule out causesprogram_slicing- Focus on relevant code
council (Collaborative Reasoning)
Multi-persona problem-solving with diverse expertise, structured debate, and consensus building.
decide (Decision Framework)
Structured decision analysis:
pros-cons- Simple comparisonweighted-criteria- Multi-factor scoringdecision-tree- Branching outcomesexpected-value- Probability-weightedscenario-analysis- Future scenarios
reflect (Metacognitive Monitoring)
Self-awareness about knowledge boundaries, claim certainty, and reasoning biases.
hypothesis (Scientific Method)
Formal scientific reasoning with hypothesis testing, variable identification, and evidence evaluation.
debate (Structured Argumentation)
Dialectical reasoning with thesis-antithesis-synthesis and argument strength analysis.
map (Visual Reasoning)
Visual thinking with diagrams, graphs, flowcharts, concept maps, and state diagrams.
Remote Access (Vercel Deployment)
Think-MCP can be deployed to Vercel for remote access from Claude Desktop and ChatGPT without local installation.
Deploy to Vercel
Or deploy manually:
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
Connect Claude Desktop (Remote)
Add to your claude_desktop_config.json:
{
"mcpServers": {
"think-mcp": {
"command": "npx",
"args": ["mcp-remote", "https://your-deployment.vercel.app/api/mcp"]
}
}
}
Connect ChatGPT
- Go to Settings → Connectors → Advanced → Developer Mode
- Add the URL:
https://your-deployment.vercel.app/api/mcp
Development
# Clone the repository
git clone https://github.com/chirag127/think-mcp.git
cd think-mcp
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Development mode (watch)
npm run dev
# Web development (Vercel)
cd web && npm install
npm run dev:web
Project Structure
think-mcp/
├── dist/ # Compiled JavaScript files (npm package)
├── src/ # STDIO server source (for npx/local usage)
│ ├── models/ # Data interfaces
│ ├── tools/ # Tool implementations
│ │ ├── traceServer.ts
│ │ ├── modelServer.ts
│ │ ├── patternServer.ts
│ │ ├── paradigmServer.ts
│ │ ├── debugServer.ts
│ │ ├── councilServer.ts
│ │ ├── decideServer.ts
│ │ ├── reflectServer.ts
│ │ ├── hypothesisServer.ts
│ │ ├── debateServer.ts
│ │ └── mapServer.ts
│ ├── toolNames.ts # Tool name constants
│ └── index.ts # Main server entry point
├── web/ # Next.js app for Vercel deployment
│ ├── app/
│ │ ├── layout.tsx
│ │ ├── page.tsx # Landing page
│ │ └── api/
│ │ └── [transport]/
│ │ └── route.ts # MCP endpoint
│ └── lib/
│ ├── mcp-tools.ts # Tool registration
│ └── tools/ # Tool definitions
├── vercel.json # Vercel deployment config
├── package.json
├── tsconfig.json
└── README.md
Tech Stack
- TypeScript
- Node.js 18+
- Model Context Protocol SDK 1.25.1
- Zod 3.25+ (validation)
- Vitest (testing)
Author
Chirag Singhal (@chirag127)
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.