Ratary Memory MCP

io.github.ontorata由 GitHub 帳號 ontorata 發布v1.1.1更新於 Oct 25, 2026

Persistent coding memory for AI assistants. MCP stdio, hybrid search, graph, context.

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

Ratary Memory MCP 讓 AI 助理取得由 Ratary 伺服器支撐的持久、可檢索記憶,使上下文能跨工作階段與 IDE 保留。

可以做什麼
儲存、更新與整理持久記憶,支援摘要、代號、收藏、封存與交接,並有可還原與合併的版本歷史(README 稱共 28 個工具)。透過 SQL、向量、詞法索引與圖進行混合檢索,可選多種精確度模式。為提示詞組裝節省 token 的上下文,將瀏覽與注入分開。把記憶連結為結構化知識並以圖方式遍歷關聯。依工作區與代理劃分範圍,讓多個用戶端共用同一記憶層。
適用情境
適合需要程式助理或代理在工作階段之間記住先前決策、專案上下文與交接內容的情境,也適合讓多個用戶端(Cursor、Claude Code、自訂代理)共用同一份持久記憶,而不必反覆貼上背景資料。
執行需求
透過 npm 套件 @ratary/mcp-server(npx)以 stdio 本機程序執行,需要 Node.js。需要可連線的 Ratary 伺服器:自架(Node.js 24 加 SQL 中介資料儲存,如 Postgres)或使用託管 API。需設定 RATARY_API_KEY(aic_ 開頭的金鑰),可選設定 RATARY_BASE_URL,預設指向託管端點。
安裝前請注意
RATARY_API_KEY 金鑰可存取你的記憶庫,請勿放入共用設定。預設指向廠商託管端點,除非把 RATARY_BASE_URL 改為自己的伺服器,否則記憶會傳送給第三方。工具會寫入、更新、封存與合併已存記憶,誤操作可能更動或遺失上下文;版本歷史有幫助,但仍應核對變更。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Ratary Memory MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Ontorata]

Ratary

Build AI that remembers.

Ratary is the open-source AI Brain Platform — persistent memory,
structured knowledge, and intelligent retrieval for every model and agent you run.

Get started →  ·  Star on GitHub  ·  Website  ·  Docs

[MIT License] [MCP native] [Self-host] [Node 24] [@ratary/sdk on npm] [@ratary/cli on npm] [@ratary/mcp-server on npm]

Ratary is where AI remembers. · Built by Ontorata

Quick start · Ecosystem · Architecture · How it works · Capabilities · Docs


The problem

Why does AI forget between sessions?

Every AI session starts from zero.

Your model forgets yesterday's architecture decisions. Your agent drops customer context between runs. Your coding assistant can't recall why you chose Postgres over DynamoDB. Teams paste the same background into Cursor, Claude, ChatGPT, and custom bots — and knowledge still drifts.

Vector databases store chunks. RAG pipelines retrieve documents. Agent frameworks orchestrate tools.

None of them give AI a durable brain.


Why Ratary exists

Why build a brain layer now?

AI models are getting cheaper. Context windows are getting larger. Agents are getting capable.

But AI still forgets.

The bottleneck is no longer reasoning. It's memory — durable, structured, retrievable, and owned by you.

Every serious application eventually needed a database. Every serious AI system will need a brain layer: persistent intelligence that sits between your models and your storage — independent of any single vendor, IDE, or agent framework.

AI should remember.
Developers should own that memory.

Ratary exists to be that layer. Applications bring models. Ratary brings the brain.


What Ratary is

What is Ratary?

Ratary is an AI Brain Platform — infrastructure that gives AI:

  • Persistent memory — durable, owner-scoped, versioned
  • Structured knowledge — metadata, relations, graph traversal
  • Intelligent retrieval — hybrid search + bounded context assembly
  • Protocol access — Ratary MCP, REST, optional gRPC

It sits between AI clients and storage. One brain, many surfaces — Cursor, Claude Code, custom agents, enterprise APIs, and remote MCP hosts.

The runnable deployment is Ratary Server — this repository. Ratary is the product; Ratary Server is what you clone and run.

Bring your model. Ratary brings the memory.


Quick start

How do I run Ratary Server locally?

