Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Logging

MCP server by mongodb-js Verified · npm:@mongodb-js

Lets AI assistants work with MongoDB databases and MongoDB Atlas through a Model Context Protocol server. It can run locally with npx or Docker, or be installed through the official mongodb-atlas plugin.

  • Score 94
  • 1.2k stars
  • 85k a week
  • Apache-2.0
  • Updated

Install MCP Logging

Built from the published package, never by AI.

claude mcp add mcp-logging -- npx -y @mongodb-js/mcp-logging

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Logging in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-logging block.

About

The source is the README for the MongoDB MCP Server, a Model Context Protocol server for interacting with MongoDB databases and MongoDB Atlas. It runs locally through npx as mongodb-mcp-server, and it can also run in Docker using the mongodb/mongodb-mcp-server image. Setup options pass a MongoDB connection string or Atlas Service Account credentials through environment variables.

The README also describes official mongodb and mongodb-atlas plugins for AI agents. The mongodb-atlas plugin connects to the Atlas-hosted MCP server over OAuth and is the recommended route for Atlas. The examples use the --readOnly flag by default, and the README says to remove it to enable write operations. The source does not describe any logging utilities, although the listing name and description refer to them.

Written from the project's README and checked against it.

What you need

  • Node.js v22.13.0 or later
  • A MongoDB connection string or Atlas Service Account credentials
  • Docker, if you run the server as a container

Try asking

  • List the collections in my MongoDB database
  • Find documents in a collection that match a filter
  • Show the Atlas clusters available in my project

Good to know

  • Examples use --readOnly by default, so write operations need that flag removed.
  • Node.js 20 support is deprecated in the README.
  • The remote Atlas MCP server cannot be authenticated with a static API key over HTTP.
  • The source does not describe logging utilities.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Let an AI assistant query a MongoDB database
  • Connect an AI agent to MongoDB Atlas
  • Give assistants read-only access to MongoDB

Alternatives to MCP Logging

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

MCP Logging: common questions

Does this project provide logging utilities?

The source does not say so. The README covers setup, configuration and use of the MongoDB MCP Server.

Can the server write to my database?

The examples include --readOnly by default. The README says to remove that flag to enable write operations.

Which option does the README recommend for Atlas?

The README recommends the mongodb-atlas plugin, which uses OAuth to connect to the Atlas-hosted MCP server.

How do I install MCP Logging?

In Claude Code run claude mcp add mcp-logging -- npx -y @mongodb-js/mcp-logging. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Logging the official server?

MCP Logging is published by npm:@mongodb-js from its verified domain in the official MCP Registry.

Is MCP Logging free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is MCP Logging safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Logging?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does MCP Logging work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Logging Install

Add to stack

Loading.