Agent Memory API v1.0

Persistent memory for AI agents. Store, retrieve, and search memories across sessions with a simple REST API and MCP support.

Namespace Isolation

Organize memories by agent, project, or any custom namespace. Full CRUD with zero cross-contamination.

Substring Search

Search across content and metadata fields. Find what your agent stored — instantly.

MCP Protocol

Native Model Context Protocol support. Connect any MCP-compatible AI client directly.

TTL Support

Set expiration on memories. Ephemeral context that auto-cleans — no stale data.

Bulk Operations

Store up to 100 memories in a single request. Efficient batch ingestion for high-throughput agents.

Edge-Powered

Runs on Cloudflare Workers. Sub-millisecond latency from 300+ locations worldwide.

API Endpoints

POST /api/v1/memories — Store a memory
GET /api/v1/memories?namespace=X&q=search — List / search
GET /api/v1/memories/:id — Get by ID
DELETE /api/v1/memories/:id — Delete by ID
POST /api/v1/memories/bulk — Bulk store
DELETE /api/v1/namespaces/:ns — Clear namespace
POST /mcp — MCP JSON-RPC

Quick Start

curl -X POST https://api.lazy-mac.com/agent-memory/api/v1/memories \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "namespace": "my-agent",
    "content": "User prefers dark mode and concise answers",
    "metadata": { "type": "preference", "priority": "high" }
  }'

Pricing

Free

$0 /mo
  • 100 API calls/day
  • 1 namespace
  • REST + MCP access
  • Community support
Get Free Key

Pro

$29 /mo
  • Unlimited API calls
  • Unlimited namespaces
  • REST + MCP access
  • Priority support
  • Bulk operations
  • Custom TTL policies
Get Pro Key