MongoDB Atlas is now available on the Vercel Marketplace

Hedi ZandiProduct Manager

2 min read

MongoDB Atlas is now available on the Vercel Marketplace. Developers can now provision a fully managed MongoDB database directly from your Vercel dashboard and connect it to your project without leaving the platform.

Adding a database to your project typically means managing another account, working through connection setup, and coordinating billing across services. The Vercel Marketplace brings these tools into your existing workflow, so you can focus on building rather than configuring.

Link to headingShip faster with a unified workflow

Provisioning Atlas through Vercel automatically configures your project's environment variables and integrates billing into your Vercel account. Database setup and management gets handled by MongoDB Atlas while you maintain your existing workflow on Vercel.

We’re excited to partner with MongoDB to bring Atlas into the Vercel Marketplace. By combining MongoDB’s flexible data platform with Vercel’s focus on developer experience, we’re giving our joint community a faster path to build and scale intelligent applications on the AI Cloud.
Tom Occhino, Chief Product Officer at Vercel

Other key benefits include:

  • One-click setup: No separate MongoDB Atlas signup needed. Your Atlas account gets created automatically and linked if you don't already have one

  • Integrated management: Atlas is managed from your Vercel dashboard with integrated billing and provisioning. Monitor your app and database from one place

  • Flexible, scalable data: MongoDB Atlas provides a document data model that works with structured or unstructured data, plus horizontal scaling with replica sets and sharding. Choose from free, pre-provisioned, or serverless deployment options

  • Built-in search and AI readiness: Atlas includes full-text search, vector search, and semantic search for AI applications, giving your Vercel apps advanced querying and AI/ML capabilities out-of-the-box

  • High performance and security: Low-latency data access with global replicas, plus built-in security features like encryption and access controls

Vercel powers many of the best experiences on the web, with an exceptional focus on developer experience from open source to their AI Cloud. We are thrilled to be launching onto the Vercel Marketplace, supercharging our joint community with the power of MongoDB's flexible document model with integrated search and vector search.
Andrew Davidson, SVP Products at MongoDB

This integration provides a fast, modern data layer to power web and AI applications on Vercel. Once you provision Atlas through the Marketplace, connecting to your database is straightforward:

mongodb.ts
import { MongoClient, MongoClientOptions } from 'mongodb';
import { attachDatabasePool } from '@vercel/functions';
const uri = process.env.MONGODB_URI;
const options: MongoClientOptions = {
appName: "devrel.vercel.integration",
};
let client: MongoClient;
let clientPromise: Promise<MongoClient> | null = null;
if (uri) {
if (process.env.NODE_ENV === 'development') {
// In development mode, use a global variable so that the value
// is preserved across module reloads caused by HMR (Hot Module Replacement).
const globalWithMongo = global as typeof globalThis & {
_mongoClientPromise?: Promise<MongoClient>;
_mongoClient?: MongoClient;
};
if (!globalWithMongo._mongoClientPromise) {
client = new MongoClient(uri, options);
globalWithMongo._mongoClient = client;
globalWithMongo._mongoClientPromise = client.connect();
// Attach the client to ensure proper cleanup on function suspension
attachDatabasePool(client);
}
clientPromise = globalWithMongo._mongoClientPromise;
} else {
// In production mode, it's best to not use a global variable.
client = new MongoClient(uri, options);
// Attach the client to ensure proper cleanup on function suspension
attachDatabasePool(client);
clientPromise = client.connect();
}
}
// Export a module-scoped MongoClient promise. By doing this in a
// separate module, the client can be shared across functions.
export default clientPromise;

The MONGODB_URI environment variable gets configured automatically when you provision Atlas through Vercel, so you can start building immediately.

Link to headingGet started with MongoDB Atlas on Vercel

MongoDB Atlas is available on the Vercel Marketplace for customers on all plans.