LatentContext MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LATENTCONTEXT_CONFIG | No | Absolute path to a latentcontext.config.json file. | |
| LATENTCONTEXT_DATA_DIR | No | Absolute path for memory.db and server.log. Overrides the default per-user data directory. | |
| LATENTCONTEXT_ALLOW_PROJECT_CONFIG | No | Set to '1' to opt in to reading latentcontext.config.json from the host process CWD. Disabled by default. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| session_startA | Start a new memory session. Call this ONCE at the very beginning of each new conversation. MANDATORY WORKFLOW — follow these steps IN ORDER every single time:
SESSION ISOLATION:
WHAT IT DOES:
WARNING: Always call this first to ensure session isolation. |
| memory_storeA | Store information in long-term memory. Call this PROACTIVELY whenever you learn something new — do NOT wait to be asked. CRITICAL — CONTENT QUALITY RULES: Your memory entries MUST be DETAILED, SELF-CONTAINED paragraphs that a future AI can read and FULLY understand WITHOUT needing to re-derive anything. Each entry should be 3-5 sentences minimum. Include WHO, WHAT, WHY, HOW, and WHERE relevant. BAD (useless — too short, forces re-thinking): "Fixed audio issue" "User likes dark mode" "Website uses Vanta.js" GOOD (detailed — saves tokens by preventing re-derivation): "Fixed a CORS audio playback issue on the user's website fate.rf.gd. The problem was that the audio element was trying to load files from a different origin. Solution: added crossorigin='anonymous' attribute to the element and configured the server to send Access-Control-Allow-Origin headers. The audio visualizer now works correctly with the Vanta.js background." "User strongly prefers dark mode designs with deep blue (#0a0e27) and purple (#6c63ff) accent colors. They want glassmorphism effects, smooth animations, and premium-feeling interfaces. They dislike plain/basic designs and have explicitly requested 'wow factor' aesthetics in multiple conversations." "The user's personal website at fate.rf.gd uses a multi-section single-page layout with: Vanta.js globe wireframe background animation, a music player with bass-reactive glow visualizer, glassmorphic card components, Google Fonts (Inter/Outfit), and is hosted on InfinityFree. The tech stack is vanilla HTML/CSS/JS with no framework." REMEMBER: A memory that takes 20 tokens to store but saves a future LLM from spending 500 tokens re-analyzing is EXTREMELY valuable. Write entries as if briefing a colleague who has never seen this project before. WHEN TO USE:
MEMORY TYPES (choose carefully):
ENTITIES: Always provide relevant entity names in the 'entities' array for 'fact' type. The first entity is treated as the subject. Example: entities: ["User", "dark mode"] for "User prefers dark mode". |
| memory_retrieveA | Retrieve memories stored in the CURRENT session. Returns only data from this conversation — no cross-session contamination. MANDATORY — ALWAYS call this immediately after session_start. Also call before ANY task that could benefit from context stored earlier in this conversation. WHEN TO USE:
HOW TO USE THE RESULTS:
SESSION ISOLATION:
SECTIONS IN OUTPUT:
TIP: Use a higher token_budget (5000-8000) for comprehensive context. Use lower (1000-2000) for focused lookups. |
| memory_compressA | Compress memory at a given scope to reduce token usage and consolidate information. WHEN TO USE:
EFFECTS:
|
| memory_forgetA | Mark a memory as outdated, incorrect, or to be deleted. WHEN TO USE:
ACTIONS:
You need the memory_id which is returned when you store a memory, or visible in memory_status output. |
| memory_statusA | Get storage statistics for all memory subsystems. WHEN TO USE:
SHOWS: Tier counts, token estimates, knowledge graph size, vector store count, and current session ID. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| extract_facts | Extract structured facts from text as subject-predicate-object triples for knowledge graph storage. |
| compress_session | Compress working memory into a concise session summary preserving key decisions, unresolved items, and action items. |
| consolidate_epoch | Merge multiple session summaries into a higher-level epoch summary capturing themes and patterns. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Core Memory | Tier 3 persistent core memories. Always available for system prompt injection. |
| Current Session Memory | Tier 0 working memory for the current session only. |
| Knowledge Graph Schema | Current entity types and relation predicates in the knowledge graph. |
| Memory Statistics | Storage usage statistics across all memory subsystems. |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Master0fFate/LatentContext-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server