ScrapLibra

Model Context Protocol (MCP) Live Gateway

Connect your private Obsidian Vault directly to Claude Desktop, Cursor, Antigravity, and autonomous AI agents via JSON-RPC 2.0.

Pro Second Brain Commercial Moat: Live JSON-RPC querying is available exclusively to active Pro Second Brain subscribers. Credit packs expand knowledge processing pools, while live agent querying requires an active Pro subscription. Authenticated with HMAC-SHA256 bearer tokens.

Download raw Markdown specification (/mcp-docs.md)

search_notes — Search Processed Notes in Vault

Executes high-precision hybrid search (BM25 keyword + semantic ranking) over the authenticated user's Obsidian Vault. Returns note titles, categories, dense summaries, wikilinks, and relevant excerpt snippets in token-optimized TOON tabular format.

ParamTypeRequiredDescription
querystringYesNatural language query, topic, concept, or exact keyword to search across processed notes.
categorystringNoOptional category filter corresponding to one of the 20 vault domains (e.g. 'ML', 'agents', 'architecture', 'finance', 'biotech').
limitintegerNoMaximum number of matching notes to retrieve in the tabular result set.
user_idstringNoCryptographically bound to the authenticated tenant token. Cross-tenant spoofing is strictly rejected by the isolation kernel.

get_note — Retrieve Full Markdown Note & Metadata

Retrieves complete structured Markdown content for a specific URL, including YAML frontmatter, source attribution, YouTube timestamps, extracted code blocks, and Obsidian bidirectional [[wikilinks]].

ParamTypeRequiredDescription
urlstringYesOriginal source URL or canonical note identifier ingested into the user's Second Brain.
user_idstringNoTenant identifier. Strictly verified against token context.

get_taxonomy_tree — Inspect Vault Taxonomy Tree & Tag Graph

Returns the real-time taxonomy directory tree of the vault, including the 20 pre-configured canonical domains, dynamic user-emergent folders, note distribution counts, and canonical tags dictionary in ultra-compact TOON notation.

ParamTypeRequiredDescription
user_idstringNoTenant identifier inferred automatically from the Bearer token.

get_notebooklm_compendium — Compile Google NotebookLM Master Knowledge Pack

Generates or retrieves the consolidated NOTEBOOKLM_KNOWLEDGE_BASE.md compendium. Synthesizes all processed vault knowledge into high-density thematic chapters optimized for 1-click import into Google NotebookLM to generate 20-minute Audio Overviews (AI podcasts) and executive briefings.

ParamTypeRequiredDescription
user_idstringNoTenant identifier. Compendium compiles only notes belonging to this user.

create_topic_folder — Dynamically Create Topic Domain Folder

Allows AI agents to autonomously instantiate a new topical category directory in the user's vault. Gemini 3.5 Flash classifier immediately begins routing incoming matching content into this new folder. Enforces strict safety guardrail (hard ceiling of 30 folders).

ParamTypeRequiredDescription
folder_namestringYesShort, clean folder slug name (e.g. 'robotics', 'bioinformatics', 'neurotechnology'). Alphanumeric and hyphens only.
descriptionstringYesSemantic definition and scope criteria. Used by Gemini 3.5 Flash to automatically classify future incoming URLs into this folder.
user_idstringNoTenant identifier. Ensures folder is created strictly in the caller's vault.

export_processed_batch — Batch Export Notes in Compact TOON Stream

Exports up to 1,000 processed notes in ultra-efficient TOON format for backup, external model fine-tuning, or local RAG pipelines. Fully satisfies GDPR Article 20 Right to Data Portability.

ParamTypeRequiredDescription
limitintegerNoMaximum number of notes to stream in the export batch.
tokenstringNoOptional access token fallback if Authorization header cannot be transmitted.

get_tenant_status — Get Vault Telemetry & Token Status

Returns real-time workspace metrics: total processed notes, active storage volume size, remaining processing credits, MCP token validity expiration, and daily request usage counter.

ParamTypeRequiredDescription
user_idstringNoTenant identifier inferred from authorization token.

initialize — MCP Protocol Handshake & Capabilities

Standard Model Context Protocol (MCP 2024-11-05) handshake. Exchanges protocol version, server identity ('ScrapLibra MCP Gateway v1.2.0'), and client capabilities before executing tools.

ParamTypeRequiredDescription
protocolVersionstringYesMCP protocol specification version negotiated by the client.
capabilitiesobjectYesClient capability declarations (e.g. roots, sampling).
clientInfoobjectNoInformation identifying the calling client (name, version).

tools/list — Dynamic Tool Catalog Discovery & Ping

Lists all 7 registered Second Brain vault tools with full JSON Schema specifications for parameters and types. Used dynamically by Claude Desktop, Cursor, and Antigravity agents upon connecting. Also documents the 'ping' liveness check method.