Skip to main content
Glama
kawaljain

nodejs-mcp-mongodb

by kawaljain

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:

  1. get_business_summary

    • Returns:

      • total users

      • active users

      • paid users

      • pending payments

      • new users (last 7 days)

  2. get_new_users

    • Input:

      • days (number)

    • Returns users created during the given period.

  3. get_pending_payments

    • Returns all customers with pending payments.

Related MCP server: jobs-mcp-server

Project Structure

  • src/index.ts - MCP server and tool handlers

  • src/config/env.ts - environment loading

  • src/db/mongo.ts - MongoDB connection helper

  • src/services/users.ts - MongoDB queries for tool responses

  • seed/seed.ts - sample MongoDB seed script

  • .env.example - required environment variables

Setup

  1. Install dependencies:

npm install
  1. Create your env file:

cp .env.example .env
  1. Update .env values:

MONGODB_URI=mongodb://localhost:27017
MONGODB_DB_NAME=mcp_business
  1. Seed sample data:

npm run seed
  1. Build the server:

npm run build
  1. Run the MCP server over stdio:

npm start

Development

Run directly with TypeScript:

npm run dev
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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