6 data models · One SDK · Prisma-quality DX

One data platform.
Every model.

You're running PostgreSQL + MongoDB + Redis + Pinecone + ClickHouse + TimescaleDB — six vendors, six SDKs, six dashboards, and $362–$4,900/month in combined bills. Magnus replaces all of them with one TypeScript SDK on Cloudflare's global edge.

Free tier · No credit card · Prisma-style TypeScript SDK

⚡ Cloudflare edge · 300+ locations
🔒 SOC 2 Type II
🐘 SQL + MongoDB + Redis + Vector + Time-series + OLAP
🔌 MCP server included
📦 One SDK · One bill

Every database you need.
One import.

Magnus covers all six data models your application needs. Each model has first-class TypeScript types, auto-complete, and Prisma-quality DX — with smart routing to the right backend at the edge.

🗃️
Relational
Replaces: PostgreSQL · Supabase · Neon · D1
// Any SQL, full Postgres dialect
const users = await db.sql`
  SELECT * FROM users
  WHERE plan = 'pro'
  AND created_at > ${cutoff}
`
📄
Document
Replaces: MongoDB Atlas · Firestore
// MongoDB-compatible API
const orders = await db
  .docs('orders')
  .find({ status: 'pending' })
// Simple ops → D1 edge (<5ms)
// Complex aggs → MongoDB
KV / Cache
Replaces: DynamoDB · Redis · Upstash
// Redis-compatible + strong consistency
await db.kv.set(
  'session:' + token,
  sessionData,
  { ttl: 3600 }
)
🔍
Vector
Replaces: Pinecone · Weaviate · pgvector
// Semantic search, embeddings
const results = await db.vector.search({
  query: userQuestion,
  collection: 'product-docs',
  topK: 10, rerank: true
})
📈
Time-Series
Replaces: InfluxDB · TimescaleDB
// High-cardinality telemetry
await db.timeseries.write({
  metric: 'api.latency',
  value: 8.3,
  tags: { region: 'eu-west' }
})
📊
Analytics
Replaces: ClickHouse · BigQuery
// OLAP queries, aggregations
const report = await db.analytics.query(`
  SELECT region, sum(revenue) AS total
  FROM events
  WHERE date > '2026-01-01'
  GROUP BY region
`)

Six vendors. One bill.
80% cheaper.

A typical production SaaS stack in 2026 costs $362–$4,900/month across six vendors. Magnus covers all six models starting at $99/month — with one invoice, one dashboard, and one SDK.

❌ Your current stack (typical)
PostgreSQL (Supabase/Neon)$25–500/mo
MongoDB Atlas$57–500/mo
DynamoDB / Upstash$10–500/mo
Pinecone / Weaviate$70–400/mo
TimescaleDB / InfluxDB$100–1,000/mo
ClickHouse / BigQuery$100–2,000/mo
Monthly total $362–$4,900
✓ Magnus Pro
Relational (SQL / Postgres-dialect)✓ included
Document (MongoDB-compatible)✓ included
KV / Cache (Redis-compatible)✓ included
Vector (Vectorize-backed)✓ included
Time-Series (Analytics Engine)✓ included
Analytics (OLAP)✓ included
Monthly total $99
Save $263–$4,801/month · One SDK · One dashboard

Prisma-quality DX.
Every model.

One import. Full TypeScript types. Auto-complete for SQL, document filters, vector queries, and time-series writes. Magnus infers which backend to use — you just write the query.

  • Smart routing — simple ops go to D1 edge (<5ms), complex ops route to the right backend automatically
  • Full TypeScript generics — db.docs('orders').find<Order>() returns typed results
  • MCP server included — drop @magnus/mcp into any agent framework for direct database access
  • ACID transactions across models — wrap SQL + KV + document writes in a single atomic transaction
app.ts
import { Magnus } from '@magnus/client'

const db = new Magnus({
  projectId: 'my-app',
  apiKey: process.env.MAGNUS_KEY
})

// SQL — any Postgres dialect
const users = await db.sql`
  SELECT * FROM users WHERE plan = 'pro'
`

