Skip to content
MCP server
Registry

osiris MCP Server

Cache-aware context engine for AI agents: server-side payload filtering, honest context ledger.

osiris scores 71 (Good), licensed MIT and written in Python. It installs as a local process. It declares 6 tools. Filed under AI and memory. GitHub shows 3 stars. Package registries report about 47 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by mlkblk-itMITPython3 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "mlkblk-it-osiris": {      "command": "npx",      "args": [        "-y",        "osiris-mcp@0.1.0"      ],      "env": {        "OSIRIS_HOME": "~/.osiris",        "OSIRIS_ROOTS": "",        "OSIRIS_CACHE_TTL_S": "300",        "OSIRIS_PRUNE_THRESHOLD_TOKENS": "40000",        "OSIRIS_DISPATCH_ONLY": "0"      }    }  }}

Environment variables

NameRequiredNotes
OSIRIS_HOMEOptionalRepertoire d'etat OSIRIS : base SQLite, rapports, caches. Defaut ~/.osiris.
OSIRIS_ROOTSOptionalRacines autorisees pour la lecture de fichiers, separees par ';'. Vide = aucune lecture de fichier.
OSIRIS_CACHE_TTL_SOptionalTTL du cache en secondes.
OSIRIS_PRUNE_THRESHOLD_TOKENSOptionalSeuil de prune en tokens.
OSIRIS_DISPATCH_ONLYOptional1 = n'expose que l'outil osiris.call (table d'outils stable pour le prefix cache).

Tools6Tool docs quality grade D

All capabilities
  • Snapshot, resume, completion report, reversible compaction

  • Executable delegation contracts and structured results

  • Log actions, loop detection, offload large data, update memory

  • Start / update / resume / status of a task; produces sealed manifest

  • Authorize or deny an action (invariants, budget, deduplication)

  • Rehydrate refs (server-side filtered: grep, range, outline)

About

OSIRIS

PyPI npm Python License

Cache-aware context engine & state governor for AI agents. Standard MCP server, local-first, independent of any model provider.

OSIRIS makes AI agents cheaper, faster, and more reliable: fewer tokens, fewer loops, zero unnecessary tools, and zero loss of context.

What's new — 2026-12-02 — CI green (ruff 38→0), v0.2.0 packaging & ecosystem sync

TagChangeEvidence
✅ CIFixed all ruff lint errors (38 → 0, E501 line-wrapping) + synced npm version to 0.2.0; 146 tests greencommit 1a6fcd7 (2026-11-29)
📦 packagingDocumented PyPI/npm v0.2.0 publication repair status transparentlycommit 9730796 (2026-11-29)
🎨 ecosystemUnified profile-hosted MLKBLK banner v5, normalized badges & ecosystem linkscommit 55e5964 (2026-11-30)

What's new — 2026-11-28 — Repository hygiene & unified visuals

TagChangeEvidence
🔐 securityFull-history secret scangitleaks 8.30.1 · all branches · 0 findings
🧹 privacyGit history sanitised: author identity → GitHub noreply; local network details redactedverified on a fresh clone: 0 occurrences
🛡️ hardeningGitHub secret scanning + push protection enabledrepository settings
🧹 privacyA database backup file was removed from the git historyverified: 0 matches in all refs
🎨 visualsUnified MLKBLK banner v5 (same design system as the profile)docs/mlkblk-banner-v5.svg
⚠️ noteCommit SHAs changed with the history rewrite — re-clone, or git fetch && git reset --hard origin/<branch>—

What's new — 2026-11-29 (v0.2.0 — orchestrator, cavemem, debt ledger)

ChangeWhat it means
Poteto orchestratorNew src/osiris/core/poteto.py — compact plan→steps→status tracking with resume-on-failure: mark_done(), mark_failed(reason), retry_step(), progress_percentage(). Plus task_orchestrator.py — make_orchestrator(objective, steps, max_retries, retry_delay) → TaskOrchestrator.run() returning full step counters (status, completed_steps, failed_steps). A long task survives a failed step instead of dying.
CavememExtended src/osiris/core/memory.py — a compact caveman-style key→value store, LRU-capped, session-persistent. Terse facts an agent carries between turns without spending prompt tokens on prose.
Debt ledgerNew src/osiris/core/debt_ledger.py — a technological-debt register (id, description, priority, timestamp, status open/paid, linked task). add, mark_paid, count_open, get_open, list_by_priority. Unpaid debt stays visible instead of being forgotten.

Verified runtime (isolated temp DB): debt_ledger add → count_open=1 → mark_paid → count_open=0; poteto progress 33.33%, retry_step → True; task_orchestrator.run() returns the full step counters.

What's new — 2026-11-04

ChangeWhat it means
P0–P5 landedAdaptive thresholds, conditional schema, token calibration, reference pruning, loop credit and the net-gain module.
Dashboard rebuiltLiquid UI, live updates, plus concurrency and ledger tests.
Stale task pointer clearedget_task now drops the current-task pointer when the task no longer exists.
4 bugs fixed (2026-11-04)LoopGuard escalates (warn 3 / block 5 + precheck deny), structured plan constraints enforced, handoff ref leak removed, honest unverified integrity.
v0.1.1 released on GitHubValidated 2026-11-03; tag and release v0.1.1 are published. PyPI and npm still serve 0.1.0 until the packages are uploaded.
v0.2.0 released on GitHub - PyPI / npm publication under repairTag and release v0.2.0 are published (poteto + task_orchestrator, tech-debt ledger, typed MemoryStore). The release Publish run failed its preflight (pyproject 0.2.0 vs npm manifest 0.1.2; fixed afterwards in 1a6fcd7). PyPI and npm still serve 0.1.0.

OSIRIS does not replace your other MCP servers (filesystem, Git, GitHub, shell, browser…). It coexists alongside them and drastically cuts what they cost in prompt context.


1. The Core Architectural Constraint

An MCP server never sees the final prompt assembled by the client host. It only sees what the agent sends to it. Therefore, OSIRIS cannot:

What we would wantWhat a standard MCP server can actually do
Write directly into the promptProduce canonical state and have the agent carry it
Erase past conversation turnsDecide what to externalize for future turns
Hide another MCP server's toolsRecommend via Tool Compass
Hard-cap prompt tokensBlock an action (invariants, budget enforcement)

The promise is honest: OSIRIS provides stable state and an enforceable safety contract, not a client prompt builder.


2. Sealed Manifest — The Core Design

osiris.plan returns a deterministic block (~120 tokens) that the agent carries at a fixed position in its context window:

OSIRIS/1 task=7c3f obj="fix PowerShell profile bug" plan=3/7
inv=4 files=6 refs=9 dec=2 budget=ok
SEAL=sha256:3f9a1c…c21b

The SEAL is a SHA256 digest of stable zones. The agent passes it on every turn to osiris.observe: OSIRIS recomputes and detects any state drift immediately.

This is OSIRIS's passive transport: even if the agent stops calling tools, it carries the essential state cleanly.

Three Hashes Because Prompt Cache is Prefix-Based

head_hash   = sha256(system_head ‖ rules)                       immutable
zoneB_hash  = sha256(objective ‖ global_plan ‖ tool_contract)   quasi-stable
tail_hash   = sha256(constraints ‖ pinned_decisions)           append-only
prefix_hash = sha256(head_hash ‖ zoneB_hash)                   ← cached prefix
zoneA_hash  = sha256(head_hash ‖ tail_hash)                    ← full ZONE A
ChangeVerdictCache Cost
head_hashCRITICAL DRIFTFull re-prefill
zoneB_hashMinor driftRe-prefill delta only
tail_hash (append)Normal growthRe-prefill delta only
Pinned item rewrittenCRITICAL DRIFT (semantic)Cache intact, task state corrupted

Appending a constraint or decision changes tail_hash but not prefix_hash: the prompt cache holds, only the new tokens are prefilled.

Rewriting a pinned decision is explicitly caught: OSIRIS checks collection identity, flagging a semantic break (semantic_break: true, cause: pinned_rewrite).


3. The 6 MCP Tools

Access footprint: 1,019 tokens of schemas and descriptions in model context (measured via bench/run_bench.py). Paid on task start, amortized across the session — pays off on the very first turn with ≥800 token payloads.

ToolRoleTypical Response
osiris.planStart / update / resume / status of a task; produces sealed manifest~160 tok
osiris.precheckAuthorize or deny an action (invariants, budget, deduplication)~70 tok
osiris.observeLog actions, loop detection, offload large data, update memory~50 tok
osiris.recallRehydrate refs (server-side filtered: grep, range, outline)variable
osiris.checkpointSnapshot, resume, completion report, reversible compaction~80 tok
osiris.handoffExecutable delegation contracts and structured results~200 tok

osiris.observe combines logging, loop protection, payload externalization, memory registry, and automated pruning in a single call so the agent always reports back seamlessly.

Extended Operations

CallBehavior
osiris.observe(kind="dropped", result=<ref>)Drop receipt: agent confirms payload was evicted from prompt → token savings are proven and credited
osiris.observe(kind="head"|"contract", result=…)Records system prompt head / client contract and detects cache-busting volatile tokens (timestamps, UUIDs)
osiris.recall(op="grep"|"range"|"head"|"tail"|"outline"|"aggregate"|"jsonl")Server-side filtering: only requested matches enter the context window
osiris.plan(mode="status")Context pressure breakdown (measured vs declared vs unknown)
osiris.checkpoint(mode="compact"|"trim"|"clear")Reversible session compaction preparation
osiris.precheck → suggest_alternativeActive collision resolution for duplicate operations

Resources & Prompts

  • osiris://task/{task_id}/manifest — Active zones, drift status, objective
  • osiris://task/{task_id}/status — Real-time context pressure
  • osiris://ref/{ref} — Raw byte content of any referenced payload
  • Prompt osiris/task-resume — Clean agent recovery template after crashes

4. Architecture

┌──────────────────────────────────────────────────────────────┐
│  Agent (Claude Code, Cursor, MiniMax Code, Codex, Cline…)   │
│  Context: system │ tools │ OSIRIS MANIFEST │ history         │
└───────────────────────────┬──────────────────────────────────┘
                            │  MCP stdio — 6 tools, ~1,019 tok schema
                            ▼
┌──────────────────────────────────────────────────────────────┐
│  osiris-mcp  (server.py)                                     │
│  plan · precheck · observe · recall · checkpoint · handoff   │
└───────────────────────────┬──────────────────────────────────┘
                            │
┌───────────────────────────▼──────────────────────────────────┐
│  core/                                                        │
│   task_state  Typed TaskState (objective, plan, decisions)    │
│   memory     Typed memory registry by kind and scope         │
│   refs       Content-addressed store (verified on read)      │
│   prefix     Zones, 3-hash system, drift, PrefillPlan        │
│   prune      Reversible externalization, 4 modes             │
│   query      Server-side payload filtering (grep, range...)  │
│   compaction trim / compact / clear (lossless)               │
│   pressure   Context pressure metrics & tracking             │
│   loopguard  Fingerprinting, 5 loop patterns detection       │
│   invariants TOML rule engine (guard rails)                  │
│   compass    Tool Compass (dynamic relevance scoring)        │
│   handoff    Executable agent delegation contracts           │
│   events     Append-only event journal + checkpoints         │
│   ledger     Tokens / cost / savings / OSIRIS overhead       │
│   fileops    Sandboxed file inspection (roots, size limits)  │
│   redact     Secret scrubbing before any hashing             │
│   policy     Budget policies & token enforcement             │
└───────────────────────────┬──────────────────────────────────┘
                            ▼
        ~/.osiris/osiris.db  +  ~/.osiris/reports/

5. Memory Model

Deterministic, typed, content-addressable memory — not an opaque vector database.

TaskState
├── objective      immutable
├── constraints[]  append-only
├── decisions[]    append-only, pinned verbatim
├── plan           completed / active / remaining steps
├── files{}        path, SHA-256 hash, mtime, last access, ref
├── tool_results{} cache_key, ref, size, token cost, TTL
├── failures{}     error signature, tool, args hash, attempts, lesson
├── lessons[]      general behavioral rules learned
├── handoffs{}     cross-agent delegation contracts
└── budget         estimated vs consumed tokens and cost

Scopes: task → project → agent → global.


6. Cache-Aware Pruning

Security Invariant: Pruning moves payload data to content-addressed refs (mem://sha256:…). It NEVER deletes.

ZONE_A_pruning_cost = pruned_tokens
ZONE_C_or_D_pruning_cost = 0                      ← always zero cost
net_savings = pruned_tokens − (prefix_tokens × P(cache_dead) × prefix_pruned)
ModeTriggerEvictsCache ImpactUse Case
cache_ttl (default)Δt > TTLC/D, and A/B only if cache expiredNeutralRecommended default
conservativeVery high thresholdWorking zone (C/D) onlyZeroHigh-cost API models
balancedModerate thresholdC/D + cold historical turnsZeroStandard agent workflows
aggressiveLow thresholdEverything rehydratableMinor prefill riskFast local LLMs

7. LoopGuard Protection

fingerprint = sha256(tool ‖ canonical_args ‖ result_signature)
DetectionTrigger SignalVerdict
Exact duplicateIdentical fingerprintsuggest_alternative
Repeated failureSame error signature (≥3 times)block + required_action
Loop patternSame error across varying argswarn
OscillationAlternating A/B/A/B patternwarn
RunawayN calls with zero state progresswarn / block

8. Invariants (Guard Rails)

Define project safety rules in .osiris/invariants.toml:

[[invariant]]
id = "tests-before-commit"
when = { tool = "git.commit" }
require = { state = "tests_passed" }
message = "Cannot commit while tests are failing"

[[invariant]]
id = "no-test-edit"
when = { path_glob = "tests/**" }
verdict = "block"
message = "Modifying test suites requires explicit approval"

9. Lossless Verification & Non-Loss Proof

OSIRIS guarantees full auditability for offloaded data:

  1. Self-verifying refs: mem://sha256:<hash>. Reads re-verify data integrity against the hash before returning.
  2. Zero deletion paths: data is relocated to the local store, never pruned permanently.
  3. Reproducible audit:
    python -m osiris audit --task <task_id>
    
    Outputs cryptographic proof of non-loss:
    {"lossless": true, "items_externalized": 14, "items_verified": 14, "items_missing": 0, "integrity_violations": []}
    

10. Verified Benchmarks

Real measurements from python bench\run_bench.py running an automated coding workflow:

Payload SizeBaseline ContextFixed OSIRISAdaptive OSIRISNet ImprovementOSIRIS ModeOverhead
200 tok1,5832,6691,649−4.17%bystander33 tok
800 tok3,8513,7513,255+15.48%light1,808 tok
2,000 tok9,0155,2155,230+41.99%standard2,494 tok
5,000 tok20,9798,1648,162+61.09%standard2,434 tok
20,000 tok82,13523,42323,423+71.48%full2,412 tok
  • Access Cost: 1,038 tokens of schemas, amortized across session tasks.
  • Session Net Gate: PASS (Worst-case net across full suite: +972 tokens).
  • At 20,000 tokens: +71.48% net savings on context usage.

11. Quick Start

cd D:\MCP-Osiris
uv venv --python 3.12 .venv
uv pip install --python .venv\Scripts\python.exe -e ".[dev]"

CLI Verification

.venv\Scripts\python.exe -m pytest tests -q        # Run test suite (146 passed)
.venv\Scripts\python.exe -m ruff check src tests    # Code linting
.venv\Scripts\python.exe -m osiris health           # Server health check
.venv\Scripts\python.exe -m osiris audit --task t_1 # Cryptographic non-loss proof
.venv\Scripts\python.exe bench\run_bench.py         # Reproduce benchmarks

Registration as MCP Server

Add to your client configuration (mcp.json):

{
  "mcpServers": {
    "osiris": {
      "command": "D:\\mcp-osiris\\.venv\\Scripts\\python.exe",
      "args": ["-m", "osiris"],
      "env": {
        "OSIRIS_HOME": "C:\\Users\\Tech\\.osiris",
        "OSIRIS_ROOTS": "D:\\mcp-osiris"
      }
    }
  }
}

12. Installation

From PyPI (recommended)

pip install mcp-osiris          # or: uv pip install mcp-osiris
mcp-osiris                      # runs the MCP server on stdio
osiris health                   # CLI verification
osiris-dashboard --port 8770    # Control Plane (dashboard)

Dashboard network exposure

The dashboard reads local data (memory, event journal, refs, effective configuration). It therefore refuses any non-loopback bind by default:

osiris-dashboard --host 0.0.0.0
# Refus : --host 0.0.0.0 expose le dashboard sur le reseau. ...

# Deliberate, authenticated exposure:
osiris-dashboard --host 0.0.0.0 --allow-remote --token "$SECRET"

With a token set, every /api/* route requires it — via Authorization: Bearer <token> or the ?token=<token> query parameter (needed because the dashboard is a web app). Open the dashboard with http://<host>:<port>/?token=<token>: the token is stored in sessionStorage and removed from the address bar.

From npm (no Python setup)

npx -y osiris-mcp

The npm package is a stdio launcher. It resolves the Python runtime in this order — OSIRIS_PYTHON → uvx → python3 → python — and runs the PyPI package mcp-osiris.

From source

git clone https://github.com/MlkBlk-IT/osiris.git
cd osiris
uv venv --python 3.12 .venv
uv pip install --python .venv\Scripts\python.exe -e ".[dev]"

MCP client configuration

{
  "mcpServers": {
    "osiris": {
      "command": "npx",
      "args": ["-y", "osiris-mcp"],
      "env": {
        "OSIRIS_HOME": "~/.osiris",
        "OSIRIS_ROOTS": "/path/to/project"
      }
    }
  }
}
VariableDefaultRole
OSIRIS_HOME~/.osirisSQLite database, reports, caches
OSIRIS_ROOTS(empty)Roots allowed for file reading (; separated)
OSIRIS_CACHE_TTL_S300Cache TTL (seconds)
OSIRIS_PRUNE_THRESHOLD_TOKENS40000Prune threshold
OSIRIS_DISPATCH_ONLY01 → exposes only osiris.call

License

MIT © 2026 Malik Belkacemi (MLKBLK-IT)


Designed & orchestrated by Malik Belkacemi (MlkBlk-IT) — IT student & hybrid AI systems/product builder in Montréal (CPU-only, $0 budget, AI-assisted & runtime-verified).

Frequently asked questions

What is osiris MCP Server?

Cache-aware context engine for AI agents: server-side payload filtering, honest context ledger.

How do I install osiris MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. osiris MCP Server runs locally from the npm package osiris-mcp with the command npx -y osiris-mcp@0.1.0.

Is osiris MCP Server free and open source?

Yes. osiris MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does osiris MCP Server support remote (HTTP) connections?

No remote endpoint is listed for osiris MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does osiris MCP Server provide?

osiris MCP Server provides 6 tools, including osiris.checkpoint, osiris.handoff, osiris.observe, and osiris.plan. See the full tool list for descriptions and parameters.

How is osiris MCP Server's trust score calculated?

osiris MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server