Hybrid search for Cowork history: FTS, Spotlight, and semantic vectors
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP (Model Context Protocol) server for searching and browsing your Claude conversation history stored in ~/.claude/. Works with both Claude Code and Cowork conversations.
mdfindDownload cowork-history.mcpb from the latest release and double-click to install.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Once installed, Claude can search your conversation history:
| Tool | Description |
|---|---|
cowork_history_search | Search conversations using hybrid search (FTS + Spotlight + vector) |
cowork_history_list | List recent conversations, optionally filtered by project |
cowork_history_get | Get full content of a specific conversation by session ID |
cowork_history_projects | List all projects with conversation history |
cowork_history_stats | Get statistics and search capability status |
cowork_history_reindex | Rebuild index and optionally generate embeddings |
| Tool | Description |
|---|---|
history_system_check | Check system requirements for Ollama |
history_setup_ollama | Install Ollama via Homebrew (macOS) |
history_setup_ollama_direct | Install Ollama via direct download (no Homebrew) |
history_ollama_status | Check Ollama status and embedding model availability |
The cowork_history_search tool supports multiple search modes:
| Mode | Description |
|---|---|
auto (default) | Uses all available methods, best results |
fts | Full-text search only (fastest) |
spotlight | macOS Spotlight only |
vector | Semantic similarity only (requires Ollama) |
hybrid | Explicit combination with ranking |
Vector search provides semantic similarity matching (finding related concepts even without exact keywords). It requires Ollama with an embedding model.
Ask Claude to set it up for you:
Or manually:
Then generate embeddings:
The server maintains a SQLite database at ~/.claude/.history-index/conversations.db with:
The index updates automatically when you search (if >5 minutes old) or you can force a rebuild with cowork_history_reindex.
| Variable | Default | Description |
|---|---|---|
OLLAMA_URL | http://localhost:11434 | Ollama server URL |
EMBEDDING_MODEL | nomic-embed-text | Ollama embedding model |
~/.claude/ directory existsollama --versioncurl http://localhost:11434/api/tagsollama listollama pull nomic-embed-textmode: "fts" for exact phrase matchingcowork_history_stats to see which search backends are activeMIT License - see LICENSE file for details.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cowork-history)<a href="https://allmcps.com/mcp/cowork-history"><img src="https://allmcps.com/api/badge/cowork-history?style=directory" alt="Cowork History on AllMCPs" /></a>