Recall past memories straight from Claude Code — Kagura Memory over MCP.
What is this?
This SDK connects your Python code to Kagura Memory Cloud, giving AI assistants the ability to remember, search, and learn from past interactions — and to ingest documents (PDFs, URLs) directly into a searchable memory graph. It provides seven clients (plus a document ingestor) for different use cases:
Client
Protocol
Use Case
KaguraClient
MCP (JSON-RPC)
Direct memory ops — remember, recall, explore, reference, forget
ResourceClient
REST API
External data ingestion — push data from Slack, CI/CD, CRM into Kagura
FilesClient
REST + presigned PUT
File uploads to object storage with sha256 integrity binding; optional per-file context binding for ACL
SecretClient
REST + age crypto
Zero-knowledge secrets — age recipient encryption, local decryption (the server only ever stores armored ciphertext)
WorkspaceClient
REST API
Workspace member / invitation management + owner-provisioned member keys (owner API key only); context member add and operation history (web session only)
Turn a PDF into a structured graph of memories — one overview memory plus per-section summaries, linked via declared_link edges. The original file is archived to your workspace's storage so you can always pull the bytes back.
kagura recall "report findings" -k 5 # search across sections
kagura files download-url <file_id> -c <context-id> # short-lived GET on the original
Ingestion extracts text — from PDFs, Office/HTML/EPUB documents, audio/video transcripts, and YouTube captions. Images embedded in a document are detected and counted (IngestResult.skipped_images) but not yet OCR'd: a vision provider (Gemini 2.5 Flash by default) is configured and validated, but the orchestrator does not currently invoke Provider.describe_image() — image-to-text memories are a planned follow-up. Pass --no-vision to skip provider configuration entirely, or --dry-run to see token / cost estimates without calling an LLM.