SymbolicMemoryMCP offers a unique MCP server enabling AI systems to store and retrieve curated truths using stable symbols. By merging deterministic recall with LLMs and agents, it provides a solid foundation for reliable memory storage and retrieval in contrast to common probabilistic methods.
SymbolicMemoryMCP is a cutting-edge plugin designed to deliver explicit and deterministic symbolic memory for AI systems using the Model Context Protocol (MCP). This project provides a minimal MCP server that enables language models (LLMs) and AI agents to efficiently store and retrieve curated “ground truth” using stable symbols and optional aliases, moving beyond traditional probabilistic recall methods.
server.py: A FastAPI-based server implementing the MCP JSON-RPC protocol.client.py: A command-line interface for manual save and get operations.tests_smoke.py: End-to-end smoke tests for the MCP functionality.MCP2genericLLM.py: A reference bridge for LLM integration (tested with Ollama).Current AI systems typically remember data through chat histories, vector-based memory, and dynamic prompt states—in each case, data retrieval can be imprecise and time-consuming. SymbolicMemoryMCP addresses these challenges by adding a layer of deterministic memory that can be effectively utilized alongside existing approaches:
A symbol serves as a stable and human-readable key, promoting consistency in reference keys through a recommended naming convention:
DOMAIN.SUBDOMAIN.NAME).Saving Data: Use the tools/call method with sm.texts.save to store information.
{
"symbol": "HGI.DEF",
"text": "Hybrid General Intelligence = AI + human symbiosis",
"cat": "ai",
"subcat": "concepts.intelligence",
"aliases": ["hgi", "hybrid intelligence"]
}
Retrieving Data: Use the resources/read method by referring to symbols or aliases:
resource://sm/v1/texts/HGI.DEF or resource://sm/v1/texts/hybrid intelligence.For optimal functionality:
sm_get for canonical definitions when correctness is essential.sm_save when the user provides explicit definitions to store.The architecture integrates smoothly with current agent stacks, offering a reliable symbolic memory interface residing above an SQLite-backed storage layer, optimizing the accessibility and management of data within AI systems.
Future updates will include enhancements such as prefix search, explicit alias management, and versioning capabilities to accommodate dynamic semantic environments while maintaining a focus on a compact, deterministic core system.
No comments yet.
Sign in to be the first to comment.