About kiliczsh/mcp-mongo-server
kiliczsh/mcp-mongo-server is an MCP server published by kiliczsh in the Data category: a Model Context Protocol Server for MongoDB. Conduid read 11 tools from its source: aggregate, convertTime, count, createIndex, insert, listCollections and 5 more. No package is published for it, so it installs from a source checkout.
The repository has 283 stars and 55 forks, is licensed MIT, and its last commit was on 11 Nov 2026. The latest release is 3.2.1 (11 Nov 2026): mcp-mongo-server 3.2.1 fixes a query timeout regression in fresh npm installations of 3.2.0. It follows 3.2.0 (11 Nov 2026), and the 5 most recent releases go back to 3.0.1 (29 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data, cline, antrophic and mongo.
Install
git clone https://github.com/kiliczsh/mcp-mongo-serverTools (11)
aggregateRun a MongoDB aggregation pipeline for grouping, joins, or multi-stage transformations. Request an execution plan to inspect the pipeline.| Parameter | Type | Description |
|---|---|---|
| collection * | string | Name of the collection to aggregate |
| explain | string | Optional: Get aggregation execution information (queryPlanner, executionStats, or allPlansExecution) |
| objectIdMode | string | Control how 24-character hex strings are handled |
| pipeline * | array | Aggregation pipeline stages. Supports date strings in ISO format ('2025-01-01T00:00:00Z') and ISODate('2025-01-01T00:00:00Z') notation |
convertTimeConvert a Unix timestamp or date string to multiple formats (UTC ISO 8601, GMT, Unix seconds/milliseconds) and report the server's current time and timezone. Useful for building unambiguous date queries when the server and user are in different timezones. Omit 'input' to get the current time.| Parameter | Type | Description |
|---|---|---|
| input | string | A Unix timestamp (seconds or milliseconds, as a number or numeric string) or a date string (ISO 8601, with or without a timezone offset). Omit to use the current server time. |
countCount documents matching a filter in one collection. Use aggregate for counts grouped by field.| Parameter | Type | Description |
|---|---|---|
| collation | object | Collation rules for comparison |
| collection * | string | Collection name |
| hint | object | Index hint |
| limit | integer | Max documents to count |
| maxTimeMS | integer | Max execution time |
| objectIdMode | string | Control how 24-character hex strings are handled |
| query | object | Query filter to count |
| readConcern | object | Read concern option |
| skip | integer | Docs to skip before counting |
createIndexCreate indexes to improve query performance, enforce uniqueness, or expire documents with a TTL index.| Parameter | Type | Description |
|---|---|---|
| collection * | string | Name of the collection to create indexes on |
| commitQuorum | any | Replica-set commit quorum as a member count or a mode such as majority |
| indexes * | array | Array of index specifications |
| objectIdMode | string | Control how 24-character hex strings are handled |
| writeConcern | object | Write concern for index creation |
insertInsert new documents into a MongoDB collection. Use update to modify existing records.| Parameter | Type | Description |
|---|---|---|
| bypassDocumentValidation | boolean | Allow insert to bypass schema validation |
| collection * | string | Name of the collection to insert into |
| documents * | array | Array of documents to insert |
| objectIdMode | string | Control how 24-character hex strings are handled |
| ordered | boolean | If true, perform ordered insert. If false, insert unordered |
| writeConcern | object | Write concern for the insert operation |
listCollectionsList collections in the connected database. Filter by name or other collection properties and request names only for a compact result.| Parameter | Type | Description |
|---|---|---|
| filter | object | Filter for collections |
| limit | number | Maximum number of collections to return |
| nameOnly | boolean | If true, return only collection names |
| objectIdMode | string | Control how 24-character hex strings are handled |
| skip | number | Number of collections to skip before returning results |
listConnectionsList configured connection IDs, default databases, and read-only policies.listDatabasesList existing authorized databases on a configured connection.queryFind documents in one collection using a filter, projection, or sort. Use aggregate for grouping or joins. Request an execution plan to inspect the query.| Parameter | Type | Description |
|---|---|---|
| collection * | string | Name of the collection to query |
| explain | string | Optional: Get query execution information |
| filter | object | MongoDB query filter. Supports date strings in ISO format ('2025-01-01T00:00:00Z') and ISODate('2025-01-01T00:00:00Z') notation |
| includeTotal | boolean | Include the exact match count. Set false to skip counting. |
| limit | number | Requested page size. Configured server caps may reduce the number returned. |
| objectIdMode | string | Control how 24-character hex strings are handled |
| projection | object | Fields to include/exclude |
| skip | number | Number of documents to skip before returning results |
| sort | object | Sort order as a field-to-direction map, e.g. { orderDate: -1 } for descending or { name: 1 } for ascending |
serverInfoInspect MongoDB server metadata such as version and storage engine. Enable includeDebugInfo for additional diagnostics.| Parameter | Type | Description |
|---|---|---|
| includeDebugInfo | boolean | Include additional debug information about the server |
updateModify matching documents using operators such as $set, $unset, or $inc. Enable multi to update all matches or upsert to create a document when the filter matches none.| Parameter | Type | Description |
|---|---|---|
| collection * | string | Name of the collection to update |
| filter * | object | Filter to select documents to update. Supports date strings in ISO format ('2025-01-01T00:00:00Z') and ISODate('2025-01-01T00:00:00Z') notation |
| multi | boolean | Update multiple documents that match the filter |
| objectIdMode | string | Control how 24-character hex strings are handled |
| update * | object | Update operations to apply ($set, $unset, $inc, etc.) |
| upsert | boolean | Create a new document if no documents match the filter |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by bun.lock.
- ✓No dynamic code executionScanned 14 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/index.ts:4, src/index.ts:284
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- bun.lock
Pattern matches on the source text of 14 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.0K words, fetched yesterday. The original in the repository is authoritative.
Read full README