Ratary is the product. Ratary Server is the open-source deployment you run — ontorata/ratary (this repository). @ratary/sdk, @ratary/cli, and Ratary MCP connect to it; sibling Ontorata products use the same source of truth.

Prerequisites: Node.js 24 · SQL metadata store (pick one — Postgres is the template default)

Path A — PostgreSQL (npm + local or Docker)

bash
git clone https://github.com/ontorata/ratary.gitcd ratary && npm installcp .env.example .env   # Set AUTH_SECRET + DATABASE_URL — see .env.example QUICK STARTnpm run db:apply-postgres-schemanpm run setup          # wire Ratary MCP for Cursor, Claude Code, …npm run dev

Or use Docker: docker compose --profile postgres up --build — see docs/DOCKER.md.

Path B — Cloudflare D1

bash
git clone https://github.com/ontorata/ratary.gitcd ratary && npm installcp .env.example .env   # Set AUTH_SECRET + SQL_PROVIDER=d1 + CLOUDFLARE_* / D1_*npm run db:migratenpm run setupnpm run dev

Details: docs/GUIDE.md · docs/CONFIGURATION.md

→ API http://localhost:9876 · Swagger /docs

First REST call: bootstrap once to get an API key (aic_...) — see GUIDE — First REST API key.

bash
# Save your first memorycurl -X POST http://localhost:9876/api/v1/memory \  -H "Authorization: Bearer aic_YOUR_KEY" \  -H "Content-Type: application/json" \  -d '{"title":"Hello brain","project":"demo","content":"Ratary remembers this."}'

Full guide: docs/GUIDE.md · SDK & MCP examples in docs/examples/

npm packages (@ratary)

Client libraries ship on npm under the @ratary scope — product name, published by Ontorata. No server clone required for SDK, CLI, or hosted MCP.

bash
npm install @ratary/[email protected]npx @ratary/[email protected]          # remote REST → stdio MCPnpm install -g @ratary/[email protected]      # operator CLI
PackageVersionInstallRole
@ratary/sdk1.1.0npm install @ratary/sdkTyped REST client + client.admin.*
@ratary/cli1.1.0npm install -g @ratary/cliOperator commands (admin, connectors)
@ratary/mcp-server1.1.3npx @ratary/mcp-serverIDE MCP → hosted API

Set RATARY_BASE_URL and RATARY_API_KEY (aic_...). Details: packages/README.md · remote MCP install.


Ecosystem

Which repository owns what?

The Visual architecture diagram shows logical layers inside Ratary Server. This diagram shows repository and product relationships — what ships in this repo, what connects to it, and what lives in sibling Ontorata repositories. Both views describe the same platform from different angles.

Throughout this README, Ratary MCP means the official memory MCP implementation (stdio in this repo · npm @ratary/mcp-server for hosted REST). It is not the same as Ontorata MCP (ecosystem gateway — separate repo).

text
┌─────────────────────────────────────────────────────────────┐│                      Ratary Cloud (opt-in)                  ││         optional hosted deployment · not this repo          │└──────────────────────────────┬──────────────────────────────┘                               │┌──────────────────────────────▼──────────────────────────────┐│  Ratary Server          ← ontorata/ratary (this repo)       │└──────────────────────────────┬──────────────────────────────┘         │              │              │         ▼              ▼              ▼   @ratary/sdk    @ratary/cli   @ratary/mcp-server   (SDK)          (CLI)         (Ratary MCP · npm)         │              │              │         └──────────────┴──────────────┘                               │         ┌─────────────────────┴─────────────────────┐         ▼                     ▼                     ▼   Ontorata MCP         Ontorata Studio          Ontory Runtime   ontorata/ontorata-mcp ontorata/Ontorata-Studio  ontorata/ontory-runtime   ecosystem product     ecosystem product         (ADR-2119; was ontorata/ontory)

Infrastructure (ships from ontorata/ratary — server plus client packages):

ComponentRepositoryRole
Ratary Serverontorata/rataryMemory engine — REST, persistence, Ratary MCP stdio. You run this.
Ratary SDKnpm @ratary/sdk · packages/sdkTyped REST client for Ratary Server.
Ratary CLInpm @ratary/cli · packages/cliOperator commands; delegates to Ratary SDK.
Ratary MCPnpm @ratary/mcp-server · stdio in repoMemory MCP — full stdio in clone · npm proxy for hosted REST.

