Getting Started
Prerequisites
- Node.js 18 or higher
- An MCP-compatible AI client (Claude Code, or any client supporting MCP)
- Git (optional, required for team mode)
Installation
ThreadMind requires no global installation. It runs via npx:
npx thread-mind-mcpConfiguration
Which setup should I use?
| Situation | Recommended approach |
|---|---|
| Personal use, all your projects | Global — ~/.claude/settings.json |
| Team project, shared via git | Project — .mcp.json |
| Cursor, Windsurf, or other MCP client | Other MCP clients |
Claude Code — Global (personal, all projects)
Available in every project without any per-project setup. Recommended if you're the only one on the project or want ThreadMind everywhere.
Via CLI (easiest):
claude mcp add thread-mind -- npx -y thread-mind-mcpclaude mcp add thread-mind -- cmd /c npx -y thread-mind-mcpOr manually in ~/.claude/settings.json:
{
"mcpServers": {
"thread-mind": {
"command": "npx",
"args": ["-y", "thread-mind-mcp"]
}
}
}{
"mcpServers": {
"thread-mind": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "-y", "thread-mind-mcp"],
"env": {}
}
}
}Claude Code — Per-project / Team (.mcp.json)
Creates a .mcp.json file at the project root. Commit it to git — teammates automatically get the MCP configured when they pull, with no manual setup required.
Via CLI (easiest):
claude mcp add thread-mind --scope project -- npx -y thread-mind-mcpclaude mcp add thread-mind --scope project -- cmd /c npx -y thread-mind-mcpThis creates a .mcp.json at your project root:
{
"mcpServers": {
"thread-mind": {
"command": "npx",
"args": ["-y", "thread-mind-mcp"]
}
}
}{
"mcpServers": {
"thread-mind": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "-y", "thread-mind-mcp"],
"env": {}
}
}
}TIP
.mcp.json is different from .claude/settings.json. The latter stores personal Claude Code preferences (permissions, hooks) and is typically gitignored. .mcp.json is specifically for shared MCP server configuration.
Other MCP Clients
ThreadMind uses the standard stdio MCP transport and works with any compatible client — Cursor, Windsurf, Continue, and others. Add it to your client's MCP configuration file:
{
"mcpServers": {
"thread-mind": {
"command": "npx",
"args": ["-y", "thread-mind-mcp"]
}
}
}{
"mcpServers": {
"thread-mind": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "-y", "thread-mind-mcp"],
"env": {}
}
}
}Refer to your client's documentation for the exact config file location.
TIP
After any config change, fully restart your AI client for MCP changes to take effect.
Windows with Volta (Node.js version manager)
If you use Volta, its npx shim may not resolve when your AI client spawns subprocesses — the subprocess inherits the system PATH, not your shell session PATH. Use volta run to explicitly delegate version resolution:
{
"mcpServers": {
"thread-mind": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "volta", "run", "npx", "-y", "thread-mind-mcp"],
"env": {}
}
}
}Via CLI: claude mcp add thread-mind -- cmd /c volta run npx -y thread-mind-mcp
Your First Project
Once ThreadMind is configured, start a conversation with your AI and use the tools:
1. Create a project
You: Create a ThreadMind project called "My Web App" with system context
"We are building a Next.js e-commerce application"
AI: [calls project_create]
✓ Project "my-web-app" created (mode: solo). Main thread active.2. Generate instruction files
You: tm:init
AI: [calls threadmind_init]
✓ Generated CLAUDE.md, .cursorrules, instructions.mdThis generates instruction files that teach your AI client to use ThreadMind automatically — including tm: shortcuts you can type in chat.
TIP
Always run tm:init (or threadmind_init) right after creating a project. The generated CLAUDE.md file tells Claude Code to proactively use ThreadMind at every session start.
3. Work on a topic and summarize
Have your normal conversation about the topic, then save a summary:
You: [discuss authentication approaches with AI...]
You: tm:summary
AI: [generates summary, then calls summary_update]
✓ Summary updated for thread "main".4. Branch into sub-topics
You: tm:create API Routes
AI: [calls thread_create]
✓ Thread "api-routes" created under "main".
main
└── api-routes ← active5. Check the assembled context
You: tm:context
AI: [calls context_get]
## System Context
We are building a Next.js e-commerce application
---
## Thread: My Web App
Authentication: using JWT with refresh tokens...
---
## Thread: API Routes (active)
[empty — start discussing and summarize later]
---
_ThreadMind context: ~180 tokens | depth: 2 threads_
_Estimated raw history: ~3,400 tokens (~95% reduction from 4 summary updates)_6. View your thread tree
You: tm:tree
AI: [calls thread_list]
main
├── api-routes ← active
└── database-schema7. Check token savings
You: tm:stats
AI: [calls stats_show]
ThreadMind Stats: "My Web App"
Overview:
Threads: 3 (2 with content)
Summary updates: 4
Current context: ~180 tokens (depth: 2)
Token Savings (estimated):
Estimated raw history: ~3,400 tokens
ThreadMind context: ~180 tokens
Reduction: ~95%Quick Shortcuts Reference
After running threadmind_init, you can type these shortcuts directly in chat:
| Command | Action |
|---|---|
tm:help | Show all available commands |
tm:context | Load assembled context |
tm:tree | Show thread tree |
tm:create <title> | Create a new thread |
tm:switch <id> | Switch to a thread |
tm:summary | Auto-generate and save a summary |
tm:summary <content> | Save specific summary content |
tm:stats | Show token savings statistics |
tm:delete <id> | Delete a thread |
tm:init | Generate instruction files |
tm:project <title> | Create a new project |
tm:projects | List all projects |
These also work as MCP Prompts (slash commands) in Claude Code: /mcp__thread-mind__tm-help, etc.
Recommended Workflow
- Create a project at the start of a new codebase or feature
- Run
tm:initto generate instruction files for your AI client - Work in the main thread for initial planning and broad decisions
- Branch when you dive into a specific sub-topic (
tm:create <title>) - Summarize after each meaningful discussion (
tm:summary) - Switch threads when changing topics (
tm:switch <id>) - Use
tm:contextto feed the AI your structured context instead of relying on raw history - Check savings with
tm:statsto see how much context you're compressing
TIP
Good summaries are the key to ThreadMind's effectiveness. Focus on decisions, outcomes, and key technical choices — not on the conversation itself.
Next Steps
- Projects — project management in detail
- Threads — creating and managing threads
- Context Assembly — how context is built from the tree