Marklogic MCP Server

The official MarkLogic Node.js client API.

Local serverstdio

What is the Marklogic MCP server?

The official MarkLogic Node.js client API. Exposed over MCP by the marklogic mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

The Progress® MarkLogic® Node Client API provides access to the MarkLogic database from Node.js applications.

  • Writing, reading, patching, and deleting documents in JSON, XML, text, or binary formats
  • Querying over documents including parsing string queries, extracting properties, and calculating facets
  • Projecting tuples (like table rows) out of documents
  • Single transactions and multi-statement transactions for database changes
  • Writing, reading, and deleting graphs and executing SPARQL queries over graphs
  • Extending the built-in services or evaluating or invoking your own JavaScript or XQuery on the server

Its toolset

Everything the assistant can do here goes through one of these:

  • Resources — The Resources tool exposed by this server

Adding it to your client

Installation goes through your MCP client rather than a global install: point it at marklogic on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

When to reach for it

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Marklogic's toolset — Resources — is a fair guide to whether it matches your workflow. It is maintained by priyathamtadikonda; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Marklogic's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the marklogic mcp server does with a few real requests.

Available tools

ToolWhat it does
ResourcesThe Resources tool exposed by this server.

How to install the Marklogic MCP server

{
  "mcpServers": {
    "marklogic": {
      "command": "npx",
      "args": ["-y", "marklogic"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Marklogic to Resources.

Frequently asked questions

It connects Marklogic to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Resources) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Marklogic directly.