th0th exposes 8 MCP tools for AI assistants like OpenCode, Claude Desktop, and VSCode extensions. These tools enable semantic code search, persistent memory, context compression, and analytics with 98% token reduction.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/S1LV4/th0th/llms.txt
Use this file to discover all available pages before exploring further.
What is MCP?
Model Context Protocol (MCP) is a standard protocol for connecting AI assistants to external tools and data sources. th0th implements MCP to provide semantic search capabilities directly within your AI coding assistant.Available Tools
th0th_index
Index a project directory for semantic search
th0th_index_status
Check background indexing job progress
th0th_search
Semantic + keyword search with filters
th0th_remember
Store information in persistent memory
th0th_recall
Search stored memories from previous sessions
th0th_compress
Compress context (keeps structure, removes details)
th0th_optimized_context
Search + compress in one call (max token efficiency)
th0th_analytics
Usage patterns, cache performance, metrics
Architecture
th0th MCP client connects to the th0th REST API via stdio:How it works
- MCP Client: Runs as a stdio server, exposing tools to the AI assistant
- API Proxy: Proxies tool calls to the REST API via HTTP
- REST API: Handles business logic, embeddings, search, and compression
- Response Formatting: Returns results in TOON format (70% smaller than JSON)
Integration
OpenCode (recommended)
Via MCP package:opencode.json
opencode.json
VSCode / Antigravity
Create.vscode/mcp.json in your workspace:
.vscode/mcp.json
Claude Desktop
Add to~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Docker
Configuration
Configuration file:~/.config/th0th/config.json (auto-created on first run)
Quick config commands
Embedding providers
| Provider | Model | Cost | Quality |
|---|---|---|---|
| Ollama (default) | nomic-embed-text, bge-m3 | Free | Good |
| Mistral | mistral-embed, codestral-embed | $$ | Great |
| OpenAI | text-embedding-3-small | $$ | Great |
Advanced configuration
Next steps
Tools Reference
Detailed documentation for all 8 MCP tools
REST API
HTTP API documentation