Stellar Jay
Stellar Jay's MCP server lets agents safely manage business facts in an append-only, attributed, reversible, tamper-evident store.
Record facts about entities with values, evidence, confidence, observed time, and idempotent operation IDs.
Correct wrong facts by superseding them while preserving history.
Retract facts or retractions without deleting past entries.
Read an entity's current facts and full change history.
List changes in a time window filtered by actor or entity.
Undo an actor's changes in a time window, with dry-run preview then confirmation.
Save named checkpoints of the current store state.
Check server health and obtain the current root.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Stellar Jay
Stellar Jay is the open-source data store that powers AvianSuite. AvianSuite is an agent-native business data platform: AI agents run business processes like sales follow-up and bookkeeping on your company's data, and every change they make is versioned, attributed to the agent that made it, and reversible. Think of it as Git for your business data.
Agents connect over MCP. The server is listed in the MCP registry as
com.aviansuite/stellar-jay, and the CRM (Martin)
and bookkeeping (Magpie) apps run on
the same store. This project was formerly called JayBase.
Hosted: AvianSuite runs Stellar Jay for you. $20/month per store, with a 14-day free trial.
Self-hosted: free and open source under the AGPL. The quick start below gets a store running on your machine in a few minutes.
Agent setup
Connect an agent with the MCP server. On AvianSuite, add the remote server:
# Claude Code
claude mcp add --transport http aviansuite https://mcp.aviansuite.com/mcp// Cursor: .cursor/mcp.json
{"mcpServers": {"aviansuite": {"url": "https://mcp.aviansuite.com/mcp"}}}In Claude and ChatGPT, add a custom connector with the same URL.
For a self-hosted store, run the local server instead:
{
"mcpServers": {
"aviansuite": {
"command": "stellarjay-mcp",
"env": {"STELLARJAY_URL": "https://store.example.com", "STELLARJAY_TOKEN": "writer-token"}
}
}
}Install it with go install github.com/kyle-visner/stellarjay/cmd/stellarjay-mcp@latest.
Tools and details: docs/mcp.md.
Related MCP server: tillbooks
Why
Clients want agents that do the work, not just read about it. But when an agent writes straight into a CRM or ticketing system, one bad decision or runaway loop can overwrite or delete records, and there is often no way back.
Stellar Jay is built so that can't happen:
Nothing is overwritten or deleted. A correction or retraction is a new entry, and the original stays in history.
Every change has a name on it. Each agent gets its own token, so you can see exactly which agent changed what, and when.
Any change can be undone. Roll back everything one agent did in a time window, with a preview first.
History is tamper-evident. If anyone rewrites or removes past entries, it shows.
Retries are safe. An agent that retries after a timeout doesn't create duplicates, and a write based on stale information is refused.
Your data stays flexible. Facts are JSON, so new fields and new kinds of records need no migrations.
Every fact keeps its evidence and the agent that recorded it, so any wrong one is visible, attributed and correctable.
Who it's for
Developers, consultants, and small teams moving from read-only copilots to agents that are allowed to act: operations, accounting, approvals, support, and other work where the data matters. Each store serves one organization. Many agents and apps can share it.
Quick start (self-hosted)
Requires Go 1.22 or later.
1. Install and create secrets.
go install github.com/kyle-visner/stellarjay/cmd/stellarjay-server@latest
stellarjay-server init ./secretsinit creates a data encryption key and prints an admin, writer, and reader
token once. Save them in a password manager.
2. Start the server.
export STELLARJAY_DATA_DIR=./data
export STELLARJAY_DATA_KEY_FILE=./secrets/data_key
export STELLARJAY_AUTH_FILE=./secrets/auth.json
stellarjay-server serveIt listens on 127.0.0.1:8080.
3. Record a fact. In another terminal:
export STELLARJAY_URL=http://127.0.0.1:8080
export STELLARJAY_TOKEN='the-writer-token'
curl -fsS -X POST "$STELLARJAY_URL/v1/events" \
-H "Authorization: Bearer $STELLARJAY_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: first-fact" \
--data '{
"type": "business.fact",
"entity_id": "customer-42",
"command": "fact assert",
"payload": {"predicate": "primary_contact", "value": "Ada Lovelace"},
"expected_root": ""
}'expected_root is empty only for the first entry in a new store. After that,
read the current value from GET /v1/root and send it with each write, so a
write based on stale information is refused. The API guide
covers reading history, pagination, named checkpoints, and snapshots.
4. Connect an agent. Point the MCP server at your store:
go install github.com/kyle-visner/stellarjay/cmd/stellarjay-mcp@latestThen use the self-hosted config from Agent setup with
STELLARJAY_URL=http://127.0.0.1:8080 and your writer token. Agents that don't
use MCP can read $STELLARJAY_URL/llm.txt, which explains how to work with the
store.
Deploy to a server
For a production store with HTTPS, you need a Linux host with Docker Compose, ports 80 and 443 open, and a DNS record pointing a domain at the host.
git clone https://github.com/kyle-visner/stellarjay.git
cd stellarjay
cp .env.example .env
# Edit .env and set STELLARJAY_DOMAIN.
go run ./cmd/stellarjay-server init ./secrets
docker compose up -d --build
curl https://stellarjay.example.com/health/readyinit will not replace existing secrets. The
operations runbook covers backups, token rotation and
upgrades, and the security model covers keys, roles and
hardening. Or skip all of this and use AvianSuite.
Documentation
llm.md: the guide agents follow to read and write safely
docs/mcp.md: MCP server setup and tools
docs/how-it-works.md: storage model, deployment and the embedded Go library
docs/api.md: HTTP API reference (OpenAPI)
docs/architecture.md, docs/security.md, docs/operations.md: running it in production
Development
GOCACHE=/tmp/stellarjay-gocache go test -race ./...
GOCACHE=/tmp/stellarjay-gocache go vet ./...
docker compose config
docker build -t stellarjay:test .License
AGPL-3.0-or-later. See LICENSE. Hosted Stellar Jay is available from
AvianSuite.
Available Tools
8 toolscorrect_factCorrect a factAInspect
Use when a recorded fact is wrong and you know the right value. Give the hash of the fact to replace and a reason. The old fact stays in history, marked as superseded, so the correction can itself be undone. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Inputs: value (required), reason (required), entity_id (required), supersedes (required), +4 more.
get_entityGet an entityARead-onlyInspect
Use to read what is currently true about one entity, and how it got that way: every fact, correction and retraction, who made it and when.
Inputs: entity_id (required), include_history.
list_changesList changesARead-onlyInspect
Use to see what changed in a time window, optionally only one agent's changes or one entity's. Use it to review an agent's work, and before undo_changes to find the actor name and window.
Inputs: since (required), actor, limit, until, +1 more.
record_factRecord a factAInspect
Use when you learn something about a customer, ticket, order or other business record and want it kept. Use this before, and instead of, overwriting records in other systems: the fact is kept with its evidence and attributed to you, and it can be corrected or undone later. Recording a new value for the same entity and predicate makes it the current value; the old one stays in history. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Inputs: value (required), entity_id (required), predicate (required), operation_id (required), +3 more.
retract_factRetract a factAInspect
Use when a recorded fact should no longer count and there is no replacement value. Give its hash and a reason. The fact stays in history, marked as retracted. Retracting a retraction restores the original fact. When the result includes a receipt link, include it when you tell a person about the change, so they can check it and undo it.
Inputs: hash (required), reason (required), entity_id (required), operation_id (required).
save_checkpointSave a checkpointAInspect
Use before a risky job, such as an import, to name the current state (for example before-import). Saving an existing name moves it to the current state. Checkpoints never change any facts.
Inputs: name (required).
statusStatusARead-onlyInspect
Use to check that the store is reachable and healthy, and to get its current root.
Inputs: no named parameters.
undo_changesUndo changesAInspect
Use to reverse everything one agent did in a time window, for example after a bad import or a runaway loop. By default this is a dry run that lists what would be reversed. Call again with confirm: true to write the reversals. Each reversal is a new retraction, so an undo can itself be undone. Only facts can be undone; other events are listed as skipped.
Inputs: actor (required), since (required), until, reason, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation: status for health, record/correct/retract for the three fact-mutation paths, get_entity for reads, list_changes for auditing, undo_changes for reversal, and save_checkpoint for snapshots. The record/correct/retract trio is cleanly separated by intent (new value vs. replacement vs. no replacement), so there is no realistic misselection risk.
Most tools follow a clear verb_noun pattern (record_fact, correct_fact, retract_fact, get_entity, list_changes, undo_changes, save_checkpoint). The lone outlier is 'status,' a bare noun, but the deviation is minor and does not impair readability.
Eight tools map neatly onto the fact-store lifecycle with no redundant or filler entries. The count is well within the ideal range for a focused append-only fact/audit service.
The surface covers the full fact lifecycle (record, correct, retract), reading current state, auditing changes, bulk undo, checkpointing, and health. The only soft gap is the absence of a way to list or restore named checkpoints explicitly, which agents can largely work around by re-saving by name.
Maintenance
Related MCP Connectors
Provenance-carrying memory for AI agents: corrections supersede, never overwrite. Free, API + MCP.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
A home for your agents: an owned book of record any AI agent can write to, with provenance and undo.
The system of record for AI agents — open-source (MIT) database where agents and people share data.
Related MCP Servers
- AlicenseAqualityBmaintenanceUniversal verifiable recovery for long-running AI agents with semantic checkpoints, idempotent action ledger and hash chained log as a deny by default MCP server. Framework agnostic with adapters for LangGraph, LangChain and OpenAI plus gateway and OTel.1327Apache 2.0
- AlicenseBqualityBmaintenanceFree, open-source (MIT), local-first Swiss accounting MCP server: an AI agent posts double-entry journal entries, categorises and chases invoices, and prepares the MWST-Abrechnung (the Swiss VAT return), with a minimalist Studio for human oversight. Posted entries are append-only and immutable, corrections are reversing entries, and every query is tenant-scoped.500477 npm2MIT
- AlicenseAqualityBmaintenanceAuditable long-term memory for coding agents: facts carry their evidence and full supersession history, so why explains where a belief came from and forget retires instead of deleting. Runs embedded on a keyless SQLite store (npx -y statecore-mcp) with optional LLM distillation and a self-hosted StateCore server mode.61MIT
- AlicenseNot gradedqualityAmaintenanceOpen-source, self-hosted database and workspace for AI agents. Its MCP server lets agents manage structured records, documents, files, reusable skills, and apps, with auditable Change Requests for writes.931MIT