nodejs-mcp-mongodb
Provides tools for querying MongoDB to retrieve business summaries, new users, and pending payments from a MongoDB database.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nodejs-mcp-mongodbShow me the business summary"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
nodejs-mcp-mongodb
Simple MCP (Model Context Protocol) server built with Node.js, TypeScript, the official MCP SDK, and MongoDB.
Features
This server provides three MCP tools:
get_business_summaryReturns:
total users
active users
paid users
pending payments
new users (last 7 days)
get_new_usersInput:
days(number)
Returns users created during the given period.
get_pending_paymentsReturns all customers with pending payments.
Related MCP server: jobs-mcp-server
Project Structure
src/index.ts- MCP server and tool handlerssrc/config/env.ts- environment loadingsrc/db/mongo.ts- MongoDB connection helpersrc/services/users.ts- MongoDB queries for tool responsesseed/seed.ts- sample MongoDB seed script.env.example- required environment variables
Setup
Install dependencies:
npm installCreate your env file:
cp .env.example .envUpdate
.envvalues:
MONGODB_URI=mongodb://localhost:27017
MONGODB_DB_NAME=mcp_businessSeed sample data:
npm run seedBuild the server:
npm run buildRun the MCP server over stdio:
npm startDevelopment
Run directly with TypeScript:
npm run devMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceFull featured MCP Server for MongoDB database analysis.Last updated150204MIT
- Flicense-qualityBmaintenanceMCP server that exposes a MongoDB healthcare jobs collection, enabling listing, searching, creating, updating, deleting jobs and getting summary counts.Last updated
- Alicense-qualityDmaintenanceA lightweight MCP server for MongoDB 3.6+ providing read, write, metadata, and management tools.Last updated361MIT
- FlicenseAqualityBmaintenanceMCP server for the WhatsMyBudget Analytics API, providing tools to query budget periods, categories, accounts, and summaries.Last updated26
Related MCP Connectors
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
MCP server for URL shortening and management
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kawaljain/nodejs-mcp-mongodb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server