Skip to main content
Glama
chzkyy

mcp-mongodb

by chzkyy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MONGODB_DBNoDefault database name; if empty, every tool needs a database parameter
MONGODB_URINoMongoDB connection URImongodb://localhost:27017

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
server_infoA

Cek koneksi dan ambil informasi server MongoDB (versi, host, status replikasi). Gunakan ini untuk memastikan koneksi berjalan.

list_databasesA

Daftar semua database yang tersedia beserta ukurannya.

list_collectionsB

Daftar semua koleksi di dalam sebuah database.

db_statsB

Statistik database: jumlah koleksi, objek, ukuran data, dan index.

collection_statsB

Statistik koleksi: jumlah dokumen, ukuran rata-rata, ukuran storage, dan index.

create_collectionA

Membuat koleksi baru di dalam sebuah database.

rename_collectionC

Mengganti nama sebuah koleksi.

drop_collectionA

PERINGATAN: Menghapus koleksi BESERTA SELURUH ISINYA secara permanen!

drop_databaseA

PERINGATAN: Menghapus seluruh database beserta semua koleksinya secara permanen! Wajib set confirm: true.

findA

Cari dokumen dalam koleksi dengan filter opsional, proyeksi field, urutan, dan paginasi.

find_oneB

Ambil SATU dokumen pertama yang cocok dengan filter.

get_by_idA

Ambil satu dokumen berdasarkan _id. String hex 24 karakter otomatis dikonversi menjadi ObjectId.

countA

Menghitung jumlah dokumen yang cocok dengan filter.

distinctB

Ambil daftar nilai unik dari sebuah field (opsional dengan filter).

aggregateA

Jalankan aggregation pipeline MongoDB untuk analisis data (grouping, join via $lookup, dsb).

list_indexesC

Daftar semua index pada sebuah koleksi.

insert_oneA

Sisipkan SATU dokumen baru ke dalam koleksi. Mengembalikan _id dokumen yang dibuat.

insert_manyA

Sisipkan BANYAK dokumen sekaligus ke dalam koleksi.

update_oneA

Perbarui DOKUMEN PERTAMA yang cocok dengan filter menggunakan operator update.

update_manyC

Perbarui SEMUA dokumen yang cocok dengan filter menggunakan operator update.

replace_oneB

Ganti seluruh isi satu dokumen yang cocok dengan filter dengan dokumen baru.

delete_oneA

Hapus SATU dokumen pertama yang cocok dengan filter.

delete_manyA

PERINGATAN: Hapus SEMUA dokumen yang cocok dengan filter! Filter kosong ({}) hanya diizinkan bila confirm: true.

create_indexB

Membuat index pada koleksi untuk mempercepat query atau menegakkan unique constraint.

drop_indexA

Hapus index berdasarkan nama (index default 'id' tidak dapat dihapus).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 25 tools

Disambiguation4/5

Most tools target distinct MongoDB resources and actions: collections, databases, documents, indexes, and stats are cleanly separated. The only slight overlap is among find, find_one, and get_by_id, plus update_one and replace_one, but descriptions clarify the differences well.

Naming Consistency4/5

Most tools follow a clear snake_case pattern like insert_one, delete_many, and create_index. Minor deviations exist with bare commands such as find, count, distinct, aggregate and noun-style names like db_stats or server_info, but the overall style remains readable and predictable.

Tool Count3/5

With 25 tools, the server is on the heavy end of what an agent can comfortably scan. The tools do cover a broad MongoDB feature surface without obvious duplicates, but the count feels more like a complete driver SDK than a tightly curated MCP tool set.

Completeness4/5

The tool set covers the full document lifecycle: create, read, update, delete, replace, plus collection, database, and index management. Minor gaps exist such as no find_and_modify, no explicit create_database, and no bulk-write operation, but core workflows are workable and produce no dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo issues