MCP  ·  Model Context Protocol  ·  AI Memory

MantleDB for AI

Give your AI assistant persistent memory — no accounts, no setup. Connect any MCP-compatible client to MantleDB in one line of config.

SSE (Claude Desktop): https://mcp.mantledb.sh/sse
Streamable HTTP (Claude.ai, newer clients): https://mcp.mantledb.sh/
No auth required to connect.
Setup

Add MantleDB to your MCP client config. No install, no API keys — just the URL.

Claude Desktop
claude_desktop_config.json
Cursor
Settings → MCP
Windsurf
MCP Settings
Any MCP client
SSE or Streamable HTTP
Claude Desktop — claude_desktop_config.json
{
  "mcpServers": {
    "mantledb": {
      "url": "https://mcp.mantledb.sh/sse"
    }
  }
}
Tools

The AI can call these tools directly. All tools take namespace as a required parameter. key is only needed for claimed (write-protected) namespaces.

write Store a JSON object at a path
namespace path data key?
read Retrieve an entry
namespace path key?
patch Merge fields into an existing entry (RFC 7396)
namespace path patch key?
list List all paths in a namespace
namespace key?
delete Remove an entry
namespace path key?
increment Atomically increment a numeric counter
namespace path amount? key?
claim Claim a namespace and get a secret write key
namespace
Usage

Each tool call includes the namespace and optional key directly — the MCP server is stateless. Different conversations, projects, or users can all use their own namespaces independently.

Example — write and read back
// AI calls write:
namespace: "alice-project"
path:      "preferences"
data:      { "tone": "concise", "lang": "en" }
key:       "sk_abc123"

// AI calls read:
namespace: "alice-project"
path:      "preferences"
key:       "sk_abc123"
// → { "tone": "concise", "lang": "en" }
Persistent Memory

The most common use case: give your AI assistant memory that persists across conversations. Add this to your system prompt:

System prompt
You have access to MantleDB via MCP tools.
Use namespace "alice" with key "sk_abc123" to persist
information across our conversations.

- Before answering, check if relevant context is stored.
- After learning something useful about me, save it.
- Use clear path names like "preferences", "projects/x", "notes/2024".

The AI will then autonomously decide what to save and when — preferences, project context, facts about you — and recall them in future sessions without being asked.

Namespaces & Keys

Namespaces require no sign-up. Pick any name and start writing immediately.

Unclaimed — anyone with the namespace name can read and write. Good for quick, non-sensitive data.

Claimed — locked with a secret key. Use the claim tool or GET /v2/claim/:namespace via the HTTP API. The key is shown once — save it in your system prompt.

Unclaimed namespaces inactive for 30 days are purged automatically. Claimed namespaces are retained for 90 days of inactivity. See Pro for extended retention.