Ecosystem products (separate repositories — connect to Ratary Server; not bundled here):

ProductRepositoryRole
Ontorata MCPontorata/ontorata-mcpEcosystem MCP gateway — Ratary MCP plus additional Ontorata tools.
Ontorata Studioontorata/Ontorata-StudioOperator UI — uses @ratary/sdk only.
Ontoryontorata/ontory-runtimeOntory Runtime — AI orchestration (ADR-2119). Legacy URL ontorata/ontory redirects.

Ratary Server does not depend on ecosystem product repositories.

Ratary MCP vs Ontorata MCP

Which MCP should I install?

Ratary MCPOntorata MCP
LayerRatary infrastructureOntorata ecosystem product
What it isOfficial memory protocol for Ratary ServerEcosystem gateway for Ontorata products
ScopeMemory — CRUD, search, context, graphRatary memory plus additional Ontorata tools
Repositoryontorata/ratary · npm @ratary/mcp-serverontorata/ontorata-mcp
Typical mcp.json keyrataryontorata

Use Ratary MCP for direct memory access. Use Ontorata MCP for one MCP entry point across the Ontorata stack. Both use Ratary Server as source of truth.


What Ratary is not

How is Ratary different from alternatives?

Vector DBMemory APIRAGAgent frameworkRatary
Primary jobSimilarity searchKey-value recallDocument Q&ATool orchestrationDurable AI memory
Structured knowledge & graph❌⚠️❌⚠️✅
MCP-native IDE integration❌⚠️❌⚠️✅
Token-efficient context assembly❌⚠️❌⚠️✅
Self-host & data sovereignty✅⚠️⚠️⚠️✅
Clear agent boundaryN/A⚠️N/A❌ bundled✅ substrate only

Ratary complements your stack — it does not replace pgvector, LangGraph, or your agent of choice. See the Capability matrix for a feature-level comparison.

Why not just pgvector, Mem0, Letta, LangGraph, or RAG?
If you only use…You get…What you miss
pgvectorEmbedding similarityStructured memory, graph, MCP, context packing
Mem0Fast hosted memory APIFull self-host, hybrid retrieval, enterprise adapters
LettaAgent + memory bundledYour agent stays yours — Ratary is substrate, not runtime
LangGraphWorkflow & tool routingShared durable memory across sessions and clients
RAGDocument chunksEvolving memory — decisions, handoffs, relations

Visual architecture

How is Ratary Server structured internally?

This diagram shows the logical internal architecture of Ratary — how memory, knowledge, retrieval, and storage layers compose inside the platform. It is not a repository or product map.

        ┌─────────────────────────────────────────┐        │           Your AI applications           │        │  Cursor · Claude · Agents · REST · MCP   │        └────────────────────┬────────────────────┘                             │                    MCP · REST · gRPC                             │        ┌────────────────────▼────────────────────┐        │     Ratary Server (logical layers)       │        │  ┌─────────┐ ┌──────────┐ ┌───────────┐ │        │  │ Memory  │ │Knowledge │ │ Retrieval │ │        │  └────┬────┘ └────┬─────┘ └─────┬─────┘ │        │       └───────────┴─────────────┘       │        │         Context · Learning · Protocols   │        └────────────────────┬────────────────────┘                             │        ┌────────────────────▼────────────────────┐        │     Pluggable storage (your choice)      │        │  Postgres · Supabase · MariaDB · D1 · pgvector · Neo4j · │        │  R2/S3/MinIO · OpenSearch · ClickHouse · …        │        └─────────────────────────────────────────┘

Search browses. Retrieval injects context. Embedding enriches asynchronously — never on the CRUD hot path.

Details: docs-ai → products/ratary/roadmap/ARCHITECTURE.md

For repository and product relationships (SDK, CLI, Ratary MCP, Ontorata ecosystem repos), see Ecosystem — a separate diagram, same platform, different perspective.


How Ratary works

What happens to a memory after you save it?

   Write          Enrich         Retrieve        Learn          Reuse     │               │               │              │              │     ▼               ▼               ▼              ▼              ▼  Save via       Summarize,      Rank & pack    Signals,       Same memory  Ratary MCP/REST embed, link     context for    consolidate,   powers every                 relations       your prompt    evolve         client
  1. Write — Persist memory through Ratary MCP or REST.
  2. Enrich — Summarize, embed, and relate — asynchronously.
  3. Retrieve — Assemble the smallest useful context slice.
  4. Learn — Optional signals and consolidation improve recall over time.
  5. Reuse — One brain across IDEs, agents, and APIs.

