Thoth-Mem
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| THOTH_DATA_DIR | No | Data directory for SQLite database | ~/.thoth |
| THOTH_HTTP_PORT | No | HTTP REST API port | 7438 |
| THOTH_HYDE_MODEL | No | HyDE generation model id | onnx-community/Qwen2.5-Coder-0.5B-Instruct |
| THOTH_HYDE_ENABLED | No | Enable HyDE dual-input semantic query expansion | true |
| THOTH_KG_LLM_MODEL | No | KG LLM model id | onnx-community/Qwen2.5-Coder-0.5B-Instruct |
| THOTH_HTTP_DISABLED | No | Disable HTTP REST API bridge | false |
| THOTH_HYDE_BASE_URL | No | Optional HyDE provider base URL | unset |
| THOTH_HYDE_PROVIDER | No | HyDE generation provider (transformers_local, ollama, lmstudio) | transformers_local |
| THOTH_KG_LLM_ENABLED | No | Enable optional LLM KG enrichment for long observations | false |
| THOTH_PREVIEW_LENGTH | No | Search result preview length | 300 |
| THOTH_EMBEDDING_MODEL | No | Embedding model id | nomic-ai/nomic-embed-text-v1.5 |
| THOTH_HYDE_TIMEOUT_MS | No | HyDE timeout before raw-query-only fallback | 4000 |
| THOTH_KG_LLM_BASE_URL | No | KG LLM provider base URL for remote providers | unset |
| THOTH_KG_LLM_PROVIDER | No | KG LLM provider (transformers_local, ollama, lmstudio) | transformers_local |
| THOTH_KG_LLM_TIMEOUT_MS | No | KG LLM timeout before deterministic-only fallback | 8000 |
| THOTH_EMBEDDING_BASE_URL | No | Base URL for remote/local API providers | provider-specific |
| THOTH_EMBEDDING_PROVIDER | No | Embedding provider (transformers_local, ollama, lmstudio) | transformers_local |
| THOTH_MAX_CONTENT_LENGTH | No | Max content length (warns, never truncates) | 100000 |
| THOTH_MAX_SEARCH_RESULTS | No | Max search results returned | 20 |
| THOTH_MAX_CONTEXT_RESULTS | No | Max observations in context response | 20 |
| THOTH_EMBEDDING_DIMENSIONS | No | Optional embedding dimensions override | inferred for known models |
| THOTH_DEDUPE_WINDOW_MINUTES | No | Rolling deduplication window | 15 |
| THOTH_KG_LLM_MIN_CONTENT_CHARS | No | Minimum observation size that triggers LLM enrichment | 12000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mem_saveA | Save memory. This single write tool handles observations, user prompts, session summaries, and passive learning capture. For durable observations, use kind=observation and structured content: What: [concise description] Why: [reasoning or problem] Where: [files/paths affected] Learned: [gotchas, edge cases] Use topic_key for evolving topics that should update in-place. |
| mem_recallA | Primary retrieval tool. Runs fused hybrid recall across sentence vectors, chunk vectors, keyword FTS, and knowledge-graph enrichment. |
| mem_contextA | Get recent memory context from previous sessions. Shows recent sessions, user prompts, and observations to understand what was done before. Use this at the start of a session to recover context, or when the user asks to recall past work. Returns bounded Markdown with:
Observation bodies are previewed by default; use mem_get(id=...) for full content. |
| mem_getC | Fetch a saved observation or prompt by ID. Use include_timeline=true when the surrounding observation chronology matters. |
| mem_projectC | Project-level memory navigation. Lists projects, summarizes one project, reads graph facts, or inspects topic-key memory. |
| mem_sessionB | Manage the active memory session. Use action=start at session start and action=summary before ending. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EremesNG/thoth-mem'
If you have feedback or need assistance with the MCP directory API, please join our Discord server