MongoDB · MCP server
How can an agent on our own infrastructure query our MongoDB?
The MongoDB MCP server lets an agent list databases and collections, read schemas and indexes and run finds and aggregations on your own MongoDB. It talks to the database at the connection string you give it, so where that database is yours, nothing goes to an outside service.
What it gives an agent.
Tool by tool.
- 01List databases and collections
- 02Read a collection's schema, indexes and size
- 03Run a find, a count or an aggregation
- 04Explain a query
- list-databases
- list-collections
- collection-schema
- collection-indexes
- find
- count
- aggregate
- explain
The server also lists tools that change data, such as inserting, updating and deleting documents and dropping a collection or a database. An administrator decides which tools an agent may call. The use cases on this site use the tools that read.
Tool names as the public catalog listed them on 15 November 2026
What leaves your environment
Nothing, where the system is yours.The server talks to the MongoDB at the connection string you give it. Where that database runs on your infrastructure, the queries and the results stay there.
What it needs
A connection string. You give it when you connect the server.
How Katonic governs the calls
Tool calls go through the platform's tool gateway. It manages the connection to each MCP server, passes calls from the agent runtime, and applies the allowlists, rate limits and data-classification rules an administrator sets. Tool usage is recorded. A server can be deployed in your cluster or reached as a remote hosted server.
Use case pages that name MongoDB.
Can the agent change or delete our data?
Only if an administrator lets it call the tools that do. Give the agent the tools that read, and connect with a database user that has read access only.
Who publishes this server?
MongoDB. It is not Katonic's software. Katonic runs it and governs the calls an agent makes to it.
Does it need MongoDB Atlas?
No. It connects to the database at the connection string you give it.