Provides a read-only MCP server that queries live LDAP data via the CData JDBC Driver for LDAP.
Configuration
View docs{
"mcpServers": {
"cdatasoftware-ldap-mcp-server-by-cdata": {
"command": "java",
"args": [
"-jar",
"/PATH/TO/CDataMCP-jar-with-dependencies.jar",
"/PATH/TO/ldap.prp"
]
}
}
}You can query LDAP data live through an MCP server that exposes LDAP data via the CData JDBC Driver. This read-only MCP server lets you ask natural language questions and retrieve live LDAP information without writing SQL. It wraps the CData JDBC Driver so your MCP client can read LDAP data directly.
Connect to the LDAP MCP server from your MCP client. Once configured, you can ask questions that retrieve live LDAP data, such as counts, listings, or joins across LDAP objects. Use the built‑in tools to discover available tables and columns, then run read queries to fetch the data you need. You do not need to write SQL unless you choose to for advanced filtering.
Prerequisites: Install Java Runtime Environment (JRE) 11 or newer and a Java development kit (JDK) if you plan to build from source. You will also need Maven to build the MCP server JAR.
1. Clone the project and navigate into it.
git clone https://github.com/cdatasoftware/ldap-mcp-server-by-cdata.git
cd ldap-mcp-server-by-cdata2. Build the MCP server JAR with dependencies.
mvn clean install3. Ensure you have the CData JDBC Driver for LDAP installed and licensed following the licensing steps in the setup flow. This MCP server relies on the JDBC driver to access LDAP data.
4. Prepare your LDAP JDBC connection properties in a .prp file (for example ldap.prp) using the required properties: Prefix, ServerName, ServerVersion, DriverPath, DriverClass, JdbcUrl, and Tables. You will also specify the LDAP JDBC connection string (JdbcUrl) obtained from the JDBC Driver’s connection utility.
5. Run the MCP server using the prepared .prp file.
java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/ldap.prpThe server runs in stdio mode, meaning it communicates with clients on the same machine. You configure the client to launch the MCP server JAR with the path to your ldap.prp file.
Retrieves a list of LDAP data sources or logical tables exposed by the MCP server. The output is formatted as CSV with column headers.
Retrieves the list of columns for a specified table, returning a CSV with a header row followed by column data.
Executes a SQL-like SELECT query against the LDAP-backed data source and returns matching rows.