# Article Name 4 Ways to Find Your License Count in MongoDB # Article Summary Explore four practical methods to determine your MongoDB license count and gain clarity on database usage and compliance # Original HTML URL on Toriihq.com https://www.toriihq.com/articles/how-to-find-license-count-mongodb # Details Keeping track of your MongoDB license count can feel murky, especially when clusters grow, nodes shift, and users spin up new projects on a whim. This short guide walks you through four field-tested ways to pin down how many licenses are in play, so you can line up usage with the terms your organization agreed to. ## Use MongoDB's UI Use MongoDB’s web UI to check how many server licenses your team owns and how many are active. ### Sign in to Ops Manager or Cloud Manager - Enter the UI with your usual credentials. - Pick the organization whose license totals you want to review. ### Open the Admin menu - Find the gear icon near the top-right corner. - Click it and choose Admin from the drop-down. ### Go to Licensing - In the left sidebar, select Licensing (MongoDB’s docs sometimes label this License Keys). - The Licensing page loads and shows a quick summary. ### Read the license numbers - Licensed Hosts shows how many servers your key covers. - Hosts in Use tells you how many servers now count against that limit. - If usage creeps past the allowed total, the UI highlights the overage. ### See which hosts count (optional) - Tap Show Hosts. - A table appears with each host name, last contact time, and whether it counts toward the license. ### Export the list (optional) - Click Download CSV if you need a copy for audits or internal reports. ### Leave the page - Hit Home or Projects in the main menu when you’re finished. ## Use Torii Pulling license data straight from MongoDB can be a hassle. Torii [https://www.toriihq.com/] simplifies the job by showing how many seats you pay for. The SaaS Management Platform puts every subscription in one dashboard, giving finance and IT the same view. Follow these quick steps to check how many MongoDB licenses show up in your Torii workspace. ### 1. Sign up for Torii Reach out to Torii [https://www.toriihq.com/] and request a complimentary two-week proof-of-concept so you can test the platform with live data. ### 2. Connect your MongoDB account to Torii After your Torii workspace is active, link your MongoDB environment to it (assuming you already use MongoDB). You’ll find the step-by-step guide here: MongoDB integration instructions [https://support.toriihq.com/hc/en-us/articles/36168350036251-MongoDB-Integration]. ### 3. Search for MongoDB within Torii Use the search field at the top of the Torii dashboard to look up “MongoDB.” You’ll land on the dedicated MongoDB page, which displays license totals, spending, upcoming renewal dates, and other key details. ### Or, chat with Eko Quickly pull MongoDB details without leaving Torii by opening Torii’s AI companion, Eko [https://www.toriihq.com/eko]. Click the Eko icon in the lower-right corner of your dashboard, then type what you need about MongoDB and watch the data appear in the chat window. ## Use MongoDB's API This walkthrough hits the Admin API endpoint that returns license details and then grabs the used host count. ### 1. Gather your API keys - In Ops Manager or Cloud Manager, create a public key and private key that has the ADMIN role. - Keep both keys handy; you’ll add them to every request. ### 2. Build the HTTP Digest auth header MongoDB’s Admin API relies on HTTP Digest authentication, which most command-line tools like curl and HTTPie already understand out of the box. ### 3. Call the Licenses endpoint Hit the /admin/licenses path to retrieve license data; the example below shows a minimal curl request. The server returns JSON similar to the following payload: ### 4. Read the license count - totalHosts shows how many hosts your license allows. - usedHosts tells you how many hosts are now counted against the license. - Subtract the two if you need the remaining capacity. ### 5. Automate the check (optional) Schedule the curl command in cron or CI, pipe the JSON through jq, and alert when usedHosts approaches totalHosts. That’s everything you need to track MongoDB license usage without ever logging into the Ops Manager UI. ## Use Claude (via MCP) Claude, Anthropic’s conversational AI, can surface this data through the Model Context Protocol (MCP). To get a license report from Claude, follow these steps: ### 1. Set up Torii Connect your MongoDB workspace to Torii [https://www.toriihq.com/] using the setup steps described earlier. Then open Settings and create a new API key. ### 2. Configure MCP inside Claude For context, see the Torii MCP guide [https://www.npmjs.com/package/@toriihq/torii-mcp?activeTab=readme] and related blog post [https://www.toriihq.com/blog/introducing-model-context-protocol-in-torii]. Install the Claude Desktop app and add this snippet to claudedesktopconfig.json: Replace YOURAPIKEY with the key you generated in Torii. ### 3. Converse with Claude Launch Claude, connect to Torii, and start the chat. Ask for an audit that lists active licenses, total spend, and renewal dates. ## Torii for SaaS Management Wondering how the right SaaS Management approach could reshape daily operations across your organization? We’d love to show you. With Torii’s SaaS Management Platform, you can: - Uncover shadow IT: Our AI watches traffic around the clock and logs every unsanctioned app it sees. - Trim spending: Reclaim budget by canceling idle licenses and consolidating overlapping tools. - Automate joiner/mover/leaver workflows: Ditch manual checklists in onboarding and offboarding to reduce mistakes and save hours. - Never miss a renewal: Get timely notifications before contracts expire so you’re never caught off guard. Torii delivers the industry’s first end-to-end SaaS Management Platform, giving Finance, IT, and Security teams a single, reliable source of truth. Find out more at Torii [https://www.toriihq.com].