mcpField
R
Rushdb   Memory Layer For Ai Agents And Apps

Rushdb Memory Layer For Ai Agents And Apps

Local
github.com/rush-dbDatabases325Updated today

About Rushdb Memory Layer For Ai Agents And Apps

RushDB MCP Server connects MCP-compatible clients to RushDB, a graph and vector database used as persistent memory for AI agents. It supports structured record storage, semantic search, and relationship traversal, with remote OAuth or local API-key setup.

Key features

  1. 01Create, retrieve, update, and delete records
  2. 02Search records semantically and by properties
  3. 03Create and traverse record relationships
  4. 04Bulk record operations and CSV export
  5. 05Relationship pattern analysis and approval
  6. 06Built-in query-builder prompt

Use cases

  1. 01Save decisions as searchable agent memory
  2. 02Retrieve records using natural-language queries
  3. 03Explore related records through graph relationships
  4. 04Export stored records to CSV

MCP support

The MCP server exposes RushDB record, search, relationship, and utility operations as tools, along with a query-builder prompt. Clients can connect through the remote OAuth endpoint or run the local server with an API key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"rush-db": {
"command": "npx",
"args": [
"-y",
"@rushdb/mcp-server"
],
"env": {
"RUSHDB_API_KEY": "<RUSHDB_API_KEY>"
}
}
}
}
Run commandnpx -y @rushdb/mcp-server
Environment variables to set
RUSHDB_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@rushdb/mcp-server

Tools

39

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
labelsarrayNoOptional: scope schema to specific labels only. Leave empty to get all labels.
forcebooleanNoPass true to bypass the 1-hour schema cache and force a fresh recalculation.

Details

From the project README

RushDB MCP Server

Give your agent a memory layer. Via MCP.

Connect RushDB to any MCP-compatible AI client and your agent gains persistent, structured memory — semantically searchable and graph-traversable, without managing embeddings or schemas.

Works with ChatGPT, Claude.ai, Claude Desktop, Cursor, Windsurf, Gemini CLI, and any MCP-compatible tool.


Two ways to connect

Remote OAuth (no installation)

For ChatGPT, Claude.ai, and other web-based AI clients — connect directly without installing anything locally:

MCP endpoint: https://mcp.rushdb.com/mcp

Your client redirects to RushDB for OAuth sign-in and receives a scoped token. No API key setup required.

ChatGPT:

  1. Go to Settings → Connectors → Add connector
  2. Enter https://mcp.rushdb.com/mcp
  3. Sign in with your RushDB account

Claude.ai:

  1. Go to Settings → Integrations → Add integration
  2. Enter https://mcp.rushdb.com/mcp
  3. Authorize with your RushDB account

Local (API key)

For Claude Desktop, Cursor, Windsurf, VS Code, and other stdio MCP clients:

1. Get an API key at app.rushdb.com

2. Add to your MCP client config:

{
  "mcpServers": {
    "rushdb": {
      "command": "npx",
      "args": ["@rushdb/mcp-server"],
      "env": {
        "RUSHDB_API_KEY": "your-api-key-here"
      }
    }
  }
}

Place this in:

  • Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json
  • Cursor — MCP settings in the Cursor config panel
  • Windsurf — ~/.codeium/windsurf/mcp_config.json

3. That's it. The agent now has 13 tools for storing, querying, and traversing structured memory.

RUSHDB_API_URL is optional and defaults to https://api.rushdb.com/api/v1. Override for self-hosted or staging environments.


What an agent can do

After connecting, ask Claude or your agent naturally:

"Remember that we decided to use Clerk for auth, replacing Auth0, on 2026-04-10."

The agent calls CreateRecord to store a structured memory. Later:

"What auth decisions have we made?"

The agent calls FindRecords with a semantic query — no manual searching required.

"Show me everything related to our auth system."

The agent calls FindRelationships to traverse the graph of connected records.


Available tools

Discovery
ToolWhat it does
FindLabelsList record labels and record counts
FindPropertiesList properties across labels
FindRelationshipsSearch relationships between records
Records
ToolWhat it does
CreateRecordStore a new record
GetRecordRetrieve a record by ID
UpdateRecordUpdate an existing record
DeleteRecordDelete a record by ID
FindRecordsSearch records by properties, relationships, or semantic query
BulkCreateRecordsCreate multiple records at once
BulkDeleteRecordsDelete records matching a query
Relationships
ToolWhat it does
AttachRelationCreate a relationship between two records
DetachRelationRemove a relationship
ListRelationshipPatternsList inferred relationship patterns and analysis status
AnalyzeRelationshipPatternsQueue schema analysis for relationship suggestions
ApproveRelationshipPatternApprove and apply a suggested pattern
IgnoreRelationshipPatternIgnore a suggested pattern
DeleteRelationshipPatternDelete a saved pattern and optionally its materialized relationships
Utilities
ToolWhat it does
ExportRecordsExport records to CSV
HelpAddToClientGet setup instructions for your MCP client
GetQueryBuilderPromptReturns the built-in query builder system prompt (fallback for clients without MCP Prompts support)

Built-in query builder prompt

RushDB exposes a system prompt via the MCP Prompts API that teaches the agent to query safely — discover labels and properties first, then construct queries.

How it works:

  1. Client calls ListPrompts → finds rushdb.queryBuilder
  2. Client calls GetPrompt → injects it as the session system message
  3. Agent now does discovery-first queries automatically

Most MCP clients handle this at session start. If your client doesn't support MCP Prompts, call GetQueryBuilderPrompt and inject the result as your system message.


Environment variables

These apply to local (API key) mode only. Remote OAuth connections do not use environment variables.

VariableRequiredDescription
RUSHDB_API_KEYyesYour RushDB API key
RUSHDB_API_URLnoAPI base URL (default: https://api.rushdb.com/api/v1)

Registry & autodiscovery

  • mcp.yaml at the repo root enables autodiscovery by MCP registries
  • packages/mcp-server/glama.json contains Glama metadata
  • Package: @rushdb/mcp-server, command: npx

Development

git clone https://github.com/rush-db/rushdb
cd rushdb/packages/mcp-server
npm install
npm run build
Troubleshooting: rushdb-mcp: command not found / MCP error -32000

This only happens when the MCP client launches the server with a working directory inside this monorepo (e.g. an .mcp.json at the repo root used by Claude Code / Cursor). @rushdb/mcp-server is a pnpm workspace package here, so any unversioned npx @rushdb/mcp-server (even with -p) resolves to the local workspace copy whose rushdb-mcp bin isn't linked in node_modules/.bin. The process exits before the MCP handshake, which the client reports as -32000.

The published package is unaffected — the config above works as-is outside the repo. To run from inside the monorepo, pin a version so npx fetches from the registry instead of resolving the workspace package:

{
  "mcpServers": {
    "rushdb": {
      "command": "npx",
      "args": ["-y", "-p", "@rushdb/mcp-server@latest", "rushdb-mcp"],
      "env": { "RUSHDB_API_KEY": "your-api-key-here" }
    }
  }
}

Alternatively, run the local build directly (uses your in-repo code, must be built first with npm run build):

{
  "mcpServers": {
    "rushdb": {
      "command": "node",
      "args": ["packages/mcp-server/build/index.js"],
      "env": { "RUSHDB_API_KEY": "your-api-key-here" }
    }
  }
}

License

Apache 2.0

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.