Simple Outlook MCP Server
Enables sending, listing, searching, and reading Outlook emails through Microsoft Graph API with OAuth authentication.
README
Simple Outlook MCP Server
A clean, functional Model Context Protocol (MCP) server for Microsoft Outlook integration with Claude.
Features
- ✅ Send Emails - Send emails through your Outlook account
- ✅ List Emails - Retrieve emails from your inbox or other folders
- ✅ Search Emails - Search emails by criteria (sender, date, content)
- ✅ Read Emails - Get full email content by ID
- ✅ OAuth Authentication - Secure Microsoft Graph API authentication
- ✅ Simple Setup - Minimal configuration required
Prerequisites
- Node.js (v18 or higher)
- Microsoft Azure App Registration (for Graph API access)
Setup
1. Install Dependencies
cd /Users/ricardozhang/Desktop/AI_Agents/simple-outlook-mcp
npm install
2. Create Microsoft Azure App Registration
- Go to Azure Portal
- Navigate to Azure Active Directory > App registrations
- Click New registration
- Fill in:
- Name:
Claude Outlook MCP - Supported account types: Accounts in any organizational directory and personal Microsoft accounts
- Redirect URI: Web -
http://localhost:3000/auth/callback
- Name:
- Click Register
- Note down the Application (client) ID and Directory (tenant) ID
- Go to Certificates & secrets > New client secret
- Create a secret and note down the Value
- Go to API permissions > Add a permission > Microsoft Graph > Delegated permissions
- Add these permissions:
Mail.ReadWriteMail.Send
- Click Grant admin consent (if you're an admin)
3. Configure Environment Variables
cp .env.example .env
Edit .env with your Azure app details:
MICROSOFT_CLIENT_ID=your_client_id_here
MICROSOFT_CLIENT_SECRET=your_client_secret_here
MICROSOFT_TENANT_ID=your_tenant_id_here
4. Build the Project
npm run build
Usage
1. Start the MCP Server
npm start
2. Available Tools
authenticate_outlook
Start the OAuth flow to authenticate with Microsoft Graph API.
send_email
Send an email through Outlook.
- to: Recipient email address (required)
- subject: Email subject (required)
- body: Email body content (required)
- cc: CC recipients (optional)
- bcc: BCC recipients (optional)
list_emails
List recent emails from your inbox.
- limit: Number of emails to retrieve (default: 10)
- folder: Folder to search in (default: "inbox")
search_emails
Search emails by criteria.
- query: Search query string
- from: Filter by sender email
- date_from: Filter emails from this date (YYYY-MM-DD)
- date_to: Filter emails until this date (YYYY-MM-DD)
- limit: Number of emails to retrieve (default: 10)
read_email
Read a specific email by ID.
- email_id: Email message ID (required)
Integration with Claude Desktop
Add this server to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"simple-outlook-mcp": {
"command": "node",
"args": ["/Users/ricardozhang/Desktop/AI_Agents/simple-outlook-mcp/build/index.js"],
"env": {
"MICROSOFT_CLIENT_ID": "your_client_id",
"MICROSOFT_CLIENT_SECRET": "your_client_secret",
"MICROSOFT_TENANT_ID": "your_tenant_id"
}
}
}
}
Example Usage with Claude
-
Authenticate:
Please authenticate with Outlook -
Send an email:
Send an email to john@example.com with subject "Meeting Tomorrow" and body "Hi John, let's meet at 2 PM tomorrow." -
List recent emails:
Show me my last 5 emails -
Search emails:
Find emails from alice@example.com from the last week
Troubleshooting
Authentication Issues
- Ensure your Azure app has the correct permissions
- Check that the redirect URI matches exactly:
http://localhost:3000/auth/callback - Verify your client ID, secret, and tenant ID are correct
Build Issues
- Make sure you're using Node.js v18 or higher
- Run
npm installto ensure all dependencies are installed - Check that TypeScript compiles without errors:
npm run build
Permission Issues
- Ensure the Azure app has
Mail.ReadWriteandMail.Sendpermissions - Admin consent may be required for organizational accounts
Development
# Watch mode for development
npm run watch
# Build only
npm run build
# Start after build
npm start
License
MIT License - see LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。