dyanmics365_get_tablesLABSCO SUMMARY
Read-only by construction.
Three tools and no write path is the whole design: the model discovers tables, reads columns and runs SELECTs, so a badly framed question produces a wrong answer rather than a changed record. Two things decide whether it fits. The CData JDBC driver is a separate licensed product, with a trial key to start on. And the assistant can query every table the connection can see — the Tables field in the connection profile does not narrow that, so limit the connection or the account it signs in with.
What it is
A read-only MCP server built on CData's JDBC Driver for Dynamics 365. The driver exposes Dynamics 365 as relational tables; the server puts three tools over it, so a client can discover what tables exist, read a table's columns, and run a SELECT — without anyone writing SQL by hand.
What you get
- The tables the driver exposes for Dynamics 365, returned as CSV with a header row —
dyanmics365_get_tables - The columns of one of those tables, also as CSV, so a query can be composed against real field names —
dyanmics365_get_columns - A SQL SELECT executed against live Dynamics 365 data —
dyanmics365_run_query - Tool names that carry the prefix you set in the connection profile — the sample uses
Prefix=dyanmics365— so several CData servers can run side by side without colliding - A
Tablessetting that only picks which tables also get a ready-made description (blank means none); it does not limit what the tools can list or query, so limit the connection or the account it signs in with
Requirements
Java and Maven to build — mvn clean install produces CDataMCP-jar-with-dependencies.jar. The CData JDBC Driver for Dynamics 365 is a separate download and needs licensing: run java -jar cdata.jdbc.dyanmics365.jar --license and enter a name, an email and either TRIAL or a licence key. Connection settings go in a .prp file carrying Prefix, ServerName (the sample uses CDataDyanmics365), ServerVersion, DriverPath, DriverClass (cdata.jdbc.dyanmics365.Dyanmics365Driver), the JdbcUrl produced by the driver's connection-string utility, and the optional Tables list. The client then launches java -jar CDataMCP-jar-with-dependencies.jar <YOUR_PRP_FILE>.prp. Transport is stdio, so the server has to run on the same machine as the client. If the data source authenticates over OAuth, you approve it in a browser while building the connection string.
Setup effort
Build from source — git clone https://github.com/cdatasoftware/dynamics-365-mcp-server-by-cdata.git
USE CASES
Asking about the sales pipeline in plain language
Accounts, contacts, leads and opportunities arrive as tables, so a pipeline question becomes one SELECT.
Reporting across Dynamics entities without an export
Join related records in a single query instead of pulling several views and reconciling them by hand.
Seeing which entities and fields are exposed
List the tables the driver models and read one table's columns before designing a report.
3 tools
Listed in project docs. Your client may show a different list.
dyanmics365_get_columnsdyanmics365_run_queryBEFORE YOU INSTALL
What to know first
Tools you get
3 tools named in the project's documentation. Tool names carry a prefix from your config, such as {servername}_run_query, and the server is read-only despite a write claim. Driver identifiers are spelled dyanmics365; correcting them to dynamics365 stops it starting.
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
You clone and build this one yourself.
Server setup
git clone https://github.com/cdatasoftware/dynamics-365-mcp-server-by-cdata.git
cd dynamics-365-mcp-server-by-cdata
mvn clean installDownload and install the CData JDBC Driver for Dynamics 365 from https://www.cdata.com/drivers/dynamics365/download/jdbc
License the driver: in the driver's lib folder run java -jar cdata.jdbc.dyanmics365.jar --license, then enter name, email and "TRIAL" (or your license key)
Run java -jar cdata.jdbc.dyanmics365.jar to open the Connection String utility, test the connection and copy the connection string
Create a .prp file with Prefix / ServerName / ServerVersion / DriverPath / DriverClass=cdata.jdbc.dyanmics365.Dyanmics365Driver / JdbcUrl / Tables
Tables only picks which tables also get a ready-made description for your assistant, and empty means none; the server can still list and query every table your connection string reaches, so to keep data out of reach, limit that connection or the account it signs in with.
Add the mcpServers entry below to claude_desktop_config.json and restart the client
MCP Clients
Claude Desktop — macOS/Linux
{
"mcpServers": {
"dynamics-365": {
"command": "<YOUR_PATH_TO_JAVA>",
"args": [
"-jar",
"<YOUR_PATH_TO_CDATA_MCP_JAR_WITH>",
"<YOUR_PATH_TO_DYNAMICS_365>"
]
}
}
}