Skip to main content
Glama
chzkyy

mcp-mongodb

by chzkyy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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_info

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

list_databases

Daftar semua database yang tersedia beserta ukurannya.

list_collections

Daftar semua koleksi di dalam sebuah database.

db_stats

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

collection_stats

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

create_collection

Membuat koleksi baru di dalam sebuah database.

rename_collection

Mengganti nama sebuah koleksi.

drop_collection

PERINGATAN: Menghapus koleksi BESERTA SELURUH ISINYA secara permanen!

drop_database

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

find

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

find_one

Ambil SATU dokumen pertama yang cocok dengan filter.

get_by_id

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

count

Menghitung jumlah dokumen yang cocok dengan filter.

distinct

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

aggregate

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

list_indexes

Daftar semua index pada sebuah koleksi.

insert_one

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

insert_many

Sisipkan BANYAK dokumen sekaligus ke dalam koleksi.

update_one

Perbarui DOKUMEN PERTAMA yang cocok dengan filter menggunakan operator update.

update_many

Perbarui SEMUA dokumen yang cocok dengan filter menggunakan operator update.

replace_one

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

delete_one

Hapus SATU dokumen pertama yang cocok dengan filter.

delete_many

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

create_index

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

drop_index

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chzkyy/mcp_mongodb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server