- Home
- MCP servers
- Microsoft Exchange
Microsoft Exchange
- java
7
GitHub Stars
java
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"cdatasoftware-microsoft-exchange-mcp-server-by-cdata": {
"command": "java",
"args": [
"-jar",
"/PATH/TO/CDataMCP-jar-with-dependencies.jar",
"/PATH/TO/Salesforce.prp"
]
}
}
}You have a read-only MCP server that lets you query live Microsoft Exchange data through the CData JDBC Driver. It exposes Exchange data via an MCP interface so you can ask natural-language questions and get live results without writing SQL.
How to use
Start your MCP client and connect to the Microsoft Exchange MCP server you configured. You can ask questions like how many open tickets you have, what calendar events are today, or how various Exchange tables relate to each other. The server exposes tools to list available tables, list columns for a given table, and run SQL queries against the Exchange data. Use these tools through your MCP client just as you would with any other MCP source.
How to install
Prerequisites you need on your host: Java Development Kit (JDK) and Apache Maven. You will also need to install the CData JDBC Driver for Microsoft Exchange to connect to Exchange data.
Step 1. Clone the MCP server repository.
git clone https://github.com/cdatasoftware/microsoft-exchange-mcp-server-by-cdata.git
cd microsoft-exchange-mcp-server-by-cdata
Step 2. Build the MCP server JAR.
mvn clean install
This creates the JAR file: CDataMCP-jar-with-dependencies.jar.
Step 3. Download and install the CData JDBC Driver for Microsoft Exchange.
Visit the CData driver download page and install the driver compatible with your OS.
Step 4. License the CData JDBC Driver.
java -jar cdata.jdbc.exchange.jar --license
Enter your name, email, and a TRIAL or license key when prompted.
Step 5. Configure your connection to the Exchange data source.
java -jar cdata.jdbc.exchange.jar
Follow the Connection String utility to set up and test the connection. If OAuth is used, authenticate in your browser. Copy the resulting connection string for later.
Step 6. Create a .prp file for your JDBC connection.
Prefix=exchange
ServerName=CDataExchange
ServerVersion=1.0
DriverPath=PATH\\TO\\cdata.jdbc.exchange.jar
DriverClass=cdata.jdbc.exchange.ExchangeDriver
JdbcUrl=jdbc:exchange:InitiateOAuth=GETANDREFRESH;
Tables=
Step 7. Run the MCP server using the generated .prp file.
java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/microsoft-exchange.prp
Additional notes
The server runs in stdio mode, so it can be used with clients on the same machine.
Available tools
exchange_get_tables
Retrieves a list of tables available in the data source. The output is CSV with column headers on the first line.
exchange_get_columns
Retrieves a list of columns for a specified table. The output is CSV with column headers on the first line.
exchange_run_query
Executes a SQL SELECT query against the Exchange data and returns results.