Core capabilities

What can Ratary Server do today?

Memory intelligence

Durable memories with summaries, codenames, favorites, archives, and handoffs. Version history with restore and merge — built for long-running work, not chat logs.

Knowledge

Semantic enrichment, relation linking, and graph traversal. Memory becomes navigable knowledge — not a flat pile of notes.

Retrieval

Hybrid search across SQL, vectors, lexical index, and graph. Separate browse from inject. Optional precision modes (hybrid, semantic, fulltext, title) when you need more control.

Reasoning support

Progressive retrieval, token budgets, and summary-first context assembly — typically ~85% fewer tokens than dumping full memory bodies into prompts.

Learning

Quality signals, consolidation, and compression — optional pipelines that improve the brain over time without retraining your model.

External agent support

Capability manifests, workspace scoping, and 28 Ratary MCP tools. External agents discover what the brain can do; Ratary never embeds agent reasoning — see What Ratary is not.

Platform

Pluggable adapters: choose SQL metadata (Postgres, Supabase, MariaDB/MySQL, D1, TiDB/Cockroach) plus optional pgvector, R2/S3/MinIO, Azure Blob, GCS, Meilisearch, OpenSearch, Neo4j, Redis, DuckDB, ClickHouse. Same application code for every backend.

Self-host stacks: docs/DOCKER.md — postgres or enterprise (MariaDB + MinIO + Redis) profiles.

Cloud & enterprise

Self-host, deploy to Vercel, or run a control plane with metering and federation. RBAC workspaces, audit trails, SSO, and policy hooks — opt-in when you need them.

Observability

OpenTelemetry, Prometheus metrics, SLO dashboards, and cost visibility for production brains.

Developer experience

OpenAPI, npm @ratary/[email protected] · @ratary/[email protected] · @ratary/[email protected] — and one-command IDE setup (npm run setup).

Knowledge fabric (opt-in)

Ingest from external systems of record — Notion (live on hosted prod), Confluence, Google Drive, SharePoint, and Teams connectors (code complete · enable per connector via env). Webhook HMAC, incremental sync, provenance on memories. Flags: KNOWLEDGE_FABRIC_ENABLED + CONNECTOR_SYNC_ENABLED. Guides: Knowledge fabric · Production enable · Phases 32–34 in docs-ai.


Use cases

Who is Ratary for?

What you buildWhat Ratary provides
Developer AICoding assistants across IDEs and sessionsPersistent project memory, MCP tools, handoffs
Enterprise searchInternal knowledge discoveryHybrid retrieval over structured memory, not just files
Customer supportAI that handles ticketsDurable customer context without re-prompting every thread
Knowledge managementTeam second brainGraph-linked memories, codenames, relations, summaries
Autonomous agentsMulti-agent systemsShared memory layer with workspace and agent scoping
Personal AIPrivate assistant you ownSelf-hosted, exportable, sovereign data

Capability matrix

How does Ratary compare feature-by-feature?

For category positioning, see What Ratary is not.

CapabilityRataryVector DBMemory APIRAGAgent framework
Persistent structured memory✅❌⚠️❌⚠️
MCP-native✅❌⚠️❌⚠️
Hybrid SQL + vector + graph✅⚠️⚠️⚠️⚠️
Token-efficient context assembly✅❌⚠️❌⚠️
Knowledge graph & relations✅❌⚠️❌⚠️
Self-host sovereignty✅✅⚠️⚠️⚠️
Agent boundary (bring your agent)✅N/A⚠️N/A❌
Enterprise storage adapters✅✅⚠️⚠️⚠️

Documentation

Where do I read next?

Engineering knowledge (internal)

Architecture, ADRs, roadmap, phases, design history, and reviews live in the Ontorata Knowledge OS:

https://github.com/ontorata/docs-ai → products/ratary/

Operator / developer guides (this repository)

Ratary Server (ontorata/ratary — this repository):

