# Gnosys

> Persistent memory for AI agents

- **Type:** MCP server
- **Install:** `agentstack add mcp-proticom-gnosys`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [proticom](https://agentstack.voostack.com/s/proticom)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [proticom](https://github.com/proticom)
- **Source:** https://github.com/proticom/gnosys
- **Website:** https://gnosys.ai

## Install

```sh
agentstack add mcp-proticom-gnosys
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

A Proticom product. &nbsp;·&nbsp; gnosys.ai is the source of truth for docs.

---

# Gnosys — One Brain. Zero Context Bloat.

**Gnosys gives AI agents persistent memory that survives across sessions, projects, and machines.**

The central brain is a single SQLite database at `~/.gnosys/gnosys.db` with sub-10ms reads — no vector DBs, no black boxes, no external services. Federated search ranks results across project, user, and global scopes. It runs as a CLI and as a full MCP server that drops straight into Claude Code, Claude Desktop (Chat / Cowork / Code), Cursor, Codex, Gemini CLI, Antigravity, Grok Build, or any MCP client. When you want a human-readable view, `gnosys export` regenerates a full Obsidian vault on demand.

## Install

> **Requires Node.js ≥ 20.12.**

```bash
npm install -g gnosys
gnosys setup          # configures provider, API key, and your IDE/agent
```

> **Optional native deps.** Gnosys auto-installs **better-sqlite3** (the SQLite engine) and **@huggingface/transformers** (local embeddings). If your environment lacks build tools and either fails to install, run `npm install better-sqlite3 @huggingface/transformers` — or configure an external embedding API. Both degrade gracefully if absent.

## Quick start

```bash
gnosys setup ides                                        # wire MCP into your IDEs (once)
cd your-project
gnosys init                                              # register the project
gnosys add "We chose PostgreSQL over MySQL for JSON support"
gnosys recall "database selection"                       # what's relevant right now
gnosys chat                                              # memory-aware terminal chat
```

That's the 60-second tour. **Everything else lives on [gnosys.ai](https://gnosys.ai).**

## What you get

- **Central brain** — one `~/.gnosys/gnosys.db` unifies every project (project / user / global scopes). Sub-10ms reads, SQLite as the sole source of truth.
- **Federated search** — tier-boosted hybrid (FTS5 keyword + semantic) search across scopes, with recency and reinforcement.
- **MCP server** — `gnosys serve` exposes 50+ memory tools to any MCP client. Sandbox-first runtime keeps context cost near zero.
- **Web Knowledge Base** — `gnosys web build` turns any site into a searchable index for serverless chatbots, with optional build-time vectors for serverless-safe hybrid semantic search. Zero runtime deps.
- **Dream Mode** — idle-time consolidation: confidence decay, summaries, relationship discovery. Never deletes — only suggests.
- **Multi-machine sync** — share your brain across machines; conflict detection with skip-and-flag resolution.
- **Obsidian export** — `gnosys export` regenerates a full vault with frontmatter, `[[wikilinks]]`, and graph data.

## MCP Tool Reference

All tools are exposed over stdio and HTTP transports. Many tools accept an optional `projectRoot` parameter to target a specific project store.

This package installs two binaries:

- **`gnosys`** — the CLI. `gnosys serve` starts the MCP server (stdio by default, `--transport http` for the central-server topology). `gnosys setup ides` wires `gnosys-mcp` into your IDE/agent configs.
- **`gnosys-mcp`** — a direct alias for the MCP stdio server entry, for MCP clients that prefer to spawn the server binary directly (e.g. `npx -y gnosys-mcp`). Equivalent to `gnosys serve`.

| Tool | Description |
|------|-------------|
| `gnosys_discover` | Discover relevant memories by describing what you're working on. |
| `gnosys_read` | Read a specific memory. |
| `gnosys_search` | Search memories by keyword across all stores. |
| `gnosys_list` | List memories across all stores, optionally filtered by category, tag, or store layer. |
| `gnosys_add_structured` | **Preferred for LLM agents.** Add a memory with structured fields you supply (title, category, tags, content) — makes no server-side LLM call. |
| `gnosys_add` | Add a memory from raw text; the server's LLM structures it. For non-agent callers (scripts, cron) — agents should use `gnosys_add_structured`. |
| `gnosys_tags` | List all tags in the registry, grouped by category. |
| `gnosys_tags_add` | Add a new tag to the registry. |
| `gnosys_reinforce` | Signal whether a memory was useful. |
| `gnosys_init` | Initialize Gnosys in a project directory. |
| `gnosys_migrate` | Migrate a Gnosys store (.gnosys/) from one directory to another. |
| `gnosys_update` | Update an existing memory's frontmatter and/or content. |
| `gnosys_stale` | Find memories that haven't been modified or reviewed within a given number of days. |
| `gnosys_commit_context` | Pre-compaction memory sweep. |
| `gnosys_history` | View audit history for a memory. |
| `gnosys_lens` | Filtered view of memories. |
| `gnosys_timeline` | View memory creation and modification activity over time. |
| `gnosys_stats` | Summary statistics across all memories — totals by category, status, author, authority, average confidence, and date ranges. |
| `gnosys_links` | Show wikilinks for a specific memory — outgoing [[links]] and backlinks from other memories. |
| `gnosys_graph` | Show the full cross-reference graph across all memories. |
| `gnosys_bootstrap` | Batch-import existing documents from a directory into the memory store. |
| `gnosys_import` | Bulk import structured data (CSV, JSON, JSONL) into Gnosys memories. |
| `gnosys_hybrid_search` | Search memories using hybrid keyword + semantic search with Reciprocal Rank Fusion. |
| `gnosys_semantic_search` | Search memories using semantic similarity only (no keyword matching). |
| `gnosys_reindex` | Rebuild all semantic embeddings from every memory file. |
| `gnosys_ask` | Ask a natural-language question and get a synthesized answer with citations from the entire vault. |
| `gnosys_maintain` | Run vault maintenance: detect duplicate memories, apply confidence decay, consolidate similar memories. |
| `gnosys_dearchive` | Force-dearchive memories from archive.db back to active. |
| `gnosys_reindex_graph` | Build or rebuild the wikilink graph (.gnosys/graph.json). |
| `gnosys_dream` | Run a Dream Mode cycle — idle-time consolidation that decays confidence, generates category summaries, discovers relationships, and creates review suggestions. |
| `gnosys_export` | Export gnosys.db to Obsidian-compatible vault — atomic Markdown files with YAML frontmatter, [[wikilinks]], category summaries, and relationship graph. |
| `gnosys_dashboard` | Show the Gnosys system dashboard: memory counts, maintenance health, graph stats, LLM provider status. |
| `gnosys_stores` | Debug tool — lists all detected Gnosys stores across registered projects, MCP workspace roots, cwd, and environment variables. |
| `gnosys_recall` | Fast memory recall — inject relevant memories as context. |
| `gnosys_audit` | View the audit trail of all memory operations (reads, writes, reinforcements, dearchives, maintenance). |
| `gnosys_preference_set` | Set a user preference. |
| `gnosys_preference_get` | Get a user preference by key, or list all preferences. |
| `gnosys_preference_delete` | Delete a user preference by key. |
| `gnosys_sync` | Get the current user preferences + project conventions formatted as a GNOSYS:START/GNOSYS:END block. |
| `gnosys_federated_search` | Search across all scopes (project → user → global) with tier boosting. |
| `gnosys_detect_ambiguity` | Check if a query matches memories in multiple projects. |
| `gnosys_briefing` | Generate a project briefing — a summary of memory state, categories, recent activity, and top tags. |
| `gnosys_portfolio` | Portfolio dashboard — shows all registered projects with memory counts, categories, status snapshots, roadmap items, and recent activity. |
| `gnosys_remote_status` | Check the status of remote sync (multi-machine). |
| `gnosys_remote_push` | Push local memory changes to the remote (NAS) database. |
| `gnosys_remote_pull` | Pull remote memory changes to the local database. |
| `gnosys_remote_resolve` | Resolve a sync conflict by choosing which version to keep. |
| `gnosys_update_status` | Get the prompt/template for writing a dashboard-compatible status memory for this project. |
| `gnosys_working_set` | Get the implicit working set — recently modified memories for the current project. |
| `gnosys_ingest_file` | Ingest a file (PDF, DOCX, TXT, MD) into Gnosys memory. |
| `gnosys_attach` | Attach a small binary file (logo, diagram, screenshot, small PDF) inline to a memory (~10MB limit; syncs machine-to-machine). |
| `gnosys_get_attachment` | Retrieve the binary attachment stored on a memory (base64 bytes, or write to disk via outputPath). |

## Documentation

| | |
|---|---|
| **Full docs & guides** |  |
| **Complete CLI + MCP reference** |  |
| **Changelog** | [CHANGELOG.md](./CHANGELOG.md) |
| **Contributing** | [CONTRIBUTING.md](./CONTRIBUTING.md) |
| **Security policy** | [SECURITY.md](./SECURITY.md) |
| **Report a bug / request a feature** | [GitHub Issues](https://github.com/proticom/gnosys/issues) |

## License

MIT © [Proticom](https://proticom.com). See [LICENSE](./LICENSE).

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [proticom](https://github.com/proticom)
- **Source:** [proticom/gnosys](https://github.com/proticom/gnosys)
- **License:** MIT
- **Homepage:** https://gnosys.ai

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-proticom-gnosys
- Seller: https://agentstack.voostack.com/s/proticom
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
