Ratary logo

Ratary

by ontorata

Persistent AI memory over MCP with hybrid search, knowledge graphs, and self-hosted SQL storage.

Install Ratary

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ontorata-ratary": {
      "command": "npx",
      "args": [
        "-y",
        "@ratary/mcp-server"
      ],
      "env": {
        "AUTH_SECRET": "YOUR_VALUE_HERE",
        "DATABASE_URL": "YOUR_VALUE_HERE",
        "SQL_PROVIDER": "YOUR_VALUE_HERE",
        "RATARY_BASE_URL": "YOUR_VALUE_HERE",
        "RATARY_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env AUTH_SECRET=YOUR_VALUE_HERE --env DATABASE_URL=YOUR_VALUE_HERE --env SQL_PROVIDER=YOUR_VALUE_HERE --env RATARY_BASE_URL=YOUR_VALUE_HERE --env RATARY_API_KEY=YOUR_VALUE_HERE --transport stdio ontorata-ratary -- npx -y @ratary/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 6 tools correctly ().

Overview

The ontorata/ratary MCP server gives AI assistants persistent, structured memory through MCP tools. It stores versioned, owner-scoped knowledge and supports hybrid retrieval, metadata, relationships, graph traversal, and bounded context assembly. Run the server locally with a SQL metadata store, or connect the npm MCP package to a Ratary API using environment variables. Reach for it when coding assistants or agents need memory across sessions and projects.

Use cases

  • Store architecture decisions between coding sessions
  • Retrieve project knowledge for an AI coding assistant
  • Connect multiple agents to shared persistent memory
  • Traverse relationships between stored technical facts

Key features

  • Persistent versioned memory
  • Hybrid search and context assembly
  • Structured metadata and knowledge graphs
  • 28 MCP tools
  • Self-hosted SQL storage
  • Optional remote Streamable HTTP

Tools6

What Ratary lets your agent do. Expand a tool for its parameters.

Verified live~1.0k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 109d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Makes changes · 1Handles credentials · 2Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age149 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @ratary/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads213Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Ratary works

What ontorata/ratary MCP server does

The ontorata/ratary MCP server connects AI clients to Ratary, an open-source memory platform for persistent AI context. It is intended for assistants and agents that need to retain information between sessions instead of relying only on the current conversation or manually supplied documents.

Ratary stores durable, owner-scoped, versioned memory alongside structured knowledge. Records can include metadata and relationships, allowing applications to retrieve related information and traverse a knowledge graph. The platform also provides hybrid search and bounded context assembly so retrieved information can be selected for an agent's available context.

The repository contains Ratary Server, which exposes REST, persistence, and a Ratary MCP stdio implementation. The project also publishes client packages, including @ratary/mcp-server, which connects an IDE MCP client to a Ratary API over stdio.

How it works

A local deployment runs on Node.js 24 and uses a SQL metadata store. PostgreSQL is the documented template default, while Cloudflare D1 is also supported in the quick-start instructions. The current description additionally identifies MariaDB and Docker as deployment options.

For a self-hosted setup, the MCP layer operates against the Ratary Server instance. The server exposes an API at http://localhost:9876 in the local example, with Swagger documentation at /docs. A bootstrap step creates an API key beginning with aic_; clients then authenticate with that key.

The npm MCP package provides another path: it runs as a stdio process and sends requests to a hosted or self-hosted Ratary REST API. Configure the target with RATARY_BASE_URL and authenticate with RATARY_API_KEY.

Setup and configuration

The repository quick start requires Node.js 24, a SQL metadata store, and an environment file. PostgreSQL setup uses DATABASE_URL and AUTH_SECRET, applies the PostgreSQL schema, runs setup, and starts the development server. The D1 path sets SQL_PROVIDER=d1 and the relevant Cloudflare or D1 configuration before running migrations.

The documented npm command is:

Terminal
npx -y @ratary/mcp-server@1.1.3

That package requires RATARY_BASE_URL and RATARY_API_KEY to connect to the API. The repository also documents npm run setup for wiring Ratary MCP to clients such as Cursor and Claude Code.

Tools and capabilities

The listing describes 28 MCP tools. Supported platform capabilities include:

  • Saving and retrieving persistent memory
  • Hybrid search across stored knowledge
  • Metadata and relationship handling
  • Knowledge-graph traversal
  • Token-conscious context assembly
  • REST and MCP access to the same memory layer
  • Optional remote Streamable HTTP access

These capabilities suit coding assistants, project-specific agents, and applications that need one durable memory source across multiple models or client surfaces.

Limitations and notes

The material does not provide the names or schemas of the 28 MCP tools, so tool-level parameters cannot be evaluated here. A SQL metadata store is required for the self-hosted server, and the database choice changes the setup steps. The npm MCP process is a client adapter to a Ratary API; it does not replace the server or database. Remote Streamable HTTP is described as optional, while the repository's native implementation is stdio.

Ratary is self-hostable and released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ratary

Run `npx -y @ratary/mcp-server@1.1.3`. Set `RATARY_BASE_URL` and `RATARY_API_KEY` so it can connect to a Ratary API.

Yes. The repository documents `npm run setup` for wiring Ratary MCP to Cursor.

The self-hosted server requires a SQL metadata store. The quick start documents PostgreSQL and Cloudflare D1, while the description also lists MariaDB and Docker.

It stores durable, owner-scoped, versioned knowledge and exposes retrieval through MCP, including hybrid search, relationships, graph traversal, and bounded context assembly.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewRatary AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ontorata-ratary?style=directory)](https://allmcps.com/mcp/ontorata-ratary)
HTML Embed
<a href="https://allmcps.com/mcp/ontorata-ratary"><img src="https://allmcps.com/api/badge/ontorata-ratary?style=directory" alt="Ratary on AllMCPs" /></a>