Microsoft Graph (Outlook)

Programmatic access to Outlook/M365 mail, calendars, and contacts.

How MailKite fits

Graph reads Outlook mail you have. MailKite provisions addresses on your domain and exposes them over a hosted MCP.

See the full MailKite vs Microsoft Graph (Outlook) comparison

Receive email into Microsoft Graph (Outlook) via MailKite

A minimal, copy-paste starter. Swap in your own domain and API key.

webhook.ts
import { verifyWebhook } from "@mailkite/client";

// MailKite POSTs every inbound email at your domain as JSON.
// Point a route at this handler in the MailKite dashboard.
export default async function handler(req: Request) {
const raw = await req.text();
const sig = req.headers.get("x-mailkite-signature") ?? "";

// Reject anything not signed by your webhook secret
const ok = await verifyWebhook(sig, raw, process.env.MK_WEBHOOK_SECRET!);
if (!ok) return new Response("bad signature", { status: 401 });

const email = JSON.parse(raw);
// Route into Microsoft Graph (Outlook): open a ticket, create a task, store a record
await routeIntoName(email); // email.from · email.subject · email.text

return new Response(JSON.stringify({ ok: true }));
}
Read the inbound webhooks guide

Microsoft Graph is the unified API for Outlook and Microsoft 365, exposing mail, calendars, and contacts to applications and agents via OAuth. It's the enterprise path for apps that operate on existing Outlook mailboxes, with rich scope and consent controls. Like the Gmail API, it operates on mail you already have rather than provisioning new addresses.

Key features

Pricing model

Free within Azure AD quotas

Category

Agent & MCP email

Inboxes, SDKs, and MCP servers that give AI agents email.

Questions about Microsoft Graph (Outlook)

Microsoft Graph vs MailKite?

Graph operates on existing Outlook/M365 mailboxes via OAuth. MailKite provisions new addresses on your own domain and exposes them to agents over a hosted MCP server. See /alternatives/microsoft-graph.

Related

Similar tools

Try MailKite alongside Microsoft Graph (Outlook).

Point a domain, drop in a webhook URL, and send your first email in minutes. Unlimited domains, no credit card.