Skip to content

Overview

Magnus is an edge-first multi-model data platform. It exposes six data models through a single API, routing each query to the optimal Cloudflare service automatically.

https://magnusdb.dev/api

Magnus inspects your query and routes it to the right backend:

  • SQL with Postgres-specific syntax (window functions, ILIKE, RETURNING, ::cast, JSON operators) → Hyperdrive → Postgres
  • Simple SQL → D1
  • MongoDB filter syntax with complex stages ($lookup, $facet, $graphLookup) → MongoDB right-behind
  • MongoDB filter syntax with basic operators → D1 JSON1
  • KV commands (sorted sets, HyperLogLog, streams) → Upstash Redis
  • KV commands (get/set/delete) → Cloudflare KV

You never configure routing — Magnus detects it automatically.

Magnus exposes a remote MCP server at /mcp with 15 tools covering all six data models. Any MCP-compatible AI agent can use Magnus as its data layer.