Konect Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Konect Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
An MCP (Model Context Protocol) server that provides database query capabilities for the Drivio application. This server allows you to query MongoDB collections using the same models and schemas used in the main application.
Fully Working:
Tested Models: All 19 models are successfully loaded: AddOn, ApiKey, BlockedDate, Booking, Calendar, Conversation, Document, Favorite, Keystore, Message, Notification, PaymentMethod, PayoutMethod, Review, Role, SupportRequest, Transaction, User, Vehicle
The server supports querying the following models:
npm installcp env.example .env
# Edit .env and set your MONGODB_CONNECTION_STRINGnpm run buildnpm startOr run directly:
node build/index.jsThe server runs on stdio and communicates via the Model Context Protocol.
After building, test the server with a simple query:
cd /home/mrinal/Desktop/Drivio-Application/KONECT_MCP_Server
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_database","arguments":{"model":"User","query":{},"limit":1}}}' | \
node build/index.jsYou should see:
Connected to MongoDBModels loaded successfullyRegistered models: [ 'AddOn', 'ApiKey', 'BlockedDate', 'Booking', ... ]After running npm run build, check that the build directory was created:
ls -la build/You should see:
build/index.js (executable)build/loadModels.jsRun the server and check for startup messages:
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
node build/index.jsExpected output:
Connected to MongoDB
Models loaded successfully
Registered models: [
'AddOn', 'ApiKey',
'BlockedDate', 'Booking',
'Calendar', 'Conversation',
'Document', 'Favorite',
'Keystore', 'Message',
'Notification', 'PaymentMethod',
'PayoutMethod', 'Review',
'Role', 'SupportRequest',
'Transaction', 'User',
'Vehicle'
]
Konect Database MCP Server running on stdioNote: The server will wait for input on stdin. Press Ctrl+C to exit.
Verify all 19 models are loaded:
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
node build/index.js 2>&1 | grep "Registered models"You should see all 19 models listed.
Test a simple query using JSON-RPC:
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_database","arguments":{"model":"User","query":{},"limit":1}}}' | \
node build/index.js 2>&1 | grep -A 20 '"success"'Expected: JSON response with "success": true and query results.
Test various models to ensure they all work:
# Test User model
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_database","arguments":{"model":"User","query":{"status":"active"},"limit":2}}}' | \
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
node build/index.js 2>&1 | tail -5
# Test Vehicle model
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"query_database","arguments":{"model":"Vehicle","query":{"isActive":true},"limit":2}}}' | \
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
node build/index.js 2>&1 | tail -5Test advanced query features:
# Test with filter and sort
echo '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"query_database","arguments":{"model":"User","query":{"status":"active"},"sort":{"createdAt":-1},"limit":3}}}' | \
MONGODB_CONNECTION_STRING="your-connection-string" NODE_ENV=development SALT_ROUNDS=10 \
node build/index.js 2>&1 | grep -A 10 '"success"'Before testing queries, ensure:
Test MongoDB connection manually:
# For MongoDB Atlas
mongosh "mongodb+srv://user:[email protected]/database"
# For local MongoDB
mongosh "mongodb://localhost:27017/database"To use with an MCP client like Claude Desktop:
~/.config/Claude/claude_desktop_config.json):{
"mcpServers": {
"konect-database": {
"command": "/home/mrinal/.nvm/versions/node/v18.20.8/bin/node",
"args": [
"/home/mrinal/Desktop/Drivio-Application/KONECT_MCP_Server/build/index.js"
],
"env": {
"MONGODB_CONNECTION_STRING": "mongodb+srv://user:[email protected]/database",
"NODE_ENV": "development",
"SALT_ROUNDS": "10"
}
}
}
}Important:
node is in PATH)build/index.jsNODE_ENV and SALT_ROUNDS for model loadingquery_database tool should now be availableBuild Errors:
npm install to ensure all dependencies are installednpm list typescriptnode --version (should be >= 18.0.0)Runtime Errors:
MongoDB Connection Error:
mongosh --version or mongo --version.envmongosh "your-connection-string"Model Not Found Error:
drivio-web-service/database/mongoose/models directory existsdrivio-web-service/config.js exists (models need it for saltRound)NODE_ENV and SALT_ROUNDS environment variables are setModels Not Loading:
config.js from drivio-web-servicedrivio-web-service directory is at the correct relative path: ../../drivio-web-service from build/loadModels.jskeys/private.pem and keys/public.pem exist in drivio-web-service (config.js reads them)Query the database with MongoDB query syntax.
#### Parameters
#### Example Queries
Query active users:
{
"model": "User",
"query": {
"status": "active"
},
"limit": 10
}Query vehicles by category:
{
"model": "Vehicle",
"query": {
"category": "SUV",
"isActive": true,
"status": "active"
},
"sort": {
"createdAt": -1
},
"limit": 20
}Query bookings with date range:
{
"model": "Booking",
"query": {
"startDate": {
"$gte": "2024-01-01T00:00:00.000Z"
},
"status": "confirmed"
},
"populate": ["guest", "host", "vehicle"],
"sort": {
"startDate": 1
}
}Query with field projection:
{
"model": "User",
"query": {
"status": "active"
},
"projection": {
"name": 1,
"emails": 1,
"status": 1
},
"limit": 50
}Query with MongoDB operators:
{
"model": "Review",
"query": {
"rating": {
"$gte": 4
}
},
"sort": {
"rating": -1,
"createdAt": -1
}
}Query with regex:
{
"model": "Vehicle",
"query": {
"make": {
"$regex": "Toyota",
"$options": "i"
}
}
}The server returns a JSON object with:
The server handles various error cases:
All errors are returned in the MCP error format with appropriate error codes.
This server follows the same pattern as the weather MCP server, using the @modelcontextprotocol/sdk package for MCP protocol implementation.
MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.