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.
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
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.
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.
Install the Windsor.ai plugin
In ChatGPT, select Plugins in the sidebar and search for Windsor.ai, or open the Windsor.ai plugin page.
Select Install plugin, then Connect Windsor.ai. Sign in to Windsor.ai and select Back to ChatGPT.
Query your MongoDB data in ChatGPT
Open a new chat, select + and choose Windsor.ai, or type @Windsor.ai. Check the connection first: “Is MongoDB connected in my Windsor.ai account? List the connected collections and the fields in each.”
We asked this on 20 November 2026, before our Windsor.ai account had a MongoDB collection. ChatGPT said MongoDB wasn’t connected and listed no collections or fields, so it made nothing up. It also didn’t say what the connection form asks for or which IP address to allow, so take those from Step 1.
FAQs
Is there an official MongoDB plugin for ChatGPT?
Yes. MongoDB’s own plugin, MongoDB Atlas, is in ChatGPT’s Plugins directory (checked 20 November 2026). It works with databases on MongoDB Atlas only, and an Atlas organization owner sets its access to Read, Read and write, or Disabled (MongoDB docs).
- The MongoDB Atlas plugin suits developers and data teams on Atlas who want ChatGPT to query any collection their Atlas user can reach, or to change data and manage clusters.
- The Windsor.ai plugin suits teams who want a few collections, self-managed or on Atlas, in the same chat as Google Ads, Meta Ads, GA4 or Windsor.ai’s other 375+ sources. Windsor.ai reads MongoDB without changing it, because the connector has no write actions.
Can ChatGPT change or delete my MongoDB documents through Windsor.ai?
No. The MongoDB connector in Windsor.ai has no write actions (write actions list), so ChatGPT can’t insert, update or delete documents through it. A database user with only the built-in read role adds a second guard, since MongoDB rejects writes from that user.
Which MongoDB collections and fields can ChatGPT read?
ChatGPT reads only the collections you add in Windsor.ai, one collection per connection, and the fields in their documents, nested documents and arrays included. Windsor.ai doesn’t join collections inside MongoDB. Add each collection you need, and ChatGPT reads them one at a time and can show the results side by side. Documents in one collection don’t need the same fields, and a field that a document lacks has no value for that document.
How do I query a large MongoDB collection?
Keep each request small. Name a date field and a short period, or filter on a field such as status or type. Windsor.ai has no documented limit on the number of documents, but a request that runs longer than about 3 minutes can time out.
Can I combine MongoDB with Google Ads or Meta Ads data?
Yes. Connect Google Ads or Meta Ads in the same Windsor.ai account and ask ChatGPT for both over the same period, for example spend by day next to orders by day from your collection. Testing both is free for your first 30 days. After that, keeping them connected needs Basic ($19/month, 3 sources) or Standard ($99/month, 7 sources), both billed annually.
What prompts can I use to analyze MongoDB data in ChatGPT?
Use your own collection and field names in prompts such as these:
From my orders collection, list the 10 customers with the most orders in the last 30 days, using createdAt as the date. Do the counts with code.From my events collection, count events per day for the last 14 days, using timestamp as the date, and flag days with fewer than half the daily average. Do the counts with code.From my orders collection, count orders by shipping.country for this month, using createdAt as the date. Do the counts with code.From my users collection, count signups by plan for the last 30 days, using createdAt as the date. Do the counts with code.From my orders collection, list each order with status refunded in the last 7 days, using createdAt as the date. Show the _id, customer and total of every order.
Each prompt reads one collection within the last 30 days, the most the free forever plan reaches back. The third uses the nested field shipping.country. The last asks for _id, so you get one row per order.
How fresh is the MongoDB data in ChatGPT?
Windsor.ai reads your MongoDB collection when ChatGPT asks and keeps the result for 6 hours. A question repeated within that time can return the stored result, even if new documents arrived. To get newer documents before then, select Clear Cache in Data Preview in the Windsor.ai app. You can do this once every 2 hours. The next ChatGPT question then reads the collection again.
How much does it cost to connect MongoDB to ChatGPT with Windsor.ai?
Windsor.ai’s free forever plan needs no credit card. It allows 10 sources and 15 accounts in the first 30 days, then 1 user, 1 data source, 1 account and 30 days of history. One MongoDB database fills that account, however many of its collections you add. Paid plans start with Basic at $19/month for 3 sources and Standard at $99/month for 7, billed annually (pricing page).
Do you have helpful links to get started with integrating MongoDB and ChatGPT using Windsor.ai?
Yes. Start with the MongoDB how-to for the full setup.
- How to connect MongoDB to ChatGPT: read-only user, IP access, prompts and troubleshooting
- Connect MongoDB to Claude: the same collections in Claude
- Connect MySQL to ChatGPT, PostgreSQL to ChatGPT and BigQuery to ChatGPT: other databases in ChatGPT
- MongoDB Field Reference: the 5 extra fields Windsor.ai offers for any MongoDB collection, such as today’s date and the fetch time
- ChatGPT Integration Documentation: the Windsor.ai plugin for any source
Tired of manual MongoDB data exports? Try Windsor.ai today to automate your reporting

