Connect MongoDB to ChatGPT

Add your MongoDB collections to ChatGPT with the Windsor.ai plugin.

Ask ChatGPT about a collection in plain language, for example orders by status or signups by week, and put the answer next to Google Ads or Meta Ads data in the same chat.

Fill in a form in Windsor.ai, install the plugin in ChatGPT, then ask your first question.

Free forever plan No credit card needed
logo connect
Windsor.ai is your proven MongoDB to ChatGPT connector
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2

Ask ChatGPT about your MongoDB collections

After you add a MongoDB collection in Windsor.ai, ChatGPT can read it through the Windsor.ai plugin and answer questions about its documents.

Ask without writing a query

Ask for orders by status, signups by day or events by type, and name the collection and the date field. ChatGPT turns the question into fields, a period and filters, and Windsor.ai returns the matching data from MongoDB. You don’t write a find() or an aggregation pipeline, and you don’t run mongoexport first.

Use nested fields

Name a nested field or an array from your MongoDB collection, such as the city inside a customer’s address or the items in an order. ChatGPT can query nested documents and arrays through Windsor.ai without you flattening the collection first.

Spot changes week over week

Ask ChatGPT to compare the last 7 days of a MongoDB events or orders collection with the 7 days before, grouped by type or status, and to sort by the biggest change. Then open the documents behind the largest change in MongoDB.

Put MongoDB next to your ad spend

Connect Google Ads or Meta Ads in the same Windsor.ai account and ask for daily spend next to daily orders from your MongoDB collection. After the first 30 days the free forever plan covers 1 source. MongoDB and an ad platform together need a paid plan from then on.

How ChatGPT reads MongoDB through Windsor.ai

Supported fields: 5 dimensions

Windsor.ai connects to MongoDB with a host, port, user, password, database and collection. Each connection reads one collection. To add another collection from the same database, fill in the form again with that collection’s name. Your plan counts one MongoDB database as one account, however many of its collections you add.

When you ask a question, ChatGPT requests the fields, date range and filters it needs, and Windsor.ai reads them from the collection with the rights of the database user you entered. ChatGPT doesn’t connect to your database and never sees the password.

To get one row per document, ask for individual documents and include _id or another field that is unique to each one. You can also ask for data_fetched_at. If you ask only for number fields, with nothing that tells the documents apart, Windsor.ai can add them up into one total.

Name the date field in your question, for example “using createdAt as the date”, because a collection often has several dates and Windsor.ai filters by date only on the field you name. If you don’t name one, Windsor.ai reads the documents that match your question now, not only the last 3 days. On the free forever plan, a question can reach back 30 days at most.

Join 40,000+ businesses that trust Windsor.ai to streamline MongoDB to ChatGPT integration
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma

How to connect MongoDB to ChatGPT with Windsor.ai

Watch the video, or follow our step-by-step guide to connecting MongoDB to ChatGPT, which covers the read-only database user, the Atlas IP access list and troubleshooting.

1

Select your data source

Open the MongoDB form in Windsor.ai (the Try It Free button opens it). Your database can be on Atlas or self-managed. Windsor.ai needs to reach the server, and the user you enter needs read access. If your database limits access by IP address (on Atlas, the IP access list), allow Windsor.ai’s IP address, 94.130.231.239.

Then fill in the host (with its protocol), port, database user, password, database and collection. With a mongodb+srv:// host, leave Port empty. SRV finds the servers and their ports through DNS (MongoDB connection string docs). With a mongodb:// host, enter its port, 27017 by default. If the form won’t save without a port, use the cluster’s standard mongodb:// host with port 27017. Select Add Account.

Windsor.ai form to connect a MongoDB collection with host, port, user, password, database and collection
Connect Windsor.ai pop-up in the ChatGPT Plugins page
ChatGPT answering whether MongoDB is connected through the Windsor.ai plugin

FAQs

How do I connect MongoDB to ChatGPT?

Add your MongoDB collection in Windsor.ai with the host, port, user, password, database and collection name, and allow Windsor.ai’s IP address (94.130.231.239) if your database limits access by IP. Then install the Windsor.ai plugin from ChatGPT’s Plugins directory, open a new chat and pick Windsor.ai from the + menu.

Tired of manual MongoDB data exports? Try Windsor.ai today to automate your reporting

Access your data from various sources in one place. Get started for free.
g logo
fb logo
big query data
youtube logo
power logo
looker logo