Claude Email Connector

Claude Email Connector

Enables Claude to send emails via Microsoft Graph, with preview and confirmation steps.

Category
Visit Server

README

Claude Email Connector (MCP Server)

A stateless remote MCP server that lets Claude send email from a Microsoft mailbox via Microsoft Graph /me/sendMail.

Microsoft Entra is the OAuth authorization server. When a user connects this connector in Claude, Claude runs OAuth against Entra and sends the resulting delegated Graph access token as a bearer token on every tool call. This server stores no tokens and has no refresh logic — it relays the bearer token straight to Graph.

Tools

  • preview_email — formats a draft for review. Sends nothing.
  • send_email — sends via the authenticated user's mailbox, but only if confirmed: true. Two separate tools by design (no auto-send).
  • get_email_count — total/unread count for a folder (inbox default; use all for the whole mailbox). Read-only.
  • list_recent_emails — most recent messages in a folder (subject, sender, date, read state, preview). Read-only.
  • search_emails — search the mailbox by keyword/sender. Read-only.

Required Graph permissions (delegated)

  • Mail.Sendpreview_email / send_email
  • Mail.Readget_email_count / list_recent_emails / search_emails

Add these under the Entra app registration → API permissions, and reconnect the connector in Claude so the new scopes are consented.

Endpoints

  • GET /.well-known/oauth-protected-resource — OAuth Protected Resource Metadata (RFC 9728). Points Claude at this server as the auth server.
  • GET /.well-known/oauth-authorization-server (and /openid-configuration) — OAuth Authorization Server Metadata (RFC 8414). Advertises the proxy endpoints.
  • GET /authorize / POST /tokenOAuth proxy to Microsoft Entra.
  • POST /mcp — MCP Streamable HTTP endpoint (stateless). Requires Authorization: Bearer <token>; returns 401 + WWW-Authenticate otherwise.

Why the OAuth proxy?

Claude (like all MCP clients) includes the RFC 8707 resource parameter in the OAuth authorize/token requests. Entra's v2.0 endpoint rejects resource outright (AADSTS901002 / AADSTS9010010). So this server advertises itself as the authorization server, strips the resource parameter, and forwards the requests to Entra. It remains stateless — /authorize is a 302 redirect and /token is a transparent form forward; no tokens or secrets are stored.

Run locally

npm install
# set PUBLIC_URL to your public HTTPS URL, then:
node server.js

Deploy (free tier)

  1. Push this repo to your host (Render / Railway / Fly.io / etc.).
  2. Set environment variables on the host:
    • PUBLIC_URL = the app's public HTTPS URL, e.g. https://your-app.onrender.com (no trailing slash).
    • PORT is usually injected by the host automatically; the server honors it.
  3. Start command: node server.js
  4. Verify https://<your-app>/.well-known/oauth-protected-resource returns raw JSON.

Connect in Claude

claude.ai → Settings → Connectors → Add custom connector:

  • URL: https://<your-app>/mcp
  • Advanced settings: paste your Entra Application (client) ID and client secret value. These live in Claude only — never in this server.

Security

Client ID/secret are never stored in this server or repo. .env is gitignored. The server only ever relays the per-request bearer token to Graph.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured