Introduction
- Last Updated: December 3, 2026
- 3 minute read
- Documentation
MarkLogic Model Context Protocol (MCP) Server enables AI assistants to search, retrieve, and augment content from existing MarkLogic Server databases. Organizations that use AI assistants such as GitHub Copilot or Claude can integrate MarkLogic Server as a data source, so the AI can access and reason about organizational data during conversations and code generation tasks.
System overview
MarkLogic MCP Server operates as a bridge between AI assistants and MarkLogic Server databases to enable seamless integration of MarkLogic Server data into AI-assisted workflows. The system comprises three primary components that work in concert to deliver search, retrieval, and read-only SQL and SPARQL querying capabilities:
Your MCP client: An AI assistant such as GitHub Copilot or Claude. The client discovers and invokes tools through the Model Context Protocol (MCP), a standardized interface that exposes tool capabilities to AI systems. The client does not interact directly with MarkLogic Server; instead, it sends requests to the MarkLogic MCP Server.
MarkLogic MCP Server: A containerized service that handles communication between MCP clients and MarkLogic Server. MarkLogic MCP Server receives tool calls from an MCP client, translates them into MarkLogic Retrieval API (MRA) requests, forwards those requests to MarkLogic Server, and returns results to the client. MarkLogic MCP Server handles request routing, authentication token management, and response formatting but does not itself perform search, ranking, or data retrieval operations.
MarkLogic Retrieval API (MRA): A set of REST endpoints deployed within MarkLogic Server that performs the actual search, filtering, retrieval, and augmentation of data. MarkLogic Retrieval API operates on existing MarkLogic Server databases and indexes, making use of MarkLogic Server's native search, vector, and relational capabilities. MarkLogic Retrieval API is installed into a MarkLogic REST app server.
Requests flow through the system like this:
When an AI assistant receives a query from a user, it invokes a tool through the MCP protocol.
MarkLogic MCP Server receives this request, authenticates it, and forwards it to MarkLogic Retrieval API.
MarkLogic Retrieval API processes the request using MarkLogic Server search infrastructure, applies filters and constraints, and returns results in a standardized format.
MarkLogic MCP Server reformats these results and returns them to the MCP client, which uses the data to augment its response to the user.
For details on request flow and system boundaries, see Architecture. For details on request validation and security, see Security model.
Guide overview
This guide explains how MarkLogic MCP Server works and provides instructions for installing and configuring the system:
Quick start: For users who are ready to deploy immediately, this section provides a step-by-step walkthrough covering the installation of MarkLogic Retrieval API, configuration of MarkLogic MCP Server, and initial verification. This section is intended for environments with existing MarkLogic Server deployments and assumes basic familiarity with MarkLogic Server and Docker.
Concepts: For users seeking to understand the system architecture before deployment, this section provides detailed explanations of how MarkLogic MCP Server and MarkLogic Retrieval API are designed, how they interact with MarkLogic Server, and how they expose capabilities to AI assistants.
Operations: For users who have initially deployed, this section provides task-specific guidance for configuring MCP clients and hardening the system for production.
Troubleshoot MarkLogic MCP Server: For users encountering issues with MarkLogic MCP Server, this section provides troubleshooting strategies.
Reference: For users who need comprehensive technical details, this section provides these details for MarkLogic Retrieval API endpoints, MarkLogic MCP Server configuration schema, and runtime environment variables.
Support
GitHub Issues lists any current MarkLogic MCP Server issues.
Contributions
CONTRIBUTING.md details how to contribute to the MarkLogic MCP Server project.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.