spectrum-mcp-py
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
spectrum-memory
Persistent semantic memory for AI agents — Python edition.
Give your AI memory that survives between sessions. Local-first. SQLite. Embeddings. Zero cloud dependency.
Install
pip install spectrum-memoryFor semantic search (optional):
pip install spectrum-memory[semantic]For MCP server (Claude, Gemini, Codex):
pip install spectrum-memory[mcp]Everything:
pip install spectrum-memory[all]Setting up with an AI agent? Point it at AGENT.md — a step-by-step playbook the agent follows to install Spectrum, register the MCP server, and teach itself how to use persistent memory.
Related MCP server: Memory MCP
Usage
As a library
from spectrum_memory import Spectrum, MemoryInput
memory = Spectrum()
# save
memory.save(MemoryInput(
scope="project:my-app",
key="architecture",
value="PostgreSQL for ACID. Redis for caching. Next.js 15 frontend.",
tags=["stack", "database"]
))
# retrieve
arch = memory.get("project:my-app", "architecture")
# keyword search
results = memory.search("database", scope="project:my-app")
# semantic search (finds by meaning, not just words)
similar = memory.search_semantic("which database did we choose?")
# list all memories in a scope
all_mems = memory.list("project:my-app")
# list all scopes
scopes = memory.list_scopes()
# done
memory.close()CLI
spm save user/name "Claudio, backend dev, TypeScript strict"
spm save project:app/stack "Next.js 15, PostgreSQL, Redis"
spm get project:app/stack
spm search "database"
spm search "which database" --semantic
spm list project:app
spm scopes
spm statsMCP Server
For Claude Code (~/.claude.json):
{
"mcpServers": {
"spectrum": {
"command": "spectrum-mcp-py"
}
}
}Or with uvx:
{
"mcpServers": {
"spectrum": {
"command": "uvx",
"args": ["spectrum-memory[mcp]", "--", "spectrum-mcp-py"]
}
}
}API
memory = Spectrum(
db_path=None, # default: ~/.spectrum/spectrum.db
storage=None, # custom StorageProvider
embeddings=None, # custom EmbeddingProvider
semantic=True, # False = no embeddings
)Method | Returns | Description |
|
| Upsert by scope+key |
|
| Retrieve by key |
|
| List with optional prefix/limit |
|
| Delete a memory |
|
| Keyword search |
|
| Semantic search |
|
| All scopes with count |
|
| DB statistics |
|
| Close connection |
Shared Database
Python and Node.js Spectrum share the same SQLite database (~/.spectrum/spectrum.db). Save from Node, read from Python, and vice versa.
Ecosystem
Package | What |
spectrum-memory | Python library + CLI + MCP (you are here) |
Node.js core library | |
Node.js CLI ( | |
Node.js MCP server |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3-
- FlicenseNot gradedqualityDmaintenanceProvides persistent AI agent memory using a local vector database for long-term semantic storage and short-term session scratchpads. It enables low-latency memory operations including search, storage, and bulk management without external cloud dependencies.-
- AlicenseAqualityBmaintenanceGives AI agents persistent, local-first memory using SQLite and on-device embeddings, enabling semantic search and recall across sessions with no cloud calls.89MIT

memiofficial
AlicenseNot gradedqualityBmaintenanceGives AI agents a local-first, persistent memory backed by a single SQLite file, letting them save decisions, preferences, and facts, then recall them by meaning or keyword across sessions and projects. Exposes tools for loading pinned context, searching, adding, updating, listing, and deleting memories, so agents stop forgetting between sessions.10 npm1Apache 2.0