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.
Base URL
Section titled “Base URL”https://magnusdb.dev/apiHow routing works
Section titled “How routing works”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.
MCP Server
Section titled “MCP Server”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.
Next steps
Section titled “Next steps”- Quickstart — first query in 2 minutes
- Authentication — API key setup