Skip to main content
Glama
mongo-mcp-simple

mongo-mcp-simple

by ohankay

mongo-mcp-simple (mongo-mcp)

VS Code (GitHub Copilot Chat ve custom agent'lar) için MongoDB (4.4 – 8.x) MCP sunucusu. sql-mcp-simple ile aynı yaklaşım: agent'larınız MongoDB işlemlerini mongosh / PowerShell çalıştırmadan, doğrudan bu sunucunun tool'larıyla yapar.

Bağlantı

Kullanıcı adı + şifre (SCRAM), Windows oturumu (Kerberos), LDAP, x509 sertifika, kimlik doğrulamasız ya da tam mongodb:// / mongodb+srv:// URI; standalone, replica set, sharded, Atlas

Okuma

find, aggregate, count_documents, distinct; Extended JSON ({"$oid": ...}, {"$date": ...}), Türkçe collation

Yazma

insert_documents, update_documents (operatör veya pipeline, array_filters, upsert), replace_document, delete_documents

Transaction

run_transaction: birden çok yazma işlemini ya hep ya hiç mantığıyla tek seferde çalıştırır (replica set / sharded)

Keşif

list_databases, list_collections, infer_schema (örnekten alan/tip çıkarımı), list_indexes, collection_stats

Yönetim

index oluştur/sil, koleksiyon/view oluştur (validator, capped, timeseries), yeniden adlandır, sil; run_command ile her admin komutu (kullanıcı/rol, collMod, explain, ...); server_status, current_ops, kill_op

Güvenlik

Salt okunur profiller, boş filtreyle toplu silme/güncellemede açık onay (confirm_all), drop işlemlerinde ad teyidi (confirm_name), şifreler hiçbir çıktıda görünmez

Kurulum (Windows)

Hazır paket (önerilen, internet gerekmez)

  1. Python'unuza uygun paketi indirip bir klasöre açın:

    Python'unuzun kaç bit olduğunu py -c "import struct; print(struct.calcsize('P')*8)" gösterir.

  2. Klasörü VS Code'da açın, Copilot Chat → Agent moduna şunu yazın: KURULUM_REHBERI.md dosyasını oku ve "Ajan için kurulum adımları" bölümünü sırayla uygula.

Paketler her değişiklikte GitHub Actions üzerinde gerçek Windows makinelerde test edilir: 64 ve 32 bit için Python 3.10–3.14'te offline kurulum, kurulum sonrası paket doğrulaması, MCP stdio el sıkışması ve yanlış mimari tespiti.

Elle kurulum (internet varsa)

py -m venv %USERPROFILE%\.mongo-mcp
%USERPROFILE%\.mongo-mcp\Scripts\pip install --prefer-binary "mongo-mcp-simple @ git+https://github.com/ohankay/mongo-mcp-simple.git"

Bağlantıyı test etmek için:

set MONGO_MCP_HOST=sunucu:27017
%USERPROFILE%\.mongo-mcp\Scripts\mongo-mcp.exe --check

Related MCP server: MongoDB MCP Server

VS Code'a ekleme

Ctrl+Shift+P → MCP: Open User Configuration:

{
  "inputs": [
    { "type": "promptString", "id": "mongo-password", "description": "MongoDB sifresi", "password": true }
  ],
  "servers": {
    "mongo": {
      "type": "stdio",
      "command": "${userHome}\\.mongo-mcp\\Scripts\\mongo-mcp.exe",
      "env": {
        "MONGO_MCP_HOST": "mongosrv01:27017",
        "MONGO_MCP_USER": "app_user",
        "MONGO_MCP_PASSWORD": "${input:mongo-password}",
        "MONGO_MCP_AUTH_SOURCE": "admin",
        "MONGO_MCP_DATABASE": "AppDb"
      }
    }
  }
}

Şifreyi VS Code bir kez sorar ve güvenli deposunda saklar. Hiçbir dosyaya düz metin olarak yazılmaz.

Birden fazla sunucu (bazısı şifreli, bazısı Windows/Kerberos)

%USERPROFILE%\.mongo-mcp\connections.json:

{
  "default": "test",
  "connections": {
    "dev":  { "host": "localhost:27017", "database": "AppDb" },
    "test": { "host": "mongotest01:27017", "user": "app_user", "password_env": "MONGO_PW_TEST",
              "auth_source": "admin", "database": "AppDb" },
    "prod": { "host": "m1:27017,m2:27017,m3:27017", "replica_set": "rs0", "user": "report_user",
              "password_env": "MONGO_PW_PROD", "database": "AppDb", "readonly": true,
              "read_preference": "secondaryPreferred" },
    "kurumsal": { "host": "mongoent01.sirket.local:27017", "auth": "windows", "database": "AppDb" }
  }
}

mcp.json: her password_env adı için bir inputs girdisi ve bir env satırı ekleyin:

{
  "inputs": [
    { "type": "promptString", "id": "mongo-pw-test", "description": "TEST - app_user sifresi", "password": true },
    { "type": "promptString", "id": "mongo-pw-prod", "description": "PROD - report_user sifresi", "password": true }
  ],
  "servers": {
    "mongo": {
      "type": "stdio",
      "command": "${userHome}\\.mongo-mcp\\Scripts\\mongo-mcp.exe",
      "env": {
        "MONGO_MCP_CONFIG": "${userHome}\\.mongo-mcp\\connections.json",
        "MONGO_PW_TEST": "${input:mongo-pw-test}",
        "MONGO_PW_PROD": "${input:mongo-pw-prod}"
      }
    }
  }
}

connections.json içindeki password_env adı ile mcp.json env anahtarı harfi harfine aynı olmalıdır. Eşleşmezse sadece o profil "broken" görünür; diğer profiller çalışmaya devam eder ve hata mesajı mcp.json'a eklenmesi gereken satırı söyler.

Copilot'a "prod bağlantısında son 10 siparişi getir" demeniz yeterli; agent list_connections ile profilleri görüp connection parametresini kendisi seçer.

Custom agent

.github/agents/mongo-dba.agent.md (bu repoda örneği var) içinde tools: ['mongo/*'] yazmanız yeterli.

Ayarlar

Env (tek profil)

JSON (çok profil)

Varsayılan

Açıklama

MONGO_MCP_HOST

host

sunucu:27017 veya m1:27017,m2:27017

MONGO_MCP_URI

uri / uri_env

mongodb:// veya mongodb+srv:// (şifre içeriyorsa uri_env ile verin)

MONGO_MCP_AUTH

auth

user varsa scram, yoksa none

scram / ldap / windows (Kerberos) / x509 / none / uri

MONGO_MCP_USER / MONGO_MCP_PASSWORD

user / password_env

Kimlik bilgisi

MONGO_MCP_AUTH_SOURCE

auth_source

admin (ldap/windows: $external)

Kullanıcının tanımlı olduğu veritabanı

MONGO_MCP_DATABASE

database

Tool'larda database verilmezse kullanılan veritabanı

MONGO_MCP_REPLICA_SET

replica_set

Replica set adı

MONGO_MCP_DIRECT_CONNECTION

direct_connection

Replica set'te tek üyeye doğrudan bağlan

MONGO_MCP_TLS

tls

false

TLS (Atlas için URI zaten içerir)

MONGO_MCP_TLS_INSECURE

tls_insecure

false

Yalnızca test ortamları: TLS sertifika ve sunucu adı doğrulamasını tamamen kapatır (TLS'i de açar). Trafik şifreli kalır ama sunucunun kimliği doğrulanmaz

MONGO_MCP_TLS_ALLOW_INVALID_CERTIFICATES

tls_allow_invalid_certificates

false

Yalnızca sertifika zinciri doğrulamasını kapatır (test)

MONGO_MCP_TLS_ALLOW_INVALID_HOSTNAMES

tls_allow_invalid_hostnames

false

Yalnızca sunucu adı kontrolünü kapatır, sertifika doğrulaması sürer (test)

MONGO_MCP_TLS_CA_FILE / MONGO_MCP_TLS_CERTIFICATE_KEY_FILE

tls_ca_file / tls_certificate_key_file

CA dosyası / x509 istemci sertifikası

MONGO_MCP_READ_PREFERENCE

read_preference

primary, secondaryPreferred, ...

MONGO_MCP_READONLY

readonly

false

Yazma tool'larını ve yazan komutları engeller

MONGO_MCP_MAX_DOCS

max_docs

100

Bir sonuçta dönen en fazla doküman (agent bağlamı şişmesin diye)

MONGO_MCP_MAX_TIME_MS

max_time_ms

60000

Sorgu zaman aşımı

MONGO_MCP_SERVER_SELECTION_TIMEOUT_MS

server_selection_timeout_ms

10000

Sunucuya ulaşma zaman aşımı

MONGO_MCP_FALLBACK_DIRECT

fallback_direct

true

Replica set bütün olarak kullanılamazsa (ör. üyeler kendini iç ağ adı / farklı port ile bildiriyorsa), adresteki sunucuları sırayla doğrudan dener ve ilk cevap verenle devam eder

MONGO_MCP_SERVER_MONITORING_MODE

server_monitoring_mode

poll

Sürücünün sunucu izleme yöntemi. poll, uzun süre açık kalan bağlantıları kesen firewall/VPN ortamlarında güvenli seçenektir; stream sürücünün kendi varsayılanıdır

MONGO_MCP_CONFIG

Çoklu profil JSON dosyası

Windows oturumu (Kerberos): auth: "windows" MongoDB Enterprise sunucularında Kerberos yapılandırılmışsa çalışır. Principal, Windows oturumundan (KULLANICI@DOMAIN) otomatik alınır, şifre gerekmez. Domain dışı bir bilgisayarda user alanına principal'ı yazın.

Bilinmesi gerekenler

  • Türkçe arama: regex $options: "i", İ/i ve I/ı harflerini eşlemez. Büyük/küçük harf duyarsız Türkçe arama için collation: {"locale": "tr", "strength": 2} kullanın (find, aggregate, count_documents, distinct, update_documents, delete_documents). Türkçede ş, ğ, ç, ö, ü ayrı harflerdir; AYSE, Ayşe ile eşleşmez.

  • Özel tipler: Sonuçlar relaxed Extended JSON döner ({"$oid": "..."}, {"$date": "..."}, {"$numberDecimal": "..."}). Bu değerler sonraki sorgularda filtre olarak aynen kullanılabilir.

  • MongoDB'nin kendi $toUpper / $toLower operatörleri sadece ASCII harfleri dönüştürür ("Ayşe" → "AYşE").

  • Replica set'e erişim: Sürücü önce normal replica set bağlantısını dener; profilin okuma tercihine (readPreference) uygun en az bir üyeye ulaşabildiği sürece erişilemeyen üyeleri atlar. Replica set üyeleri kendini bilgisayarınızdan erişilemeyen adreslerle bildiriyorsa (iç ağ adları, localhost, farklı port; Windows'ta WinError 10061), bağlantı adresindeki sunucular sırayla doğrudan denenir ve ilk cevap verenle devam edilir. Hangi sunucuya düşüldüğü test_connection ve list_connections çıktısında direct_fallback olarak görünür. Düşülen sunucu secondary ise okumalar çalışır, yazmalar sunucu tarafından reddedilir.

  • Ağ kaynaklı hatalar (_OperationCancelled, Could not reach, Lost the connection): hata yanıtında tahmin değil kanıt döner:

    • stage: hatanın aşaması: connect (bağlantı/replica set keşfi) ya da operation (komut çalışırken).

    • servers: her sunucunun sürücü tarafından görülen durumu, gecikmesi ve son hatası.

    • events: hatadan kısa süre önce kaydedilen sürücü olayları (zaman ve sunucu adresiyle): heartbeat_failed, server_changed, pool_cleared (interrupted_in_use_connections ile), connection_check_out_failed, command_failed. Komut içeriği ve kimlik bilgisi kaydedilmez.

    • _OperationCancelled: sürücü, kullandığı sunucunun bağlantı havuzunu işlem sürerken temizlediği için işlemi iptal etti demektir; nedeni events içindeki heartbeat_failed / pool_cleared kayıtlarında görülür.

  • TLS doğrulamasını kapatma (yalnızca test): profile "tls_insecure": true ekleyin (ortam değişkeni MONGO_MCP_TLS_INSECURE=true, ya da URI sonuna &tls=true&tlsInsecure=true). TLS'i de açar; URI'deki diğer tlsAllowInvalid* seçenekleriyle çakışmaz.

  • TLS / SSL sorunları: TLS kaynaklı bir bağlantı hatasında mesaj TLS/SSL problem (sunucu:port): ... ile başlar ve yanıtta tls alanı döner:

    • problem: untrusted_certificate (CA tanınmıyor / self-signed), hostname_mismatch, certificate_expired, certificate_not_yet_valid, weak_certificate, client_certificate_required, client_certificate_rejected, client_certificate_file, server_requires_tls (profilde TLS yok ama sunucu istiyor), server_not_tls (profilde TLS var ama sunucu kullanmıyor), protocol_mismatch, handshake_failed.

    • server, summary, driver_detail (OpenSSL'in özgün mesajı), how_to_fix (yapılacaklar), settings (profilin etkin TLS ayarları).

    • evidence: sunucuya kimlik bilgisi göndermeden yapılan tek bir TLS el sıkışmasının sonucu: sunucu TLS konuşuyor mu, protokol, şifre takımı ve sunucu sertifikası (subject, issuer, sertifikadaki adlar, geçerlilik tarihleri, süresi dolmuş mu, SHA-256 parmak izi).

    • Sertifika sorunlarında test_only_workaround: tls_insecure ile nasıl geçileceği. Tüm sunucular TLS hatası veriyorsa doğrudan bağlanma denemesi (direct fallback) yapılmaz, hata hemen döner.

    • tls_insecure / tls_allow_invalid_* açık profillerde test_connection çıktısında tls.verification ve tls.warning, list_connections çıktısında tls_warning görünür.

  • Yeniden deneme politikası: Okuma araçları (find, aggregate, count_documents, list_* ...) ağ hatası alırsa istemci kapatılıp yeni bir istemciyle bir kez tekrar denenir; başarılı olursa yanıtta retried_after alanı ilk hatayı ve olaylarını gösterir. Yazma araçları ve run_command asla otomatik tekrarlanmaz: komut çalışırken bağlantı koptuysa yanıtta write_outcome: "unknown" döner, yazmanın uygulanıp uygulanmadığını tekrar etmeden önce kontrol edin. Her ağ hatasından sonra istemci sıfırlanır, aynı aracı tekrar çağırmak yeni bağlantıyla başlar.

  • Okuma tercihi: list_databases, list_collections, collection_stats, list_indexes artık profilin readPreference ayarına uyar (eskiden primary'ye gidiyordu); secondaryPreferred profilinde primary erişilemezken de çalışırlar.

  • Çalışan sürümü doğrulama: test_connection çıktısındaki runtime alanı çalışan MCP sürecinin sürümünü, pid'ini, başlama zamanını, Python sürümü/bitliğini ve modül yolunu gösterir. Güncellemeden sonra eski davranış görüyorsanız VS Code'da MCP sunucusunu yeniden başlatın ("MCP: List Servers" → mongo → Restart) ve runtime.mongo_mcp sürümünü kontrol edin. Ayrıca members_seen ve primary_reachable alanları replica set'te hangi üyelerin görüldüğünü gösterir.

  • run_transaction replica set veya sharded cluster gerektirir; standalone sunucuda açık bir hata döner ve hiçbir şey yazılmaz.

  • Sunucu tarafı notu: MongoDB 8.0.x, Linux çekirdeği 6.19 ve üzerinde başlamayı reddeder (SERVER-121912). 8.2, 7.0 ve öncesi etkilenmez. Bu MCP'yi değil, MongoDB sunucusunun kurulu olduğu makineyi ilgilendirir.

Geliştirme ve testler

pip install -e ".[dev]"
docker compose -f tests/docker-compose.yml up -d
docker exec mongo-rs mongosh --port 27019 --quiet --eval "rs.initiate({_id:'rs0',members:[{_id:0,host:'localhost:27019'}]})"
export MONGO_MCP_TEST_TARGETS="mongo82=mongodb://root:Str0ng%21Pass@localhost:27082/;mongo70=mongodb://root:Str0ng%21Pass@localhost:27070/;mongo44=mongodb://root:Str0ng%21Pass@localhost:27044/"
export MONGO_MCP_TEST_RS="mongodb://localhost:27019/?replicaSet=rs0"
pytest -v

Test kapsamı:

  • Unit: konfigürasyon doğrulama ve hata mesajları, bozuk profilin diğerlerini etkilememesi, her kimlik doğrulama tipi için istemci ayarları (Kerberos principal dahil), Extended JSON, salt okunur koruması, şablonlar ve install.cmd.

  • Entegrasyon: MongoDB 8.2, 8.0, 7.0 ve 4.4 (kimlik doğrulamalı) ve replica set üzerinde CRUD, Türkçe collation, pipeline update, array_filters, duplicate key ve kısmi bulk hata, limit ve kesme, zaman aşımı, aggregate ve $out, şema çıkarımı, view, validator, capped, index'ler, run_command, düşük yetkili kullanıcıyla yetki hataları, kill_op, salt okunur profil, eşzamanlı çağrılar, transaction commit/rollback.

  • Uçtan uca: python -m mongo_mcp gerçek MCP stdio protokolüyle (VS Code'un yaptığı gibi) başlatılır; bozuk profil, çok profilli şifre akışı, transaction ve --check CLI'ı test edilir.

Lisans

MIT

Available Tools

28 tools
add_connectionB

Register (or replace) a connection profile at runtime and test it.

host: "srv01", "srv01:27017" or "h1:27017,h2:27017"; or uri: "mongodb://..." / "mongodb+srv://...". auth: none | scram (user+password) | ldap | windows (Kerberos with the Windows logon) | x509 | uri. Passwords are never passed here: use password_env (name of an environment variable set in mcp.json).

Inputs: name (required), tls, uri, auth, +10 more.

aggregateB
Read-onlyIdempotent

Run an aggregation pipeline (JSON array of stages). $out / $merge are allowed unless the profile is read-only. limit caps the returned documents (default the profile's max_docs). collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching (İ=i, I=ı).

Inputs: pipeline (required), collection (required), limit, database, +4 more.

collection_statsC
Read-onlyIdempotent

Document count, data / storage / index sizes (MB), average document size, index sizes, capped flag.

Inputs: collection (required), database, connection.

count_documentsA
Read-onlyIdempotent

Count documents matching a filter. estimated=true uses collection metadata (fast, ignores the filter). collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching (İ=i, I=ı).

Inputs: collection (required), filter, database, collation, +2 more.

create_collectionA

Create a collection or view. options are passed to the 'create' command, e.g. {"validator": {"$jsonSchema": {...}}}, {"capped": true, "size": 1048576}, {"timeseries": {"timeField": "ts"}}, {"viewOn": "orders", "pipeline": [...]}.

Inputs: name (required), options, database, connection.

create_indexA

Create an index. keys: {"customerId": 1, "createdAt": -1} or {"title": "text"} / {"loc": "2dsphere"}. expire_after_seconds makes a TTL index; partial_filter is a filter expression.

Inputs: keys (required), collection (required), name, sparse, +5 more.

current_opsC
Read-onlyIdempotent

Running operations (opid, op, namespace, seconds running, client, command summary).

Inputs: connection, active_only, min_seconds.

delete_documentsA
Destructive

Delete the first matching document (many=false) or all matching documents (many=true). An empty filter requires confirm_all=true.

Inputs: filter (required), collection (required), many, database, +3 more.

distinctB
Read-onlyIdempotent

Distinct values of a field (optionally within a filter). Returns at most 5000 values. collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching (İ=i, I=ı).

Inputs: field (required), collection (required), filter, database, +2 more.

drop_collectionA
Destructive

Drop a collection with all its documents and indexes. confirm_name must repeat the collection name.

Inputs: collection (required), confirm_name (required), database, connection.

drop_databaseA
Destructive

Drop a whole database. confirm_name must repeat the database name. admin/config/local are refused.

Inputs: database (required), confirm_name (required), connection.

drop_indexA
Destructive

Drop an index by name (see list_indexes). The _id index cannot be dropped.

Inputs: name (required), collection (required), database, connection.

findB
Read-onlyIdempotent

Query documents. filter / projection / sort are JSON (Extended JSON for ObjectId, dates...). sort: {"createdAt": -1} or [["a", 1], ["b", -1]]. limit defaults to the profile's max_docs (100). collation: {"locale": "tr", "strength": 2} for Turkish case-insensitive matching: "istanbul" finds "İstanbul" (İ=i, I=ı; regex $options "i" does not fold İ/ı).

Inputs: collection (required), skip, sort, limit, +6 more.

infer_schemaA
Read-onlyIdempotent

Infer the document structure from a random sample: every field path with its BSON types and how often it appears (present_pct). Nested objects use dots, array elements use "[]".

Inputs: collection (required), database, connection, sample_size.

insert_documentsB

Insert one document (JSON object) or many (JSON array). Returns the inserted _ids. ordered=false keeps inserting after a failing document.

Inputs: documents (required), collection (required), ordered, database, +1 more.

kill_opA
Destructive

Kill a running operation by opid (from current_ops).

Inputs: opid (required), connection.

list_collectionsC
Read-onlyIdempotent

Collections and views of a database with type and estimated document count. name_filter: regex on the name, e.g. "^order".

Inputs: database, connection, name_filter, include_counts.

list_connectionsA
Read-onlyIdempotent

List configured MongoDB connection profiles (passwords are never shown; broken ones show their error).

Inputs: no named parameters.

list_databasesB
Read-onlyIdempotent

List databases with size on disk (only the ones the login may see).

Inputs: connection.

list_indexesB
Read-onlyIdempotent

Indexes of a collection with keys and options (unique, sparse, TTL, partial filter).

Inputs: collection (required), database, connection.

remove_connectionC

Close and forget a connection profile.

Inputs: name (required).

rename_collectionC

Rename a collection within the same database.

Inputs: new_name (required), collection (required), database, connection, +1 more.

replace_documentB

Replace the first document matching the filter with a whole new document (no update operators).

Inputs: filter (required), collection (required), replacement (required), upsert, +2 more.

run_commandA
Destructive

Run any database command (like db.runCommand), e.g. {"serverStatus": 1}, {"usersInfo": 1}, {"createUser": "app", "pwd": "...", "roles": [...]}, {"collMod": "orders", "validator": {...}}, {"explain": {"find": "orders", "filter": {...}}, "verbosity": "executionStats"}. database defaults to the profile's database (use "admin" for server-level commands).

Inputs: command (required), database, connection.

run_transactionA

Execute several writes atomically (all or nothing). Requires a replica set or sharded cluster.

operations: [{"op": "insert", "collection": "orders", "document": {...}}, {"op": "update", "collection": "stock", "filter": {...}, "update": {"$inc": {"qty": -1}}}, {"op": "insert_many" | "update_many" | "replace" | "delete" | "delete_many", ...}] If any operation fails, nothing is written and the error names the failing step.

Inputs: operations (required), database, connection.

server_statusB
Read-onlyIdempotent

Server health summary: version, uptime, connections, operation counters, memory, replication role.

Inputs: connection.

test_connectionA
Read-onlyIdempotent

Connect and return server version, edition, topology (standalone / replica set / sharded), the authenticated user and whether transactions are supported.

Inputs: connection.

update_documentsB

Update with operators ({"$set": {...}, "$inc": {...}}) or an aggregation pipeline (JSON array). many=false updates the first match. An empty filter requires confirm_all=true.

Inputs: filter (required), update (required), collection (required), many, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource and action (find vs aggregate vs count_documents vs distinct, list vs create vs drop for collections/indexes). The main overlap is the generic run_command, which can duplicate server_status, current_ops, kill_op, create_index, and other administrative operations; count_documents vs collection_stats is also mildly overlapping. Descriptions still make the intended dedicated tool clear in most cases.

    Naming Consistency4/5

    The dominant convention is verb_noun snake_case (list_connections, insert_documents, create_index, drop_collection). There are minor deviations: single-verb tools (find, aggregate, distinct) and noun-based tools (collection_stats, server_status, current_ops). These deviations are readable and predictable, not chaotic.

    Tool Count2/5

    The server exposes 28 tools, which is above the 25+ threshold for 'too many' under the rubric. The breadth of MongoDB administration explains many of them, but the surface is heavy and could be consolidated in places (e.g. connection management, collection/index lifecycle, and generic run_command coverage).

    Completeness5/5

    The surface covers connection management, database/collection/index lifecycle, CRUD, aggregation, counts, distinct values, schema inference, transactions, server health, running ops, and a generic run_command escape hatch. Core MongoDB workflows have no obvious dead ends; less common operations like user management or collMod are reachable through run_command.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact natively with MongoDB databases, including schema discovery, CRUD operations, aggregation pipelines, and index management via natural language.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with MongoDB databases through natural language, supporting document CRUD, aggregation, collection listing, and statistics.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to interact with MongoDB databases and MongoDB Atlas, supporting read-only and write operations, Atlas cluster management, and data exploration.
      145,421 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables an IDE agent to read and write MongoDB through typed, allowlisted tools, with safety defaults and support for CRUD, aggregation, and collection listing.
      547 npm
      MIT