Read content from Microsoft OneNote notebooks, sections, or pages
Create new content in Microsoft OneNote (notebooks, sections, or pages)
The Microsoft OneNote MCP provides AI assistants with seamless access to your OneNote content. It enables reading from and writing to notebooks, sections, and pages, allowing AI models to retrieve information from your notes and create new content directly in OneNote. This integration leverages the Microsoft Graph API to provide a comprehensive set of tools for interacting with OneNote. It supports converting HTML content to text for better RAG processing and maintains a clean authentication flow using Microsoft's device code authentication.
The Microsoft OneNote MCP server enables AI assistants to interact with your OneNote notebooks, providing access to your notes and the ability to create new content. This integration is particularly useful for knowledge management, research, and productivity workflows.
Before setting up the OneNote MCP server, you'll need:
Clone the repository:
git clone https://github.com/rajvirtual/MCP-Servers.git
cd MCP-Servers/onenote
Install dependencies:
npm install
Create a .env.local
file with your Azure client ID:
CLIENT_ID=your-client-id-from-azure
Build and start the server:
npm run build && npm start
Clone the repository:
git clone https://github.com/rajvirtual/MCP-Servers.git
cd MCP-Servers/onenote
Create a data directory for persistence:
mkdir -p data
Build the Docker image:
docker build -t onenote-mcp-server .
Run the container:
docker run -d \
--name onenote-mcp-server \
-e CLIENT_ID=your-client-id \
-v $(pwd)/data:/app/dist \
-p 3000:3000 \
onenote-mcp-server
When you first run the server, it will initiate the Microsoft authentication flow:
device-code.txt
token-cache.json
for future usenpm run build && npm start
The Claude Desktop configuration file is typically located at:
~/Library/Application Support/Claude/claude_desktop_config.json
C:\Users\YourUsername\AppData\Roaming\Claude\claude_desktop_config.json
token-cache.json
to force re-authenticationIf you encounter persistent issues, check the server logs for more detailed error messages.