![]() |
VOOZH | about |
dotnet add package Tharga.MongoDB.Mcp --version 2.11.0
NuGet\Install-Package Tharga.MongoDB.Mcp -Version 2.11.0
<PackageReference Include="Tharga.MongoDB.Mcp" Version="2.11.0" />
<PackageVersion Include="Tharga.MongoDB.Mcp" Version="2.11.0" />Directory.Packages.props
<PackageReference Include="Tharga.MongoDB.Mcp" />Project file
paket add Tharga.MongoDB.Mcp --version 2.11.0
#r "nuget: Tharga.MongoDB.Mcp, 2.11.0"
#:package Tharga.MongoDB.Mcp@2.11.0
#addin nuget:?package=Tharga.MongoDB.Mcp&version=2.11.0Install as a Cake Addin
#tool nuget:?package=Tharga.MongoDB.Mcp&version=2.11.0Install as a Cake Tool
Exposes Tharga.MongoDB monitoring data and admin actions over MCP (Model Context Protocol). Plugs into Tharga.Mcp so that Claude, Cursor, and other MCP clients can inspect collections, diagnose slow queries, rebuild indexes, and (optionally) read or modify documents — without SSH'ing to a prod box for mongosh.
dotnet add package Tharga.MongoDB.Mcp
builder.Services.AddThargaMcp(mcp => mcp.AddMongoDB());
app.UseThargaMcp();
By default only metadata is exposed. Opt in to data tools explicitly:
builder.Services.AddThargaMcp(mcp => mcp.AddMongoDB(o =>
{
o.DataAccess = DataAccessLevel.DataRead; // adds get_document, list_documents, find_duplicates, explain
// o.DataAccess = DataAccessLevel.DataReadWrite; // also adds clean
}));
The provider is registered on the System MCP scope, so it only surfaces to system-level callers (e.g. an admin API key) — not to per-team users.
Resources
mongodb://collections — every registered collection with status, indexes, document countmongodb://monitoring — recent calls, slow queries, latencymongodb://clients — connected MongoDB driver clientsTools (Metadata level — default)
mongodb.touch — initialise a collection (assure indexes, etc.)mongodb.rebuild_index — drop & recreate a named indexmongodb.drop_index, mongodb.reset_cache, mongodb.clear_call_history, mongodb.compare_schemaTools (DataRead)
mongodb.get_document — raw BSON-as-JSON for a single document by id (auto-detects ObjectId / Guid / string)mongodb.list_documents — paged listing with optional filter and sortmongodb.find_duplicates, mongodb.explainTools (DataReadWrite)
mongodb.clean — apply collection cleanersWhen you set MongoDbMcpOptions.Atlas to a MongoDbApiAccess (Public/Private API key + Group/Project ID), the package additionally registers read-only MongoDB Atlas Administration tools on the System scope:
builder.Services.AddThargaMcp(mcp => mcp.AddMongoDB(o =>
{
o.Atlas = new MongoDbApiAccess
{
PublicKey = "<atlas-public-key>",
PrivateKey = "<atlas-private-key>",
GroupId = "<atlas-project-id>",
};
}));
| Tool | Purpose |
|---|---|
atlas.list_clusters |
Clusters in the configured Atlas project — name, type, state, MongoDB version. |
atlas.get_performance_advisor_suggestions |
Atlas Performance Advisor's suggested-index list for a named cluster (the same data the Atlas UI surfaces). Takes clusterName. |
atlas.get_open_alerts |
Currently-firing Atlas alerts in the project. |
Atlas tools are gated by the same DataAccessLevel.Metadata minimum as the rest of the package. Leaving Atlas unset keeps the surface entirely opt-in.
Full docs and configuration reference: github.com/Tharga/MongoDB.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.11.0 | 101 | 6/11/2026 | |
| 2.10.15 | 96 | 6/10/2026 | |
| 2.10.14 | 100 | 6/6/2026 | |
| 2.10.13 | 110 | 5/31/2026 | |
| 2.10.12 | 136 | 5/18/2026 | |
| 2.10.11 | 99 | 5/12/2026 | |
| 2.10.10 | 115 | 5/10/2026 | |
| 2.10.9 | 105 | 5/5/2026 | |
| 2.10.8 | 99 | 5/5/2026 | 2.10.8 is deprecated because it has critical bugs. |
| 2.10.7 | 100 | 5/5/2026 | 2.10.7 is deprecated because it has critical bugs. |
| 2.10.6 | 106 | 5/3/2026 | |
| 2.10.5 | 108 | 4/29/2026 | |
| 2.10.4 | 108 | 4/20/2026 |