Gradatum Mcp Stub
БесплатноНе проверенAdapter MCP stdio → HTTP gradatum-server (thin proxy)
Описание
Adapter MCP stdio → HTTP gradatum-server (thin proxy)
README
Memory backbone for AI agents — graduated.
License: Apache-2.0 Status: Stable Website
Quickstart · Architecture · Docs · Changelog · Upgrading 1.0.0→2.0.0 · crates.io · gradatum.org
A self-hosted, embedded memory backbone for multi-agent AI systems. Rust + SQLite. Zero external services required.
Gradatum stores knowledge in loci — a name borrowed from Cicero's Ars Memoriae, the ancient mnemonic method where memories are placed in mental locations of an imagined palace. Agents don't share rooms — they share places of memory.
Why Gradatum
The problem. AI agents need persistent memory that's structured, searchable, and shared across sessions. Existing solutions either lock you into a SaaS, require heavy stacks (Postgres + pgvector + vector DBs), or aren't designed for agents at all.
The Gradatum approach.
| Property | Why it matters |
|---|---|
| Embedded | One Rust binary. No PostgreSQL. No Redis. No external services. |
| Self-hosted | Your memory, your machine. No telemetry. No vendor lock-in. |
| LLM-agnostic | Plug any OpenAI-compatible backend (Ollama, vLLM, llama.cpp, OpenRouter, Anthropic) — or run heuristic-only with no LLM at all. |
| Multi-vault | Separate main from staging and bench-* vaults for testing, migration, A/B prompts. Vault lifecycle management (provision, suspend, soft-delete, purge) ships in 1.0.0, gated behind multi_tenant.enabled. |
| Hierarchical ACL | Bearer-scoped access to memory loci, fail-closed by default. Configure from a shipped preset (hierarchical, flat) or write your own. |
| Markdown truth | Notes are Markdown files with YAML frontmatter. Readable by humans, by any text editor, by cat. The database is an index, not the source of truth. |
| Hybrid search | BM25 (SQLite FTS5) + semantic similarity + PageRank graph + optional cross-encoder rerank. Multi-signal fusion via RRF (Reciprocal Rank Fusion). |
Quickstart
Three ways to run gradatum, in order of speed:
| Path | Best for | |
|---|---|---|
| Docker Compose | Trying it out locally (Linux, or Windows via Docker Desktop/WSL2), no Rust toolchain | Guide A → |
| Pre-built binaries | Deploying on Linux x86_64 | Guide B → |
| crates.io / build from source | Embedding as a library, or Linux arm64 | Guide C → |
Platform support: Linux native · Windows via Docker · no macOS — see docs/DEPLOYMENT.md § Platform support.
git clone https://github.com/gradatum/gradatum.git
cd gradatum
bash scripts/quickstart-docker.sh
Then connect an MCP client (Claude Code) or log into the Studio UI — see Guide D — MCP & Studio.
Architecture
See ARCHITECTURE.md for the full design.
OSS stack
Gradatum is built on these open-source foundations:
| Library | What it does in gradatum |
|---|---|
| Tokio | Async runtime — all I/O, timers, and task scheduling |
| Axum | HTTP server (REST endpoints + studio ServeDir) |
| Tower / tower-http | Middleware stack — rate-limiting, CORS, auth, body limits |
| rmcp | Native MCP server over Streamable HTTP — tool surface at /mcp |
| SQLx | Async SQLite driver — vault index, job queue, sessions |
| Apalis | Background job queue (SQLite-backed, DLQ, per-kind routing, monitoring) |
| OpenDAL | Storage abstraction — local FS (default) or S3 object storage, selected by configuration; GCS/Azure planned |
| tree-sitter | Deterministic code parsing for the code index (Rust, Python, Bash, TS, TSX) — zero LLM |
| rustls + axum-server | Native TLS termination (TLS 1.2+/1.3, fail-closed) |
| Moka | In-process LRU cache (EffectiveNote, TTL-based invalidation) |
| serde | Serialization layer for all wire formats (JSON, YAML, TOML, bincode) |
| argon2 | API key hashing (Argon2id) |
| ed25519-dalek | JWT signing (Ed25519) |
ONNX Runtime (ort) |
Optional neural reranker (feature onnx-reranker) |
| Figment | Layered config (TOML + env + CLI) |
| Prometheus | Metrics export (job counts, latencies, embedder stats) |
| Clap | CLI for gradatum-admin |
Gradatum is structured in two layers:
Memory layer
The core vault stack — notes are Markdown files, the database is an index.
| Component | Crate(s) | Role |
|---|---|---|
| gradatum-server | gradatum-server |
Stateless HTTP façade (REST + MCP) |
| gradatum-worker | gradatum-worker |
Async job worker (curator + maintenance) |
| Curator | gradatum-curator |
LLM-assisted classification and metadata tagging |
| Embedder | gradatum-embed |
Dense vector embeddings (bge-m3 1024d or configurable) |
| Hybrid search | gradatum-search, gradatum-index |
BM25 (FTS5) + semantic cosine + PageRank + optional ONNX reranker, fused via RRF |
| Vault + storage | gradatum-vault, gradatum-storage |
Markdown source of truth + OpenDAL storage abstraction (local FS or S3, by configuration; GCS/Azure planned) |
| Lifecycle | gradatum-warden |
IP CIDR allowlist + per-IP rate limiting + loopback bypass |
| ACL / auth | gradatum-auth, gradatum-acl-auth, gradatum-acl-policy |
Bearer-scoped access, JWT signing, hierarchical policies |
| Queue | gradatum-queue |
Apalis SQLite-backed job queue, DLQ, per-kind routing |
Agent layer
Local inference infrastructure — optional, deploy alongside the memory layer when you want fully offline LLM-backed features.
| Component | Crate(s) | Role |
|---|---|---|
| Engine | gradatum-engine |
Process supervisor for llama-server children. One instance per model. Transparent reverse-proxy (OpenAI-compatible), restart-bounded, Prometheus /metrics on loopback. |
| Gateway | gradatum-gateway |
Unified LLM router. Maps logical aliases (curator, embed, …) to providers, circuit-breaker, primary + fallback routing. Covers both chat and embeddings. |
| Event log | gradatum-server (B1) |
Structured event log for inference calls (table event_log, retention-aware). |
In one diagram
AI agents / coding assistants / orchestrators
↓ MCP / HTTP / CLI
┌──────────────────────────┐
│ gradatum-server │ stateless façade
└────────┬─────────────────┘
↓ async queue (Apalis)
┌──────────────────────────┐
│ gradatum-worker │ curator + maintenance jobs
└────────┬─────────────────┘
↓
┌──────────────────────────┐
│ vault (one) │
│ ├─ vault_id="main" │
│ └─ vault_id="staging" │
│ ├─ locus paths │ hierarchical ACL via bearer
│ ├─ sections │ decisions / debug / etc.
│ └─ notes (MD+meta) │
└──────────────────────────┘
↕ LLM calls via gradatum-gateway
┌──────────────────────────┐
│ gradatum-gateway │ alias routing + circuit-breaker
└────────┬─────────────────┘
↓ (local or remote)
┌──────────────────────────┐
│ gradatum-engine │ supervisor per model
│ └── llama-server child │ loopback only, GGUF
└──────────────────────────┘
Multi-host layout (separate app-host and GPU host, one gradatum-engine instance per model):
see docs/DEPLOYMENT.md §2
for the full diagram and config wiring. The engine layer is optional — with no GPU host, the
gateway falls back to a local CPU engine instance on the app-host.
Real Live Setup feedback
Field notes from running gradatum's gateway + engine layer on an AMD AI HX 395 MAX 128 Go mini-PC — 128 GB unified memory, 8060S iGPU, Vulkan backend. Highlights: a default llama-server cache setting caused ~27× slower turns under concurrent sessions until tuned; non-zero sampling penalties can silently fall off the GPU path and cost ~34% decode throughput; speculative decoding (MTP) is a net loss on some model architectures and a clear win on others.
Full write-up, numbers, and fixes: REALFEEDBACK.md.
Roadmap
On crates.io: crates.io/crates/gradatum · Apache-2.0 · Rust 1.91+
Gradatum is built in three chapters: memory first, then agents, then the sovereign terminal.
| Version | Status | What it brings |
|---|---|---|
| 0.1.0-alpha – v0.4.3 | ✅ shipped | Working knowledge store: write, search, trust-scored sources, version history, stable links, lifecycle (forget, compact, distil). |
| v0.5.2 | ✅ shipped | Code awareness: index any codebase from source, search by symbol or file. Optional native TLS termination, chronological browsing, agent tracing. |
| v0.6.4 | ✅ shipped | Native MCP server — any MCP client connects directly over HTTP. Security baseline, 5-language code-map, 12 correctness fixes. Health endpoint with version proof, hardened API surface. 2337 tests PASS. |
| v0.7.6 | ✅ shipped | Memory intelligence layer: assembled context pipeline (BM25 + semantic + RRF + composite scoring), proactive recall (server-initiated + pull surface), session-window context efficiency, temporal search filters and decay scoring, agent identity injection via MCP, scheduled-task health observability, curated metrics timeseries with Studio charts, and deterministic distill validation gate. |
| v1.0.0 | ✅ shipped | First stable release. Multi-tenant / multi-vault isolation foundation, multi-user identity, per-note usage salience, reversible delete (on-demand delete archives the note, registry-driven retention GC, operator-only restore), FR→EN user-facing string migration complete (runtime literals, CLI, HTTP API) — internal rustdoc migration deferred to a 1.x minor, SemVer strict from here. |
| v2.0.0 (Alluvium) | ✅ shipped | Identity is strictly credential-derived — no default identity, no client-declared author, no silent fallback — closing the 1.x line. Vault storage on an S3-compatible object backend as an alternative to local filesystem, notes written in plaintext with no encryption applied by gradatum itself — see SECURITY.md § Privacy posture; the network-filesystem startup restriction is removed. Link-edge reconciliation (gradatum-admin repair-note-links), Docker deployment, workspace dependency refresh. |
| — | ⬜ planned | Agent runtime — terminal agent that reasons over the codebase using the vault as its memory. No version is committed to it yet. |
What the Status column means. ✅ shipped = the milestone is complete in this repository and carries a git tag. 🔄 in progress = the milestone's code and CHANGELOG entry are on
main, but no git tag has been cut yet. A git tag and a crates.io release are independent facts: a tagged milestone is not necessarily on the registry. For what is on the registry at any given moment, crates.io/crates/gradatum is authoritative — this document does not mirror it.
Full roadmap: gradatum.org. Per-version detail: CHANGELOG.md.
Highlights by version
Condensed — the authoritative, detailed log for every version lives in CHANGELOG.md.
- v2.0.0 (Alluvium) — Identity is strictly credential-derived: no default identity, no
client-declared
author, no silent fallback. Vault storage on an S3-compatible object backend as an alternative to local filesystem — notes stay in plaintext, no encryption applied by gradatum (SECURITY.md § Privacy posture). Link-edge reconciliation (gradatum-admin repair-note-links), Docker deployment. Breaking changes — see docs/UPGRADING-1.0.0-to-2.0.0.md. - v1.0.0 — Multi-tenant / multi-vault isolation foundation (
multi_tenant.enabled, defaultfalse), multi-user identity with per-jtiaudit attribution, per-note usage salience, reversible delete (archive + retention GC + operator restore),build_shain--versionfor deploy-time verification. Two MCP tools introduced:create_feature_card,job_status. - v0.7.6 — Memory intelligence layer:
vault_contextbecame a full BM25 + semantic + RRF- composite-score pipeline; proactive recall (server-initiated surfacing +
POST /api/v1/proactive_recall); temporal search (from_ms/to_ms,occurred_atdecay scoring); agent identity injection via MCPinitialize; curated metrics timeseries with Studio charts; deterministic distill quality gate.
- composite-score pipeline; proactive recall (server-initiated surfacing +
See CHANGELOG.md [2.0.0], [1.0.0], [0.7.6] for the full field-by-field
detail, including every breaking change and deprecation.
Documentation
Project overview and design
| Document | Purpose |
|---|---|
| ARCHITECTURE.md | Technical design — planes, ACL hierarchy, source-of-truth model, search pipeline, concurrency, storage layout. |
| DEPENDENCIES.md | Workspace dependency tree, level invariants, version pinning policy. |
| docs/guides/E-ports-and-config.md | Port matrix (19090 + offset), override precedence, server.toml field reference. |
| docs/BENCH.md | Benchmark results (curator F1w, search relevance). |
| CHANGELOG.md | Version history and notable changes per release. |
Installation guides
| Guide | Purpose |
|---|---|
| A — Docker quickstart | docker compose stack — fastest local path. |
| B — Install from binaries | Pre-built Linux x86_64 archives, systemd. |
| C — crates.io & build from source | Library use, or arm64/macOS/Windows. |
| D — MCP & Studio | Connect an MCP client, API keys, Studio login. |
| E — Ports & configuration | Port matrix, config field reference. |
| Upgrading 1.0.0 → 2.0.0 | Breaking-change migration guide. |
Governance and process
| Document | Purpose |
|---|---|
| GOVERNANCE.md | Decision-making, project-map feature-card tracking, maintainer roles. |
| RELEASE-POLICY.md | Versioning policy, anti-fragility gates, public-release criteria. |
| MAINTAINERS.md | Current maintainers. |
| CONTRIBUTING.md | Contributor guide, PR process. |
| CODE_OF_CONDUCT.md | Contributor Covenant 2.1. |
| CLA.md | Contributor License Agreement. |
| SECURITY.md | Vulnerability disclosure process and supported versions. |
| AGENTS.md | Guidance for AI assistants working on this repository. |
Deployment (exploitation, once installed)
| Document | Purpose |
|---|---|
| docs/DEPLOYMENT.md | Engine multi-instance deployment — topology, sizing, upgrade ordering, troubleshooting. |
| packaging/systemd/README.md | Systemd unit reference — server, worker, engine template, gateway service, smoke tests. |
Security note: the default ACL is fail-closed — with no preset file present, every locus is denied. Configure an ACL preset (
[acl] preset_path, a TOML of[[consumer]]blocks — from a shipped preset or your own) to grant access. See SECURITY.md for the hardening defaults and their known limitations.
Platform-specific guides (archived)
| Document | Purpose |
|---|---|
| docs/WINDOWS-GUIDE.md | Windows guide — deferred (archived, Linux-only as of 2026-06-05). |
| docs/KNOWN_ISSUES-WINDOWS.md | Windows known issues — deferred (archived, Linux-only as of 2026-06-05). |
Vocabulary
| Term | Meaning |
|---|---|
| Vault | The technical backing store (SQLite + FTS5 + Markdown). Separate vaults (main, staging, bench-*) are readable side-by-side; vault lifecycle management ships in 1.0.0 behind multi_tenant.enabled. |
| Locus | A logical subdivision of a vault, isolated by ACL. From Cicero's ars memoriae. |
| Section | One of the cognitive categories: decisions, architecture, debug, reasoning, feedback, lessons-learned, retrospectives, experiments, agent-issues, reference, council, project-map, identity |
| Note | Atomic Markdown file with YAML frontmatter |
| Bearer / Consumer | An authenticated identity with read/write ACL patterns |
| Preset | A template configuration shipped in crates/gradatum-admin/presets/ |
Contributing
Gradatum is built openly on lessons learned from a prior private system. Issues and PRs are welcome. Public APIs are stable from 1.0.0; internals may still move between minor releases. See CONTRIBUTING.md and GOVERNANCE.md for the process.
License
Установка Gradatum Mcp Stub
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/gradatum/gradatumFAQ
Gradatum Mcp Stub MCP бесплатный?
Да, Gradatum Mcp Stub MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Gradatum Mcp Stub?
Нет, Gradatum Mcp Stub работает без API-ключей и переменных окружения.
Gradatum Mcp Stub — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Gradatum Mcp Stub в Claude Desktop, Claude Code или Cursor?
Открой Gradatum Mcp Stub на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiSupabase
Database, auth and storage
автор: SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Gradatum Mcp Stub with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
