Skip to main content

@keeb/mongodb

v2026.04.07.1

MongoDB integration (queries, inserts, connectivity diagnostics, user search, related record lookup)

Repository

https://github.com/keeb/swamp-mongodb

Labels

mongodbdatabasenosql

Contents

Install

$ swamp extension pull @keeb/mongodb

Release Notes

Bump versions; add insert method for writing documents

Security Notice

This extension includes AI agent skills that can modify AI assistant behavior. Review the skill files before installing.

@keeb/mongodbv2026.04.07.1mongodb_query.ts

Global Arguments

ArgumentTypeDescription
mongodbUristringMongoDB connection URI
diagnoseCheck connectivity and list collections in a specific database. Tries the default DB from URI, plus common alternatives.
queryQuery any collection with a filter, projection, sort, and limit.
ArgumentTypeDescription
collectionstringCollection name
limitnumberMax documents to return
find_userSearch for a user by username or email. Supports exact and case-insensitive regex matching.
ArgumentTypeDescription
querystringSearch term (username or email pattern)
insertInsert one or more documents into a collection.
ArgumentTypeDescription
collectionstringCollection name
find_relatedGiven a user ID, search for related records in account, organization, and member collections.
ArgumentTypeDescription
userIdstringUser ID to search for related records

Resources

queryResults(infinite)— Query results from MongoDB

mongodb1 file