MongoDB for Flow Steward
Provides MongoDB document database operations, including find/find_one reads, bounded read-only aggregation, insert_one/insert_many, update_one/update_many with upserts, and delete_one/delete_many, with canonical Extended JSON BSON handling and support for standalone, replica, and SRV connections.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MongoDB for Flow Steward
See Workflow action guide for action selection, setup requirements and JSON field examples.
Connect MongoDB to Flow Steward for document lookup, reusable JSON Dataset queries and workflow record changes. Workflow reads support find, find-one, projections, sorting and read-only aggregation. Writes insert one document or a batch, apply update operators with optional upsert, and delete matching documents. Multi-document update and delete actions require explicit acknowledgement, while mutation filters must be nonempty.
Read-only Datasets add authorized collection discovery, sampled schema inspection, parameterized find queries, a smaller aggregation subset, previews and output-schema inference. Dataset resource and field selections apply to queries and returned fields. Workflow document results preserve BSON types using canonical Extended JSON; Dataset results convert supported values into JSON while retaining large integers and Decimal128 values as strings.
Configure a database with username/password and a direct or SRV endpoint. Reads return at most 100 documents, but multi-document updates and deletes can affect every match. Aggregation result limits do not cap all server computation. Transactions, change streams, cross-collection joins and executable JavaScript are outside this connector. Sampled schemas describe observed documents rather than enforce collection structure. Atlas vector search and embedding generation are not provided.
Runtime and operation requirements
An independent MongoDB extension with document reads and writes and bounded read-only aggregation. No database triggers. Install only this connector; it does not include SQL, Redis, or other database drivers.
Related MCP server: MCP MongoDB
Install
Choose the ZIP matching the Linux host architecture, not the machine running your browser:
flowsteward.mongodb-1.1.12-linux-amd64.zipflowsteward.mongodb-1.1.12-linux-arm64.zip
Each ZIP contains one MongoDB-only Google MCP Toolbox executable, the host-v2 adapter, manifests, and source/build provenance. Verify SHA256SUMS before importing the archive. Flow Steward platform 1.5.0 or newer and public extension SDK 0.4.0 are required.
Connection
Create a project MongoDB connection with host and database. Use the server hostname alone, with no URI, credentials or path. The connection fixes the database; each workflow action selects a collection. Data is stored directly in your collection without an added tenant prefix. Database credentials and MongoDB roles control access, so use a user restricted to the intended database.
Setting | Default | Meaning |
| 27017 | Standard connection port; ignored SRV ports cannot be supplied |
| false | Enable for an Atlas/SRV hostname, such as |
| true | Verify the server certificate and hostname using system trust roots |
| admin | Authentication database |
| 15 | Shared operation deadline, from 1 to 30 seconds |
Store username and password in the secret fields. Credentials are never part of action inputs or returned diagnostics. Standalone, replica discovery and SRV connection paths are implemented. SRV requires TLS and the default port. Public endpoints always require TLS. Private endpoints also require the host administrator's FS_ALLOW_PRIVATE_REMOTE_URLS opt-in. Every discovered node is resolved and checked by the native dialer, then connected using its validated IP while retaining the TLS hostname. Custom certificate files, insecure TLS, arbitrary URI options, tunnels, and executable overrides are not exposed.
Actions
Every action requires connection_ref and collection.
Action | Inputs | Result |
| Optional |
|
| Optional |
|
|
|
|
|
|
|
|
|
|
| Nonempty |
|
| Same as update_one, plus | Same counters |
| Nonempty |
|
| Nonempty |
|
Every result also includes collection; writes include applied. A matched update that changes nothing returns applied: false. Zero-match reads and deletes succeed normally. Filters on mutations must be nonempty; this does not prove selectivity, so review them before use. Many-document writes can affect all matching documents and are not limited to 100. Insert batches contain 1–100 documents. This connector offers operator updates and upserts; it does not expose replacement updates, transactions or change streams.
Reads return at most 100 documents (default 20); find_one returns at most one. Sorting preserves field order. Aggregation accepts at most 16 stages and appends the configured result limit. Allowed stages are $match, $project, $group, $sort, $limit, $skip, $unwind, $addFields, $set, $unset, $count, $replaceRoot, $replaceWith. Write stages, cross-collection joins and JavaScript operators/BSON code are rejected. A result limit bounds returned documents, not the server work needed by a sort or group. Requests are capped at 256 KiB; inline results at 480 KiB; native output at 1 MiB. Larger results fail with an explicit error; use narrower filters/projections.
BSON types and examples
Use JSON objects in JSON fields. Results use canonical MongoDB Extended JSON, preserving BSON types and 64-bit integer precision. Numbers in returned documents are tagged, for example {"$numberInt":"3"}. Write counters are ordinary JSON integers. To query an ObjectId returned by an insert, pass the returned inserted_id unchanged:
{"connection_ref":"my-mongodb","collection":"documents","filter":{"_id":{"$oid":"0123456789abcdef01234567"}}}An upsert example:
{"connection_ref":"my-mongodb","collection":"documents","filter":{"slug":"intro"},"update":{"$set":{"title":"Introduction","revision":{"$numberLong":"9007199254740993"}}},"upsert":true}Bare integers outside the interoperable JSON safe range are rejected; use $numberLong or the appropriate Extended JSON representation. String values containing ${ENV}, {{templates}}, or $operators remain literal data.
Writes and failure handling
Live writes require the host's durable external_effect_id claim. Test mode validates input and suppresses writes before starting Toolbox. Automatic MongoDB read/write retries are disabled and writes request majority acknowledgement. Neither the claim nor an insert batch makes a write transaction atomic: a timeout, broken connection or batch error may follow partial effects. Such failures report retryable: false and external_effect_status: timeout_unknown. Reconcile existing documents before deciding to retry. Stable explicit _id values help detect duplicate inserts. Do not automatically retry $inc, pushes, or partially completed batches.
Build and verify
./scripts/build_toolbox.sh
python3 scripts/package_extension.py --runtime-target linux-amd64
python3 scripts/package_extension.py --runtime-target linux-arm64The build pins upstream Toolbox v1.17.0 commit 45ed205cc8682ed066c82e0b65bcd0e8fc3becce and a Go container by digest. The included source patch corrects MongoDB sorting and result handling, adds literal payloads and the dial policy, and disables automatic retries. Binary SHA-256, source, patch and build image are recorded in toolbox-provenance.json. Binaries are rebuilt in CI and omitted from Git source history. Archives have deterministic ordering, timestamps and permissions, contain one architecture, and stay within the installer's 50 MiB compressed/150 MiB unpacked limits.
From a Flow Steward checkout, run the supported container gate against this standalone checkout:
./core/entrypoints/cli/scripts/lint.sh --checks extension-static,extension-tests --extension-root /absolute/path/to/ext-data-mongodbUnit tests cover contracts, input limits, literal data, write claims, failure semantics, transport deadlines and archive boundaries. Live tests opt in through ignored tests/live-mongodb.local.json with host, port, database, auth_source, username, password, tls. Use a disposable test database. They exercise authenticated document CRUD, Extended JSON, projection, sorting, upsert and aggregation. Without a fixture they are explicitly skipped. Local integration uses MongoDB 8.0.17; Atlas/SRV, replica failover and a real public TLS deployment require separate environment acceptance.
Apache-2.0. See LICENSE and NOTICE. This is an independent Flow Steward integration, unaffiliated with MongoDB, Inc.
Native Dataset queries (1.1.0)
Dataset queries use JSON, with exact collection names and explicit top-level output fields:
{"resource_id":"orders","operation":"find","arguments":{"filter":{"status":{"$eq":{"$param":"status"}}},"projection":{"status":1,"total":1},"sort":{"total":-1}}}Declare parameters with JSON Schema scalar, object or array types. Single-member
{"$param":"name"} markers are allowed only inside arguments and preserve types.
find supports filter, inclusion projection, sort and limit. Filters support
field equality, $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin, $exists
and $and/$or/$nor. Field names are conservative ASCII top-level names; nested
field selection, computed projections, arbitrary expressions and scripts are unsupported.
aggregate supports only $match, $sort, $skip, $limit and inclusion
$project, and requires an explicit projection. Collections and fields are checked
against the Dataset scope before dispatch and output fields are checked again.
Implicit _id is suppressed unless explicitly selected. Writes, cross-collection
stages and JavaScript BSON are rejected, including inside parameter objects.
These Dataset operations provide document reads, with no Atlas vector or RAG claim.
Collection discovery lists only names authorized by MongoDB in the configured
database, with at most 32 collections and a 33rd sentinel for truncation. Schema
refresh samples at most five documents per collection and reports at most 100
top-level fields in total. Types are observations from samples, not schema guarantees;
empty collections have no invented columns. Mixed fields report value_type: json,
all observed sample types and a JSON Schema union; empty query inference uses {}
for unknown field types. Values retain their native JSON types. Scoped refresh projects only allowed
fields and does not discover other collections. Results identify sampling/truncation.
Queries and bound arguments are limited to 64 KiB, depth 20 and 10,000 nodes. Preview and runtime row caps are separate, each 1–100; response budgets are at most 400 KiB. A single deadline of at most 30 seconds includes discovery and sampling; there are no retries. Canonical Extended JSON becomes JSON numeric, boolean, ObjectId string and date (ISO string or epoch milliseconds) values while nested objects and arrays are preserved. Integers beyond JavaScript's safe range and Decimal128 values remain strings to preserve precision. Workflow CRUD remains project scoped and writes still require a durable effect claim; test mode suppresses writes. Dataset admin read actions accept host admin contexts with null account and project IDs. No triggers are provided.
Discovery scans at most 33 raw authorized collection names. Names outside the
conservative selectable-name rules (for example system.views or names above
120 UTF-8 bytes) are skipped without sampling; metadata reports a skipped count
and truncation. Caller byte limits apply to the complete assembled metadata.
Validation with unresolved typed parameters reports sample_parameters_required
and required_sample_params: static structure/types are checked, while actual
values are required for complete scope/range validation and every execution.
Automated CI and releases
Pushes to main and pull requests run the shared extension build workflow. The checked-in .github/release-config.json selects both Linux targets, the repository's package script and test inputs. Missing native payloads and published-only inventory are restored from checksum-pinned release archives; tracked source files are preserved. The source packager retains its provenance checks.
After the versioned release commit is on main, publish by pushing its version tag:
git tag v1.1.12
git push origin v1.1.12The release workflow runs the shared checks, builds the target archives and publishes the GitHub release and checksums. Do not move an existing tag. To rerun a release for an existing tag, dispatch the same workflow:
gh workflow run release.yml --repo Flow-Steward/ext-data-mongodb --ref main -f tag=v1.1.12The manifest, descriptor (when present), package version and tag must identify the same release. Release publication uses the workflow token; no additional repository secret is required by these callers.
Standalone CI coverage
The release recipe lists the standalone test files and individual test nodes explicitly, including package, source and provenance contracts. The shared runner clears repository pytest addopts so packaged contract checks are not silently deselected. This scope does not claim live provider or database verification.
The following integration coverage requires a separate environment and is not part of standalone CI:
tests/test_live.py: Opt-in live provider/server test requires external credentials or a disposable service fixture.
CI builds both Linux architectures from the pinned upstream checkout; it does not restore older release binaries. scripts/build_toolbox.sh clones the pinned tag automatically, or accepts a clean exact-commit checkout through TOOLBOX_SOURCE / FS_TOOLBOX_SOURCE_DIR. The build generates toolbox-provenance.json, SHA256SUMS and selected compiler metadata, which are included in release archives.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build and manage Cloudgate workflow-APIs: controllers, actions, workflow graphs, and databases.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Hybrid search, schema introspection and record read/write over FoxNose collections
Scoped agent execution. Server-side credentials, policy, budgets and verifiable receipts.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAllows interaction with MongoDB collections and documents through standardized MCP requests, supporting operations like listing collections, reading documents with filtering, and executing structured queries.ISC
- AlicenseNot gradedqualityDmaintenanceEnables interaction with MongoDB databases through MCP, supporting database queries, resource reading, and multi-collection operations including aggregation pipelines and lookups.ISC
- FlicenseNot gradedqualityDmaintenanceEnables interaction with MongoDB databases through complete CRUD operations including connecting, creating, reading, updating, and deleting documents with support for filtering, pagination, and automatic ObjectId serialization.-
- AlicenseNot gradedqualityDmaintenanceEnables CRUD operations on MongoDB databases and collections, including listing databases and collections, via MCP tools.Apache 2.0