Spector logo

Spector

by @spectrayan

Gives AI agents cognitive memory with tiered storage, hybrid recall, decay, associations, and MCP access.

Install Spector

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "spectrayan-spector": {
      "command": "npx",
      "args": [
        "-y",
        "@spectrayan/spector"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio spectrayan-spector -- npx -y @spectrayan/spector

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y @spectrayan/spector

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@spectrayan/spector connects AI agents to Spector, a cognitive memory engine that stores and recalls information across working, episodic, semantic, and procedural tiers. Its MCP interface exposes 16 tools for memory storage, retrieval, and introspection, with recall combining semantic, sparse, keyword, decay, importance, and association signals. Run it through npx over stdio, connect to a local Synapse daemon, or start an embedded kernel with OpenJDK 25+. It fits agents that need persistent, tenant-isolated memory rather than vector similarity alone.

Use cases

  • Store durable user preferences for agent sessions
  • Recall related memories using semantic and graph signals
  • Separate memory namespaces across users or tenants
  • Inspect memory decay, associations, and retrieval behavior

Key features

  • 16 MCP tools for storage, recall, and introspection
  • Working, episodic, semantic, and procedural memory tiers
  • Hybrid retrieval with dense, sparse, and keyword signals
  • Decay, importance, and association-aware ranking
  • Per-user, per-agent, or per-tenant on-disk isolation
  • REST, gRPC, Python, and TypeScript access paths

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 40d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @spectrayan/spector (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars28Stargazers on the source repository.
npm downloads105Package downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Spector works

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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Spector

@spectrayan/spector is an MCP server that connects AI agents to the Spector cognitive memory engine and exposes 16 tools for memory storage, recall, and introspection. It can run through stdio with npx, use a local Synapse daemon, or launch an embedded kernel requiring OpenJDK 25+.

Run `npx -y @spectrayan/spector mcp` to start it without a separate package installation. The runner uses a healthy local Synapse daemon on port 7070 or starts an embedded kernel, which requires OpenJDK 25 or newer.

Yes, @spectrayan/spector works with Cursor through its standard MCP configuration. Add an `spector` entry to `.cursor/mcp.json` with `npx` as the command and `-y`, `@spectrayan/spector`, and `mcp` as arguments.

Yes, Docker Compose starts the core engine on port 7070 and the Cortex dashboard on port 7700. Enable the `embeddings` profile if you also want the local Ollama container.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSpector AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/spectrayan-spector?style=directory)](https://allmcps.com/mcp/spectrayan-spector)
HTML Embed
<a href="https://allmcps.com/mcp/spectrayan-spector"><img src="https://allmcps.com/api/badge/spectrayan-spector?style=directory" alt="Spector on AllMCPs" /></a>