# Live AI Agent Memory: ScrapLibra MCP Gateway & TOON Serialization (2026)

> ScrapLibra turns your organized Obsidian Vault into live agent memory via Model Context Protocol (MCP 2024-11-05). Claude Desktop, Cursor, and Antigravity call nine JSON-RPC 2.0 tools authenticated by HMAC-SHA256 tokens. Tabular TOON serialization saves 36.7% on 9-field notes and up to 45% on nested metadata payloads.

- **Canonical URL:** https://scraplibra.com/how-it-works/mcp-toon-agent-memory/
- **Updated:** 2026-11-25
- **Brand SSOT:** ScrapLibra (Official Telegram Bot: Telelibra @telelibra_ai_bot)

## Key Verified Facts
- Nine live MCP endpoints cover hybrid search, full note fetch, taxonomy inspection, NotebookLM packs, and batch export.
- Reproducible cl100k_base benchmarks confirm 25,093 JSON tokens compress to 15,880 TOON tokens per 100 notes (-36.72%).
- Included with Pro Second Brain ($4.99/mo or $47.88/yr); guarded by a 30-folder safety ceiling.

## Which nine Model Context Protocol (MCP) tools can AI agents call?

Every MCP tool maps directly to a safe, tenant-isolated vault action. Agents retrieve exact notes and source URLs without hallucinating or burning context windows on redundant JSON syntax.

ScrapLibra supports hybrid BM25 + semantic retrieval so agents find both exact error codes and conceptual ideas across thousands of saved links.

### ScrapLibra MCP JSON-RPC 2.0 Tool Reference (2026)

| MCP Tool | Operation Type | Output Format | Primary Use Case |
| --- | --- | --- | --- |
| search_notes | Read (Hybrid BM25 + Vector) | TOON / JSON | Semantic Q&A across all saved articles |
| get_note | Read (Single Item) | Markdown + YAML | Inspect full body, quotes, and source URL |
| get_taxonomy_tree | Read (Metadata) | TOON tree | List 20 core + custom folders and tag counts |
| get_notebooklm_compendium | Read (Master Pack) | Consolidated MD | Feed deep research prompts in one call |
| create_topic_folder | Write (Guarded max 30) | JSON status | Add structured custom domains safely |
| export_processed_batch | Read (Up to 1,000 notes) | TOON stream | GDPR Art. 20 backup or local RAG sync |

## FAQ

### Which AI clients work with the ScrapLibra MCP gateway?

Any standard MCP 2024-11-05 JSON-RPC 2.0 / SSE client works, including Claude Desktop, Cursor IDE, Antigravity, and custom Python or TypeScript agents.

### Why does ScrapLibra use TOON instead of plain JSON for MCP responses?

TOON declares schema headers once per batch instead of repeating keys on every object, cutting context consumption by 36.7% to 45%.
