Microsoft Graph MCP Server for Cloudflare Workers
Get started with Microsoft 365 in your AI application. Choose your preferred language below.
npm install primrose-mcp
Sign up and create an API key in your dashboard
Use listTools() to discover Microsoft 365 tools and callTool() to execute them
import { Primrose } from 'primrose-mcp';
// Initialize the client
const primrose = new Primrose({
apiKey: 'prm_xxxxx',
provider: 'anthropic' // or: openai, google, amazon, meta, mistral
});
// List available Microsoft 365 tools
const tools = await primrose.listTools({ mcpServer: 'microsoft' });
console.log(tools);
// Call a Microsoft 365 tool
const result = await primrose.callTool('microsoft_microsoft_list_my_planner_tasks', {
format: 'your-value'
});
console.log(result);This server uses API KEY authentication.
View Full Auth Guide