MCP Hub
Back to servers

threads-mcp

A comprehensive project management MCP server designed to interact with Threads CLI data, enabling structured thread tracking, organization via containers and groups, and granular progress logging.

Tools
29
Updated
Jan 17, 2026

Threads MCP Server

MCP server exposing Threads CLI data and operations via the Model Context Protocol.

Installation

cd threads-mcp
npm install
npm run build

Usage

With Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "threads": {
      "command": "node",
      "args": ["C:/Users/joshu/Desktop/threads-mcp/dist/server.js"]
    }
  }
}

Development

npm run dev        # Run with tsx (no build needed)
npm run build      # Compile TypeScript
npm run start      # Run compiled version
npm run typecheck  # Type check only

Testing with MCP Inspector

npx @modelcontextprotocol/inspector node dist/server.js

Resources

URIDescription
threads://threads/listAll threads
threads://threads/activeActive threads only
threads://threads/hotHot/warm temperature threads
threads://threads/{id}Single thread by ID
threads://containers/listAll containers
threads://containers/{id}Single container by ID
threads://groups/listAll groups
threads://groups/{id}Single group by ID
threads://groups/{id}/membersEntities in a group
threads://treeFull hierarchy tree
threads://nextSuggested next action
threads://progress/{threadId}Progress log for a thread

Tools

Thread Management

ToolDescription
create_threadCreate a new thread
update_threadUpdate thread properties
archive_threadArchive a thread (with optional cascade)
delete_threadPermanently delete a thread
get_threadGet thread by ID or name

Progress Tracking

ToolDescription
add_progressAdd progress note to a thread
list_progressGet progress history
edit_progressEdit a progress entry
delete_progressDelete a progress entry

Organization

ToolDescription
create_containerCreate organizational container
update_containerUpdate container properties
delete_containerDelete a container
create_groupCreate a group
update_groupUpdate group properties
delete_groupDelete a group
set_parentSet entity parent
move_to_groupMove entity to group
get_childrenGet immediate children
get_ancestorsGet path to root
get_subtreeGet full subtree

Query & Search

ToolDescription
list_threadsList threads with filters
list_containersList containers with filters
list_groupsList all groups
search_threadsFull-text search
get_next_actionSuggest next thread to work on
get_full_treeGet complete hierarchy
get_entityGet any entity by ID/name
get_containerGet container by ID/name
get_groupGet group by ID/name

Architecture

threads-mcp/
├── src/
│   ├── server.ts           # Entry point, stdio transport
│   ├── lib/
│   │   ├── threads-client.ts  # Wrapper for Threads storage
│   │   └── types.ts           # MCP-specific types
│   ├── resources/
│   │   ├── index.ts        # Resource registration
│   │   ├── threads.ts      # Thread resources
│   │   ├── containers.ts   # Container resources
│   │   └── groups.ts       # Group resources
│   └── tools/
│       ├── index.ts        # Tool registration
│       ├── thread-ops.ts   # Thread operations
│       ├── progress-ops.ts # Progress operations
│       ├── org-ops.ts      # Organization operations
│       └── query-ops.ts    # Query operations

Data Storage

Data is stored in ~/.threads/threads.json (same as Threads CLI). This server directly reads and writes to that file, maintaining full compatibility with CLI operations.

Example Workflows

Create and track a project

1. Use create_container to create "My Project"
2. Use create_thread to create threads under that container
3. Use add_progress to log updates as you work
4. Use get_next_action to see what to work on next

Review active work

1. Read threads://threads/active resource
2. Or use list_threads with status: "active"
3. Use list_progress to see recent updates

Organize existing threads

1. Use create_group to create organizational groups
2. Use move_to_group to assign threads
3. Use set_parent to build hierarchy

License

MIT

Reviews

No reviews yet

Sign in to write a review