MdGraph is an open-source storage engine implementing Google's Open Knowledge Format (OKF). Ingest any format, compile with any LLM, and query traversable Markdown knowledge trees natively over MCP.
Swap parsers, inference providers, and database indexes via clean configuration interfaces.
Parse PDFs, HTML, PPTs, or audio transcripts into structured Markdown using Docling or Unstructured without losing structural layout or table integrity.
Compile knowledge using any LLM—from local Llama models via Ollama to Claude, Gemini, or ChatGPT—powered by LiteLLM and strict Pydantic validation.
Markdown with YAML frontmatter is the absolute source of truth. Every concept modification is auditable, versioned, and committed via Libgit2.
Ditch embeddings and cosine similarity. Uses SQLite FTS5 or PostgreSQL recursive CTEs to index cross-links and enable instant multi-hop topological queries.
Expose your entire knowledge graph over Model Context Protocol (FastMCP) so agents built in Google ADK, LangGraph, or CrewAI can consume context natively.
Built natively around Google's Open Knowledge Format v0.1/v0.2 specification, turning ephemeral conversation logs into compounding knowledge bases.
Separating the knowledge compiler from the queryable graph cache.
Docling / Parsers
LiteLLM + OKF Schema
Git + Markdown Repo
SQLite or PostgreSQL automatically indexes YAML frontmatter as JSON, Markdown bodies into FTS5 for text search, and cross-links into graph edge tables.
FastMCP exposes `get_concept()`, `search_knowledge()`, and `traverse_graph()` as standard tools for autonomous agent consumption.
External agents built with Google ADK, LangGraph, or custom clients navigate the graph deterministically without chunk ambiguity.
Unlike black-box vector databases where data is trapped inside opaque float arrays, mdgraph keeps your core knowledge fully portable. Every document is regular Markdown readable by any text editor, versioned in Git, and instantly queryable.
--- type: Policy title: Remote Work Hardware Allowance description: Home office equipment stipend rules tags: [hr, hardware, remote] status: stable --- # Remote Work Hardware Allowance Employees receive a yearly stipend managed by the [IT Department](./it_department.md). ## Approved Purchases All equipment must be sourced via the [Vendor Portal](./vendor_portal.md).
Install the core package and start compiling knowledge graphs for your agent fleet.
# 1. Install mdgraph engine
pip install mdgraph
# 2. Start the local MCP server
mdgraph serve --config config.yaml
# 3. Connect from Google ADK, LangGraph, or Cursor
mcp://localhost:8000/sse