Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Paste your error, question, or slow query. Get an answer grounded in the real MongoDB docs.
Jump to setup instructionsFetched from the repository for this visit.
Paste your error, question, or slow query. Get an answer grounded in the real MongoDB docs.
⚠️ Unofficial & community-run. This project is not affiliated with, endorsed by, or sponsored by MongoDB, Inc. "MongoDB" is a registered trademark of MongoDB, Inc. See Disclaimer.
mongodb.help is an open-source, chat-based support tool for MongoDB developers. Instead of digging through docs, pasting your error into a generic chatbot, or waiting on a forum, you drop your problem into one box and get a calm, cited, conversation-aware answer grounded in the official MongoDB Knowledge Service.
It is also a working example of a modern multi-service monorepo: a FastAPI backend, two Next.js apps, OAuth, a credit/wallet system designed to be "sell-ready from day one" without a rewrite, and a deploy story built around GitHub Actions + GHCR.
Every MongoDB developer has stared at an error like Transaction numbers are only allowed on a replica set member and lost 30 minutes to search results.
mongodb.help compresses that loop: paste, get a grounded answer with a fix
and a citation, move on. It's a focused utility -- not a chatbot demo, not a
MongoDB competitor -- and it's open source so the community can shape it.
┌──────────────────────────────────────────┐
│ nginx │
│ Host routing: mongodb.help / leads.* │
└────────────┬─────────────────┬───────────┘
│ │
┌──────────────────▼─┐ ┌─────────▼──────────────┐
│ Frontend (Next.js) │ │ Leads Dashboard (Next) │
│ Chat UI, tickets, │ │ Admin view of leads & │
│ 7 locales, OAuth │ │ tickets, single-pwd │
└──────────┬──────────┘ └────────────┬───────────┘
│ │
└──────────┬───────────────────┘
▼
┌────────────────────────────────────┐
│ Backend (FastAPI, Python) │
│ Chat pipeline, limits, wallets, │
│ tickets, admin/leads APIs │
└───────┬───────────────┬────────────┘
│ │
▼ ▼
┌────────────────────┐ ┌───────────────────────┐
│ MongoDB 8 (Atlas)│ │ MongoDB Knowledge Svc │
│ users, wallets, │ │ (RAG over real docs) │
│ chats, tickets … │ │ │
└────────────────────┘ └───────────────────────┘
| Service | Stack | Port (dev) | Source |
|---|---|---|---|
backend | Python 3 · FastAPI · motor | :8888 | backend/ |
frontend | Next.js 16 · React 19 · next-intl | :3333 | frontend/ |
leads-dashboard | Next.js · single-password admin auth | :3434 | leads-dashboard/ |
mongo | MongoDB 8.3 (self-hosted or Atlas) | :27018 | docker-compose.yml |
cloudflared | Cloudflare Tunnel connector (prod only) | — | host-level (shared) |
You need Docker + Docker Compose. That's it.
git clone https://github.com/ozanonurtek/mongodb.help.git
cd mongodb-help
cp .env.example .env # then edit secrets (see below)
docker compose up --build
Open:
ADMIN_PASSWORD, defaults to admin)The backend port and Mongo port are bound to
127.0.0.1only. The backend trustsX-Auth-User-Idonly when accompanied by a validX-Gateway-SigHMAC (signed withGATEWAY_HMAC_SECRET, shared with the frontend gateway), so even direct backend access can't forge a user identity without the secret. Admin endpoints (/api/admin/*) verify a signedX-Admin-Tokenseparately. SeeSECURITY.md.
# Backend
cd backend && pip install -r requirements.txt
uvicorn app.main:app --reload --port 8888
# Frontend
cd frontend && npm install && npm run dev # http://localhost:3333
# Leads dashboard
cd leads-dashboard && npm install && npm run dev # http://localhost:3434
Copy .env.example to .env and fill in:
| Variable | Purpose | Required? |
|---|---|---|
MONGODB_URI | MongoDB connection string | Yes (auto-set in Compose) |
AUTH_GITHUB_ID / AUTH_GITHUB_SECRET | GitHub OAuth app creds | For OAuth login |
AUTH_GOOGLE_ID / AUTH_GOOGLE_SECRET | Google OAuth app creds | For OAuth login |
AUTH_SECRET | NextAuth JWT signing secret | Yes (dev default is insecure) |
ADMIN_PASSWORD | Leads dashboard login password | Yes (dev default admin) |
ADMIN_SECRET | HMAC secret for admin session JWT | Yes (dev default is insecure) |
ANON_DAILY_CHATS, ANON_MESSAGES_PER_CHAT | Anonymous rate limits | Optional, has defaults |
SIGNEDUP_DAILY_CHATS, SIGNEDUP_MESSAGES_PER_CHAT | Signed-up rate limits | Optional, has defaults |
KS_BASE_URL | Override MongoDB Knowledge Service endpoint | Optional |
Never commit .env. The repo's .gitignore already excludes it.
| Tier | Daily chats | Messages / chat |
|---|---|---|
| Anonymous | ANON_DAILY_CHATS (default 1) | ANON_MESSAGES_PER_CHAT (5) |
| Signed-up | SIGNEDUP_DAILY_CHATS (10) | SIGNEDUP_MESSAGES_PER_CHAT (50) |
Anonymous users who hit the limit see a sign-up prompt (lead capture).
Signed-up users get a larger quota and can open support tickets. Limits are
env-configurable and enforced in backend/app/main.py.
End-to-end tests use Playwright:
cd frontend
npm install
npx playwright install chromium
npm run test:e2e
Type-check:
cd frontend && npm run lint # tsc --noEmit
cd leads-dashboard && npm run lint
Production runs a single-host docker compose project; images are built by
GitHub Actions and pushed to GHCR (multi-arch: amd64 + arm64). Public traffic
arrives through a shared Cloudflare Tunnel connector — no port is published on
the host.
# On the server (once)
sudo mkdir -p /opt/mongodbhelp/deploy/prod
cd /opt/mongodbhelp/deploy/prod
sudo cp .env.example .env # then fill in real values
sudo docker compose pull
sudo docker compose up -d --wait
Build via Repo → Actions → Build → Run workflow (pushes :latest + :<sha>
to GHCR), then Repo → Actions → Deploy → Run workflow (pulls the tag and
recreates the stack on the server).
Full guide: deploy/prod/README.md. The old Swarm
setup is archived in deploy/swarm/ for reference.
Contributions are welcome and appreciated -- this is a community project by design. See CONTRIBUTING.md for the full guide.
The short version:
main (see branching model): feat/…, fix/…, docs/…, chore/….docker compose up --build.main and fill in the template.Good first issues are labeled good first issue.
deploy/prod/README.md -- Production deploy guide (single-host Compose + Cloudflare Tunnel).deploy/swarm/README.md -- Legacy Swarm setup (archived).Found a security issue? Please do not open a public issue. See
SECURITY.md for responsible disclosure.
"MongoDB" is a registered trademark of MongoDB, Inc. This project is unofficial, community-run, and not affiliated with, endorsed by, or sponsored by MongoDB, Inc. The project deliberately avoids MongoDB's logo, leaf mark, and brand colors. Nothing in this repository should be read as an endorsement by MongoDB, Inc.
The Apache 2.0 license under which this project is distributed does not grant any right to use the "MongoDB" trade name or trademark except as required to describe the origin of the work.
Copyright 2025 Ozan Onur Tek and contributors.
Licensed under the Apache License, Version 2.0. See LICENSE
for the full text. By contributing, you agree your contributions will be
licensed under the same terms.
GitHub checked 15h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.