docs/GUIDE.mdSetup, daily usage, Ratary MCP configuration
docs/install/README.mdPer-harness MCP / plugin installation
docs/DOCKER.mdContainer & Compose self-host
docs/CONFIGURATION.mdEnvironment variables — what each flag does
docs/examples/MCP and IDE config templates
MCP/README.mdRatary MCP — stdio and @ratary/mcp-server
packages/README.mdnpm packages — install, env, publish
.env.exampleEnv template — meanings in docs/CONFIGURATION.md
docs/PRODUCTION-ENABLE.mdHosted deploy — knowledge fabric on Vercel
docs/OPS-PRODUCTION-VERIFY.mdProduction ops checklist — npm run ops:verify-production
docs/MCP-CHATGPT-OAUTH.mdChatGPT MCP OAuth + Keycloak IdP runbook
MCP/submission/directory-status.mdMCP directory listing status
docs/ENTERPRISE-MODULES.mdEnterprise flags (opt-in)
CHANGELOG.mdRelease notes and version map
SECURITY.mdVulnerability reporting
ontorata/docs-aiArchitecture · ADR · phases · evidence (Knowledge OS)

Canonical hosted API: https://ratary.ontorata.com (self-host uses your own base URL).

Ontorata ecosystem (separate repositories — not in this tree):

ontorata/ontorata-mcpOntorata MCP — ecosystem gateway
ontorata/Ontorata-StudioOntorata Studio — operator UI (setup)

Roadmap

What is shipping when?

Canonical roadmap / phase history: ontorata/docs-ai → products/ratary/roadmap/ · products/ratary/phases/

Organized by direction — not sprints. Phases 1–31 are implemented in code (gates PASS); platform modules stay opt-in via env unless noted.

ThemesCodeOps (prod)Primary repository
Today (v1.0)Ratary MCP + REST, hybrid/graph retrieval, peer SQL, Docker, npm @ratary/[email protected] · @ratary/[email protected], remote MCP, Ontorata Studio. Platform (opt-in): knowledge fabric (Notion/Confluence/Drive/SharePoint/Teams live), universal memory fabric (Phase 32), Neptune traversal (Phase 33), federation, global intelligence✅Partialontorata/ratary
Ops (now)Prod connector creds · MCP directory follow-ups · ChatGPT OAuth IdP (Keycloak)✅⏳ontorata/ratary

Ops status (2026-07-19): Notion + fabric/federation flags on Vercel ✅ · D1 db:migrate ✅ · SDK codegen CI ✅ (workflow) · Confluence/Drive/SharePoint/Teams creds ⏳ (owner secrets) · Keycloak IdP ⏳ (auth.ontorata.com → deploy Render; prod uses Smithery API-key mode until OAuth enabled) · MCP listings mostly Listed (directory-status.md). Verify: npm run ops:verify-production · OPS-PRODUCTION-VERIFY.md

Enterprise modules ship opt-in via environment flags on Ratary Server — defaults stay lean. See ENTERPRISE-MODULES.md and CONFIGURATION.md.


Vision

What is Ratary building toward?

Today every application has a database.

Tomorrow every AI will have a brain.

Ratary is building that layer — open, portable, self-hostable, and protocol-native. Not another chat wrapper. Not another vector dump. Infrastructure for persistent intelligence.

Knowledge should accumulate. Boundaries should be respected. Agents should stay coherent across time.

If you're building AI that lasts longer than a single prompt — build on Ratary.


Bring your model. Bring your agent. Ratary brings the brain.

Ratary · where AI remembers · Ontorata · MIT License


Contributing

How do I contribute?

Ratary Server (this repo): fork ontorata/ratary → branch → npm run lint && npm run build && npm test → PR to ontorata/ratary.

Standard PR gate:

bash
npm run lint && npm run build && npm test

Org-memory / recall changes (maintainers with .ai/ workspace): run the full gate before merge — see docs/RATARY-VALIDATION-RUNBOOK.md:

bash
npm run ci:ratary-validation

Production ops changes (Vercel env, connectors, OAuth): see docs/OPS-PRODUCTION-VERIFY.md:

bash
npm run ops:verify-production

Extended governance (.ai/ phases, ADRs) lives in the development mirror — optional for contributors; docs-only and standard PRs to ontorata/ratary are welcome without the mirror.

Ontorata MCP and Ontorata Studio accept contributions in their own repositories — not via this repo.

Questions: [email protected]

來源:README.md,提交 04f6a91

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合