Query and analyse your MongoDB collections with natural language. OE Runtime connects to any MongoDB instance, explores your schema, surfaces data quality issues, and suggests indexes — all without writing a single aggregation pipeline.
Create a folder called nosql-cache/ and add these two files:
Create SKILL.md inside a nosql-cache/ directory. This is the portable skill — it follows the agentskills.io format and runs unchanged on Claude, Cursor, Windsurf, or OE Runtime:
--- name: nosql-cache description: Read and write MongoDB documents license: Apache-2.0 metadata: author: Open Enthrium version: "1.0" --- You are a data agent with access to a MongoDB database. Query, insert, and analyze documents. Always confirm before write operations. Complete all steps fully before writing your report. ## Step 1: Query Collection List all available collections in the database. From the first collection, fetch the 10 most recently created documents. Note the schema structure — list all field names and their value types. ## Step 2: Analyze Documents From the retrieved documents: - Identify the most common field values (top 3 values for any categorical fields) - Find any documents with missing or null fields - Calculate average numeric values if any numeric fields exist ## Step 3: Report Produce a data summary: - Collections found in the database - Schema of the queried collection - Key statistics from the 10 documents - Documents with data quality issues (nulls, missing fields) - Suggested indexes based on the field patterns observed
Create agent.yaml in the same directory to wire the skill to your connector:
name: NoSQL Data Agent description: Read and write MongoDB documents connectors: - connection_name: My MongoDB connection_type: mongodb skills: - path: ./ trigger_type: auto
Create oe-config.json in the same directory:
{
"llm": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "YOUR_OPENAI_API_KEY"
},
"server": {
"enabled": false,
"port": 3333,
"apiKey": "your-secret-api-key"
},
"connectors": [
{
"connection_name": "My MongoDB",
"connection_type": "mongodb",
"uri": "mongodb://localhost:27017",
"database": "mydb"
}
]
}Replace the URI with your MongoDB connection string. For MongoDB Atlas use the connection string from your cluster's Connect dialog. The agent works with MongoDB 4.x and later, including Atlas free tier clusters.
From the parent folder containing your skill directory:
| Method | Best for | Download | |
|---|---|---|---|
| 1 | npx recommended | No install needed — always runs the latest version | — |
| 2 | Windows .exe | Download once, run offline on Windows | ⊞ Windows (.exe) |
| 3 | macOS binary | Download once, run offline on Mac | macOS |
| 4 | Linux binary | Server deployments, cron jobs, Docker | 🐧 Linux |
| 5 | API Server integration | Call from any app, webhook, or automation pipeline | 📮 Postman Collection |
npx -y @openenthrium/oe-runtime@latest ./nosql-cache
oe-runtime-win.exe ./nosql-cache
chmod +x oe-runtime-macos
./oe-runtime-macos ./nosql-cache
First run blocked? System Settings → Privacy & Security → Allow Anyway.
chmod +x oe-runtime-linux
./oe-runtime-linux ./nosql-cache
Add a "server" block to oe-config.json, then start with --serve:
{
"llm": { ... },
"server": { "enabled": true, "port": 3333, "apiKey": "your-secret-key" },
"connectors": [ ... ]
}
npx -y @openenthrium/oe-runtime@latest --serve --config oe-config.json
Run with inline YAML:
curl -X POST http://localhost:3333/run \
-H "Content-Type: application/json" \
-H "X-API-Key: your-secret-key" \
-d '{"yaml": "...", "params": {}}'
Or run from a file on the server:
curl -X POST http://localhost:3333/run-file \
-H "Content-Type: application/json" \
-H "X-API-Key: your-secret-key" \
-d '{"file": "/path/to/agent.yaml", "params": {}}'
Download OE Runtime and run any AI agent locally or as a server — no cloud required.
Get OE Runtime →