io.github.ravendb/ravendb-mcp

السجل الرسمي أخرى

Read-only MCP diagnostics server for RavenDB.

ماذا يمكنك أن تفعل مع io.github.ravendb/ravendb-mcp؟

  • One-line install with npx, dnx, or a prebuilt binary.
  • 21 tools, one per subject area, each with parameters to select what you need (reduced from 74).
  • Version-aware RQL docs are served as rql:// resources; a failed query returns the parser error and where to look.
  • Read-only: no write, patch, or delete tools, and mutating queries are rejected.
  • Connection-string secrets (passwords, cloud keys, SAS tokens, AI-provider keys, certificates) are masked in the returned JSON.
  • Access is scoped to the client certificate's RavenDB permissions.
  • get_document_data and run_query return real cluster data into the agent's context — you choose which cluster to expose. See SECURITY.md.
  • Progressive disclosure: tools return an overview by default and drill into detail on request.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NUGET package RavenDB.Mcp
Claude Code
claude mcp add ravendb-mcp -e 'RAVENDB_URLS=<RAVENDB_URLS>' -e 'RAVENDB_CERTIFICATE_PATH=<RAVENDB_CERTIFICATE_PATH>' -e 'RAVENDB_CERTIFICATE_PASSWORD=<your ravendb_certificate_password>' -e 'RAVENDB_ARTIFACTS_PATH=<RAVENDB_ARTIFACTS_PATH>' -- dnx RavenDB.Mcp@1.0.4 --yes
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "ravendb-mcp": {
            "command": "dnx",
            "args": [
                "RavenDB.Mcp@1.0.4",
                "--yes"
            ],
            "env": {
                "RAVENDB_URLS": "<RAVENDB_URLS>",
                "RAVENDB_CERTIFICATE_PATH": "<RAVENDB_CERTIFICATE_PATH>",
                "RAVENDB_CERTIFICATE_PASSWORD": "<your ravendb_certificate_password>",
                "RAVENDB_ARTIFACTS_PATH": "<RAVENDB_ARTIFACTS_PATH>"
            }
        }
    }
}

متغيرات البيئة

  • RAVENDB_URLS إلزامي Comma-separated RavenDB node URLs of a single cluster, e.g. https://a.example:443,https://b.example:443
  • RAVENDB_CERTIFICATE_PATH Path to a client .pfx certificate for secured RavenDB. Leave empty for unsecured.
  • RAVENDB_CERTIFICATE_PASSWORD سري Password for the client .pfx certificate.
  • RAVENDB_ARTIFACTS_PATH Directory where exported artifacts (logs, packages, dumps) are written.
NPM package @ravendb/mcp
Claude Code
claude mcp add ravendb-mcp -e 'RAVENDB_URLS=<RAVENDB_URLS>' -e 'RAVENDB_CERTIFICATE_PATH=<RAVENDB_CERTIFICATE_PATH>' -e 'RAVENDB_CERTIFICATE_PASSWORD=<your ravendb_certificate_password>' -e 'RAVENDB_ARTIFACTS_PATH=<RAVENDB_ARTIFACTS_PATH>' -- npx -y @ravendb/mcp@1.0.4
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "ravendb-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@ravendb/mcp@1.0.4"
            ],
            "env": {
                "RAVENDB_URLS": "<RAVENDB_URLS>",
                "RAVENDB_CERTIFICATE_PATH": "<RAVENDB_CERTIFICATE_PATH>",
                "RAVENDB_CERTIFICATE_PASSWORD": "<your ravendb_certificate_password>",
                "RAVENDB_ARTIFACTS_PATH": "<RAVENDB_ARTIFACTS_PATH>"
            }
        }
    }
}

متغيرات البيئة

  • RAVENDB_URLS إلزامي Comma-separated RavenDB node URLs of a single cluster, e.g. https://a.example:443,https://b.example:443
  • RAVENDB_CERTIFICATE_PATH Path to a client .pfx certificate for secured RavenDB. Leave empty for unsecured.
  • RAVENDB_CERTIFICATE_PASSWORD سري Password for the client .pfx certificate.
  • RAVENDB_ARTIFACTS_PATH Directory where exported artifacts (logs, packages, dumps) are written.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. RavenDB MCP
  2. Quick start
  3. Features
  4. Configuration
  5. Tools
  6. Privacy
  7. License

RavenDB MCP

A local, read-only MCP diagnostics server for RavenDB. Point it at a cluster and your AI agent can inspect cluster, database, index, task, storage, and performance state, plus logs, support packages, and your data, across 21 read-only tools.

Quick start

Launch it with npx (Node.js), dnx (.NET SDK), or a prebuilt binary from Releases, then add it to your client. Set RAVENDB_URLS to your cluster; the examples use http://localhost:8080.

Claude Code

claude mcp add ravendb --scope user --env RAVENDB_URLS=http://localhost:8080 -- npx -y @ravendb/mcp

Or install the plugin, which prompts for your cluster URL:

/plugin marketplace add ravendb/ravendb-mcp
/plugin install ravendb-mcp@ravendb

Claude Desktop