// Documents — MongoDB-compatible
const orders = await db
  .docs('orders').find<Order>({ status: 'pending' })

// KV / Cache
await db.kv.set('session:' + id, data, { ttl: 3600 })

// Vector search
const similar = await db.vector.search({
  query: userQuery, topK: 10
})

// All six models. One import. One bill.

One bill.
All six models.

Every tier includes all six data models. No per-model add-ons. No surprise bills at the end of the month.

Hobby
$0/mo

All six models. Perfect for side projects.

  • All 6 data models
  • 3 collections
  • 10MB storage
  • 10K reads · 1K writes/mo
  • Basic vector search
  • MCP server
Start free
Builder
$29/mo

For teams building production applications.

  • All 6 models
  • 20 collections
  • 1GB storage
  • 100K reads · 10K writes/mo
  • Semantic search + embeddings
  • Email support
Start Builder
Scale
Custom

Dedicated infrastructure for data-intensive products.

  • Unlimited everything
  • 500GB+ storage
  • Dedicated Vectorize index
  • Enterprise SLA (99.99%)
  • Custom domain
  • Dedicated SRE
Talk to sales

Compare: PostgreSQL + MongoDB + Redis + Pinecone + ClickHouse + TimescaleDB = $362–$4,900/mo

One SDK.
Less everything else.

"We were paying $1,200/month across Supabase, MongoDB, and Pinecone. Magnus Pro is $99. Same capabilities, one connection string, TypeScript types for everything. This should not have been this easy."

DK
David Kim
CTO · B2B SaaS (Series A)

"The SQL-to-MongoDB auto-routing is wild. I write a simple find() and it hits D1 at the edge in 4ms. I write an $aggregate with $lookup and it silently routes to MongoDB. I don't have to think about which database to use for which query."

AP
Ana Pereira
Sr. Engineer · Developer tools company

"The MCP server is the unlock for us. Our agents can query SQL, search vectors, and cache results — all through @magnus/mcp in the agent config. Zero custom code between the agent and the database layer."

TR
Tom Reeves
Founder · AI agent platform

Common questions.

Does Magnus actually run all six databases?

Magnus runs on Cloudflare's infrastructure: D1 (SQLite/Postgres-dialect) for relational and simple document ops, Vectorize for vectors, KV + Durable Objects for cache/KV, Analytics Engine for OLAP. Complex MongoDB aggregations can route to an optional MongoDB backend. One API, best-fit storage under the hood.

Is it actually 100% MongoDB-compatible?

Simple document operations (find, insert, update, delete, basic queries) are fully compatible — served from D1 at the edge. Complex aggregations ($lookup, $facet, $text search) are supported via optional MongoDB right-behind routing. The SDK handles the routing transparently.

Can I migrate my existing PostgreSQL data?

Yes. Magnus accepts standard Postgres DDL migrations and pg_dump output. Your existing ORM (Prisma, Drizzle, TypeORM) works without modification — just update your connection string. Data migration guides available for Supabase, Neon, and RDS.

How does the MCP server work with agents?

Add @magnus/mcp to your agent's MCP config. Your agent gets tools for SQL queries, document operations, vector search, KV reads/writes, and time-series — no custom wrappers needed. Works with Claude, Cursor, LangGraph, and any MCP-compatible framework.

What's the latency story?

Reads from D1 at the nearest Cloudflare edge node: <5ms p95 for cached reads. Vector searches from Vectorize: <20ms for 1M vectors. KV reads from Cloudflare KV: <10ms globally. Write paths go through your primary region and are typically 20–50ms.

What if I only need one or two models?

Start with what you need — all models are available on every tier, you just pay for what you use in terms of storage and operation counts. The SDK never forces you to use all six. And if you add a new model later, there's no migration — it's already in your existing Magnus project.

Six databases.
One line of code.

Free tier. All six models. Prisma-quality TypeScript SDK.

Start free → Read the docs →

Hobby free · Builder $29/mo · Pro $99/mo · Scale custom