Skip to main content
Glama

🧠 MemoryAPI

Memoria persistente para agentes de IA y LLMs — REST API + nativo de MCP

License: MIT MCP Compatible

MemoryAPI le da a tu agente de IA una memoria persistente y buscable entre sesiones. Almacena recuerdos en lenguaje natural, recupéralos semánticamente; no se necesitan palabras clave exactas.

🌐 memoryapi.org | 📡 API: api.memoryapi.org


Características

  • 🧠 Búsqueda semántica — encuentra recuerdos por significado, no por palabras clave

  • 🔌 Nativo de MCP — conéctalo a Claude, Cursor, Windsurf al instante

  • REST API — endpoints HTTP simples, cualquier lenguaje

  • 🔑 Autenticación con API Key — seguro, con espacios de nombres por agente

  • 📊 Seguimiento de uso — conteo de memorias y límites del plan

  • 🌍 Siempre activo — alojado en api.memoryapi.org


Related MCP server: aimemory

Inicio rápido

1. Obtén una API Key

curl -X POST https://api.memoryapi.org/keys \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my-agent", "email": "you@example.com"}'

Devuelve:

{
  "api_key": "mem_xxxxxxxx.yyyyyyyy",
  "message": "Save this key securely — it will not be shown again."
}

2. Almacena un recuerdo

curl -X POST https://api.memoryapi.org/memory \
  -H "Content-Type: application/json" \
  -H "x-api-key: mem_xxxxxxxx.yyyyyyyy" \
  -d '{"content": "User prefers dark mode and React Native"}'

3. Busca recuerdos

curl "https://api.memoryapi.org/memory?query=what+does+the+user+prefer" \
  -H "x-api-key: mem_xxxxxxxx.yyyyyyyy"

Integración con MCP

Añádelo a la configuración de tu cliente MCP (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "memoryapi": {
      "url": "https://api.memoryapi.org/mcp",
      "headers": {
        "x-api-key": "mem_xxxxxxxx.yyyyyyyy"
      }
    }
  }
}

Herramientas MCP disponibles

Herramienta

Descripción

store_memory

Almacena un recuerdo en lenguaje natural

search_memory

Busca recuerdos semánticamente

list_memories

Lista todos los recuerdos almacenados

delete_memory

Elimina un recuerdo por ID


Referencia de REST API

POST /memory

Almacena un recuerdo.

Cabeceras: x-api-key: your-key

Cuerpo:

{
  "content": "string (required, max 10,000 chars)",
  "metadata": { "type": "preference" }
}

GET /memory?query=...

Búsqueda semántica entre recuerdos.

Cabeceras: x-api-key: your-key

Parámetros de consulta:

  • query (obligatorio) — búsqueda en lenguaje natural

  • limit (opcional, predeterminado 10) — resultados máximos

  • threshold (opcional, predeterminado 0.4) — umbral de similitud


GET /memory/list

Lista todos los recuerdos del agente.

Parámetros de consulta:

  • limit (predeterminado 50)

  • offset (predeterminado 0)


DELETE /memory/:id

Elimina un recuerdo específico.


POST /keys

Genera una nueva API key.

Cuerpo:

{
  "agent_id": "my-agent",
  "email": "you@example.com",
  "plan": "free"
}

Precios

Plan

Precio

Recuerdos

Agentes

Gratuito

$0/mes

100

1

Starter

$19/mes

10,000

5

Pro

$49/mes

Ilimitado

Ilimitado


Stack tecnológico

  • Runtime: Node.js + Express

  • Base de datos: Supabase (PostgreSQL + pgvector)

  • Embeddings: OpenAI text-embedding-3-small

  • Autenticación: API keys con hash bcrypt

  • Protocolo: MCP 2024-11-05


Licencia

MIT © 2026 Ocean Digital Group

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Persistent memory API for AI agents — store, recall, and inject semantically-searchable context across sessions. EU-hosted, GDPR-compliant. Supports Claude, Cursor, Cline, and any MCP-compatible client.
    4
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Gives AI agents persistent memory with semantic search, automatic extraction, and memory decay, accessible via MCP protocol.
    7 npm
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent memory with semantic search for MCP-based AI agents, enabling them to store and recall information across sessions using vector embeddings.
    4
    1
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Free, persistent memory layer for AI agents, enabling storage and semantic search of memories via MCP or REST.
    -