# @spectrayan/spector [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/spectrayan/spector  
**GitHub Stars:** 28  
**npm Downloads (last month):** 105  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/spectrayan-spector

## Description
MCP server and CLI for Spector — Cognitive memory engine for AI agents

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "spector": {
    "command": "npx",
    "args": ["-y","@spectrayan/spector"]
  }
}
```

## Documentation

## What @spectrayan/spector does

@ spectrayan/spector gives MCP-compatible AI agents access to Spector's cognitive memory engine. The engine stores traces across working, episodic, semantic, and procedural tiers, then retrieves them using more than dense vector similarity. Recall can account for sparse and keyword matching, memory importance, time-based decay, and relationships between co-activated, temporal, and entity-linked traces.

The MCP server provides 16 tools covering memory storage, recall, and introspection. Spector also exposes REST and gRPC gateways and has Python and TypeScript client packages, although this listing focuses on its MCP interface. Data for each user, agent, or tenant is kept in a separate on-disk namespace.

## How it works

The engine stores each memory with an embedding, tags, valence, importance, write time, and recall count. Retrieval first applies live-state, tag, and valence filters, then combines similarity with importance adjusted by power-law decay. After the initial top-K results, associated memories can enter through co-activation, temporal, and entity relationships.

Spector's architecture separates the off-heap memory kernel, cognitive retrieval and consolidation, API gateways, and observability UI. The MCP runtime can operate in the same process as the memory engine, avoiding a separate network hop for the in-process path. Java Project Panama and the Vector API support its off-heap and SIMD-oriented implementation, and the engine does not require an external database.

## Setup and configuration

The quickest MCP setup uses the npm package:

```bash
npx -y @spectrayan/spector mcp
```

The command connects to a healthy local Synapse daemon on port `7070`. If no daemon is available, it starts an embedded memory kernel; that mode requires OpenJDK 25 or newer. The server can also be built from source with Maven and launched from the resulting JAR using the required preview and vector-module flags.

Docker Compose starts the core engine on port `7070` and the Cortex dashboard on port `7700`. An optional `embeddings` profile adds a local Ollama container. The repository also provides shell and PowerShell installers.

Claude Desktop, Cursor, Windsurf, and Claude Code can launch the server with the same npx command. For direct application access, install `spector-client` from PyPI or `@spectrayan/spector-client` from npm and connect to the REST endpoint.

## Tools and capabilities

- Store memories with text, tier, and tags.
- Recall memories using a query and a configurable result count.
- Work with working, episodic, semantic, and procedural memory tiers.
- Combine dense, sparse, keyword, decay, importance, and graph-association signals during retrieval.
- Inspect memory and retrieval state through MCP introspection tools.
- Isolate each user, agent, or tenant in its own on-disk namespace.

## Limitations and notes

Embedded execution depends on OpenJDK 25 or newer, while the source launch command also uses Java preview features and the incubating vector module. The npx runner can depend on a separate Synapse process at port `7070` when one is available. Docker deployment includes the core engine and dashboard, with local embeddings provided only when the optional profile is enabled.

_Full upstream README: https://allmcps.com/mcp/spectrayan-spector/readme_

