home / mcp / onenote mcp server
This read-only MCP Server allows you to connect to OneNote data from Claude Desktop through CData JDBC Drivers. For full CRUD support, check out the first managed MCP platform: CData Connect AI (https://www.cdata.com/ai/).
Configuration
View docs{
"mcpServers": {
"cdatasoftware-onenote-mcp-server-by-cdata": {
"command": "java",
"args": [
"-jar",
"CDataMCP-jar-with-dependencies.jar",
"PATH\\TO\\onenote.prp"
]
}
}
}You can run a local MCP server that exposes live OneNote data through a simple MCP interface. This lets you ask natural-language questions and receive up-to-date results from OneNote without writing SQL. The server is read-only and relies on the CData JDBC Driver to connect OneNote as relational models for MCP access.
You will run a local MCP server that communicates with a client on the same machine. Start the server, then configure your MCP client to connect to it. Once connected, you can ask questions like “What are today’s calendar events?” or “Show me open OneNote notebooks with recent edits,” and the client will retrieve data from OneNote in real time through the MCP interface. Use the built-in tools to query tables, inspect columns, and run read-only queries as needed. You do not need to write SQL to ask questions—natural language queries are supported via the MCP client.
Prerequisites: you need a Java Runtime Environment (JRE) compatible with running a JAR file. You also need to install the CData JDBC Driver for OneNote and prepare a .prp connection description as described in the setup steps.
# Step 1: Clone the MCP server repository
# (Use the exact path or navigate to your desired directory)
git clone https://github.com/cdatasoftware/onenote-mcp-server-by-cdata.git
cd onenote-mcp-server-by-cdata
# Step 2: Build the MCP server package
mvn clean install
# This creates the JAR: CDataMCP-jar-with-dependencies.jarStep 3: Install the CData JDBC Driver for OneNote and license it. You will typically place the driver JAR in a known location and license it with a command that registers your credentials.
# Example license command (adjust to your install path and OS)
java -jar cdata.jdbc.onenote.jar --licenseStep 4: Configure your JDBC connection using the driver utility, then save the connection details into a .prp file (example shown). The .prp file is used by the MCP server to connect to OneNote.
Prefix=onenote
ServerName=CDataOneNote
ServerVersion=1.0
DriverPath=PATH\\TO\\cdata.jdbc.onenote.jar
DriverClass=cdata.jdbc.onenote.OneNoteDriver
JdbcUrl=jdbc:onenote:InitiateOAuth=GETANDREFRESH;
Tables=Step 5: Create a Claude Desktop configuration block that points to the MCP server. The client will launch the MCP server JAR with the onenote.prp file when starting. Ensure you place the final configuration in the appropriate Claude or MCP client config location on your system.
{
"mcpServers": {
"onenote": {
"command": "PATH\\TO\\java.exe",
"args": [
"-jar",
"PATH\\TO\\CDataMCP-jar-with-dependencies.jar",
"PATH\\TO\\onenote.prp"
]
}
}
}Since this server provides read-only access to your OneNote data, it is important to protect the machine hosting the MCP server. Limit network exposure to trusted clients, and ensure your Java process runs with the minimal required permissions. Regularly update the CData JDBC Driver and the MCP server JAR to receive security and stability fixes.
If you need to revoke access or rotate credentials, update the .prp connection description and restart the MCP server so the new connection settings take effect.
If the MCP server does not appear in your MCP client, fully quit and restart the client, then retry launching the server. Verify that the .prp file contains a valid JDBC URL and that the CData JDBC Driver is licensed and accessible.
If data retrieval fails, double-check the DriverPath and DriverClass values in the .prp file, and confirm the OAuth flow completes if your data source requires it.
The MCP server exposes a set of tools that let you discover data structures and run read-only queries. Specifically:
Retrieves a list of tables available in the OneNote data source. The output is CSV with headers.
Retrieves a list of columns for a specified table. The output is CSV with headers.
Executes a SQL SELECT query against OneNote data via the MCP server.