Square CloudSquare Cloud

MongoDB Hosting ready in seconds

A document database with a flexible schema, aggregations and TTL indexes, on an isolated instance about 1 ms from your applications. You create, size and restore it in the dashboard.

~1 ms

Latency to your apps

<10 s

For the database to be ready

v9

MongoDB version

TLS

Encrypted connection

MongoDB features, no changes needed

Model the data the way your application thinks and use the official driver or your usual ODM. What is a MongoDB server feature works here.

  • Flexible schema

    BSON documents with nested fields and arrays. Add fields without migrating a table.

  • Validation with $jsonSchema

    When the schema needs rules, validate types and required fields in the database itself.

  • Aggregation pipeline

    Filter, group and join collections with $lookup on the server, without pulling everything into the application.

  • Compound and text indexes

    Compound, multikey and text indexes for word search, with explain to check the plan.

  • TTL indexes

    Sessions, tokens and logs expire on their own, no cron.

  • Geospatial queries

    GeoJSON objects and 2dsphere indexes to search by radius, polygon or proximity.

  • Time series collections

    Compact storage for timestamped metrics and events, grouped automatically.

  • Atomic writes per document

    Every write to a document is atomic, including nested fields and arrays.

Connect with the driver you already use

The dashboard shows the instance's connection URL. Store it in your application's environment variables and use any MongoDB driver or ORM.

.env
01MONGODB_URI=mongodb://default:<password>@square-cloud-db-<id>.squareweb.app:<port>

Works with

  • Mongoose
  • Prisma
  • PyMongo
  • Motor
  • Spring Data
  • mgo
  • Coming from another provider? Export with mongodump and import with mongorestore pointed at the new URL.
  • Instance certificates (.pem, .crt and .key) available to download in the dashboard.

What comes with every database

Every instance runs in the same datacenter as your applications, with TLS, a daily snapshot and metrics in the dashboard. You create, size and restore it yourself.

  • Close to your applications

    Your applications connect through the instance address, with TLS, in the same New York datacenter. Average latency stays around 1 ms.

    • About 1 ms average latency from your applications
    • Enterprise NVMe disks
    • Access from outside Square Cloud with host, port and password
    • RAM adjustable in the dashboard
  • Daily snapshot included

    Every database gets an automatic snapshot every 24 hours, on any plan with databases. Before a risky change, take a manual one and restore it in the dashboard if something goes wrong.

    • Automatic daily: the latest kept up to 30 days, older ones 7
    • Manual snapshots kept up to 30 days
    • Restore and download in the dashboard
  • Isolated and encrypted

    Each database runs in its own container, with dedicated vCPU calculated from the allocated RAM and the plan. The connection uses TLS with the instance's own certificate, which you download and renew whenever you want.

    • TLS certificate per instance (.pem, .crt and .key)
    • Password and certificate renewable in the dashboard
    • CPU, memory and network metrics
    • Tier 3 partner datacenter with ISO 27001 and SOC 2 Type II

Combine with other services

Everything in the same dashboard, on the same infrastructure and the same invoice.

A plan for every stage of your project

From your first deploy to 1 TB of RAM, without switching platforms. Each phase adds memory and features to the one before, and upgrades apply instantly.

Databases are available from the Standard plan.

Compare all plans
4 GB → 8 GB

Standard

Recommended

Production with databases, your own domain and a team.

  • Up to 4 vCPU
  • Databases
  • Custom domain
  • Load balancer
  • AI Gateway
  • Workspaces

FromR$44.99/mo

12 GB → 24 GB

Pro

More memory, daily snapshots and visibility into what runs.

  • Up to 12 vCPU
  • Daily application snapshots
  • Performance analytics
  • Cubic Pro and routines
  • Priority support

FromR$124.99/mo

32 GB → 1 TB

Enterprise

Large operations, with a private Discord channel.

  • Up to 16 vCPU
  • Private Discord channel

FromR$299.90/mo

StandardProEnterprise
Compute
RAM4 GB → 8 GB12 GB → 24 GB32 GB → 1 TB
vCPU46 → 1216
Platform
Real-time metricsIncludedIncludedIncluded
Blob StorageIncludedIncludedIncluded
One-click rollbackIncludedIncludedIncluded
Square Shield anti-DDoSIncludedIncludedIncluded
Cubic AI agentIncludedIncludedIncluded
DatabasesIncludedIncludedIncluded
Custom domainIncludedIncludedIncluded
Load balancerapps per domain2510
AI GatewayIncludedIncludedIncluded
Daily application snapshotsNot includedIncludedIncluded
Performance analyticsNot includedIncludedIncluded
Cubic Pro and routinesNot includedIncludedIncluded
Team and support
Workspacesmembers per workspace3 → 710 → 2020 → 50
Priority supportNot includedIncludedIncluded
Private Discord channelNot includedNot includedIncluded

4.9 out of 5

482 reviews on Google and Trustpilot

Hosted in a partner datacenter with certifications

  • Tier 3
  • ISO 27001
  • SOC 2 Type II
  • Always-On DDoS Protection
Explore our infrastructure

Frequently asked questions about MongoDB Hosting

ACID transactions, drivers, snapshots and when to choose MongoDB Hosting.

Does MongoDB Hosting give ACID guarantees?

Yes, at the document level: every write to a single document is atomic and durable, nested fields included. Transactions that span several documents need a replica set, which is not part of Hosting. Model the things that must change together into the same document.

Which MongoDB version is provisioned?

MongoDB 9, with automatic patch updates. The major version is shown in the dashboard when provisioning, and the exact version in use is listed in the databases documentation.

Can I use Mongoose, Prisma or the official driver?

Yes. The instance exposes the standard mongodb:// connection string, so any driver (Mongoose, Prisma, Motor, PyMongo, official drivers for Java/C#/Go/Rust) connects without adaptation.

When is MongoDB Hosting better than PostgreSQL Hosting?

When you have schemaless data (logs, events, variable profiles, chat history) or when you need fast read/write of nested JSON documents.

Are aggregation pipelines and text search supported?

The aggregation pipeline works normally (native feature). Atlas Search is Atlas-proprietary, but you can use text indexes or run a separate Elasticsearch.

How do snapshots and exports work on MongoDB Hosting?

Every MongoDB Hosting instance gets automatic daily snapshots, with the most recent one kept for up to 30 days and older ones for 7. For a one-off export, use mongodump with your instance's connection string.

Ship your project today

Join the 500,000+ developers who have used Square Cloud to host their projects.

  • Deploy in seconds via GitHub, CLI or .zip
  • Isolated, always-on containers
  • Automatic TLS on every domain
  • Anti-DDoS on layers 3, 4 and 7
  • Snapshots with 1-click restore
  • Cubic, the AI agent, on every plan
  • Fixed price in reais, with NFS-e
  • No per-request charges