Download ravendb-mcp-<version>.mcpb from Releases, then install it under Settings > Extensions > Advanced settings > "Install Extension…" (Anthropic's guide). It prompts for your cluster URL, so there is no config to edit and no Node or .NET needed. Config-file setup is in INSTALL.md.

Codex

Add to ~/.codex/config.toml:

[mcp_servers.ravendb]
command = "npx"
args = ["-y", "@ravendb/mcp"]
env = { RAVENDB_URLS = "http://localhost:8080" }

Cursor

Click the button (installs with http://localhost:8080; edit for another cluster), or add .cursor/mcp.json:

{
  "mcpServers": {
    "ravendb": {
      "command": "npx",
      "args": ["-y", "@ravendb/mcp"],
      "env": { "RAVENDB_URLS": "http://localhost:8080" }
    }
  }
}

Then ask the agent “list my RavenDB databases.” Any of these can use dnx RavenDB.Mcp --yes or a binary path in place of npx -y @ravendb/mcp. Secured (HTTPS) clusters, other OSes, and the full configuration reference are in INSTALL.md.

Features

Developer experience

  • One-line install with npx, dnx, or a prebuilt binary.
  • 21 tools, one per subject area, each with parameters to select what you need (reduced from 74).
  • Version-aware RQL docs are served as rql:// resources; a failed query returns the parser error and where to look.

Safety

  • Read-only: no write, patch, or delete tools, and mutating queries are rejected.
  • Connection-string secrets (passwords, cloud keys, SAS tokens, AI-provider keys, certificates) are masked in the returned JSON.
  • Access is scoped to the client certificate's RavenDB permissions.
  • get_document_data and run_query return real cluster data into the agent's context — you choose which cluster to expose. See SECURITY.md.

Context-window friendly

  • Progressive disclosure: tools return an overview by default and drill into detail on request.
  • Results are paged: run_query takes start and pageSize (up to 128 rows), and the list tools take pageSize.
  • Log exports and debug packages are written to an artifact file on disk; the tool returns its path and byte size, not the contents.
  • Query results omit per-document metadata unless you request it.

Runs anywhere

  • Distributed via npm, NuGet, GitHub Releases, and the MCP Registry.
  • Self-contained binaries for Windows, macOS, and Linux (x64 and arm64), with no runtime to install.
  • Run a separate instance per cluster for multi-cluster setups.

Configuration

One server instance targets one cluster. The only required setting is the URL; pass it (and the optional certificate / artifacts settings) as environment variables or a --config JSON file:

VariableRequiredPurpose
RAVENDB_URLSyesCluster node URL(s), comma-separated, the client fails over across them.
RAVENDB_CERTIFICATE_PATH / _PASSWORDnoClient .pfx for secured (HTTPS) clusters. Omit for unsecured.
RAVENDB_ARTIFACTS_PATHnoWhere exported files are written (defaults to a temp folder).

Full configuration reference, including secured clusters and multi-cluster setups, is in INSTALL.md.

Tools

21 read-only tools (snake_case). Most are facet tools: one per subject that takes selectors and returns only the sections you ask for.

  • Facets: get_cluster_overview, get_server_config, get_server_resources, get_network_details, get_database_stats, get_database_config, get_index, get_tasks, get_live_workload, inspect_storage, get_document_data, sample_live_feed, wait_for_completion, collect_debug_package, get_ai_agents
  • Singletons: list_databases, get_database_record, get_notifications, run_query, list_compare_exchange, export_server_logs

Large or binary output (logs, debug packages) is written to a file and returned as a reference.

Privacy

RavenDB MCP runs locally and sends no data to RavenDB or Anthropic: no telemetry, no analytics. It connects only to the cluster URL(s) you configure (and to npm/NuGet when you install via npx/dnx), returns results to your local agent, masks connection-string secrets, and writes exports only to a local folder you control. Details in PRIVACY.md; RavenDB's company policy is at ravendb.net.

License

MIT. See LICENSE. Building from source is covered in INSTALL.md.


mcp-name: io.github.ravendb/ravendb-mcp

الأسئلة الشائعة

ما هو io.github.ravendb/ravendb-mcp؟

Read-only MCP diagnostics server for RavenDB.

كيف أثبّت io.github.ravendb/ravendb-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add ravendb-mcp -e 'RAVENDB_URLS=<RAVENDB_URLS>' -e 'RAVENDB_CERTIFICATE_PATH=<RAVENDB_CERTIFICATE_PATH>' -e 'RAVENDB_CERTIFICATE_PASSWORD=<your ravendb_certificate_password>' -e 'RAVENDB_ARTIFACTS_PATH=<RAVENDB_ARTIFACTS_PATH>' -- dnx RavenDB.Mcp@1.0.4 --yes. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.ravendb/ravendb-mcp إلى مفتاح API؟

نعم. يتطلب RAVENDB_URLS, RAVENDB_CERTIFICATE_PASSWORD، وتضبطها في إعداداته.

هل io.github.ravendb/ravendb-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.ravendb/ravendb-mcp؟

ينشره ravendb. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.