Outlook会议安排器
STDIO使用Graph API管理Outlook会议日程
使用Graph API管理Outlook会议日程
MCP Server for scheduling meetings in Microsoft Outlook using Microsoft Graph API.
This MCP server allows you to create calendar events, create events with attendees (including finding their email addresses). It integrates seamlessly with other MCP servers, such as the GitHub MCP server, to enhance your workflow.
find-person
name
(string)create-event
subject
(string): Subject of the calendar eventbody
(string): Content/body of the calendar eventstart
(optional): ISO format datetime (e.g., 2025-04-20T12:00:00)end
(optional): ISO format datetime (e.g., 2025-04-20T13:00:00)timeZone
(optional): Time zone for the event (default: "GMT Standard Time")create-event-with-attendees
subject
(string): Subject of the calendar eventbody
(string): Content/body of the calendar eventstart
(optional): ISO format datetime (e.g., 2025-04-20T12:00:00)end
(optional): ISO format datetime (e.g., 2025-04-20T13:00:00)timeZone
(optional): Time zone for the event (default: "GMT Standard Time")location
(optional): Location of the eventattendees
: Array of { email, name (optional), type (optional) }get-event
eventId
(string): ID of the event to retrievelist-events
subject
(optional): Filter events by subject containing this textstartDate
(optional): Start date in ISO format (e.g., 2025-04-20T00:00:00) to filter events fromendDate
(optional): End date in ISO format (e.g., 2025-04-20T23:59:59) to filter events untilmaxResults
(optional): Maximum number of events to returndelete-event
eventId
(string): ID of the event to deleteupdate-event
eventId
(string): ID of the event to updatesubject
(optional): New subject for the calendar eventbody
(optional): New content/body for the calendar eventstart
(optional): New start time in ISO format (e.g., 2025-04-20T12:00:00)end
(optional): New end time in ISO format (e.g., 2025-04-20T13:00:00)timeZone
(optional): New time zone for the eventlocation
(optional): New location for the eventattendees
(optional): Array of { email, name (optional), type (optional) }update-event-attendees
eventId
(string): ID of the event to updateaddAttendees
(optional): Array of attendees to add: { email, name (optional), type (optional) }removeAttendees
(optional): Array of email addresses to remove from the eventYou can run the MCP server directly with Node.js from your local build:
git clone https://github.com/anoopt/outlook-meetings-scheduler-mcp-server.git cd outlook-meetings-scheduler-mcp-server npm install npm run build
Ctrl + Shift + P
and typing Preferences: Open User Settings (JSON)
.Optionally, you can add it to a file called .vscode/mcp.json
in your workspace. This will allow you to share the configuration with others:
{ "mcpServers": { "outlook-meetings-scheduler": { "command": "node", "args": [ "/path/to/outlook-meetings-scheduler-mcp-server/build/index.js" ], "env": { "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TENANT_ID": "<YOUR_TENANT_ID>", "USER_EMAIL": "<YOUR_EMAIL>" } } } }
Replace /path/to/outlook-meetings-scheduler-mcp-server
with the absolute path to your cloned repository.
Run the MCP server using Docker locally. Build the Docker image with the following command:
docker build -t mcp/outlook-meetings-scheduler .
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P
and typing Preferences: Open User Settings (JSON)
.
Optionally, you can add it to a file called .vscode/mcp.json
in your workspace. This will allow you to share the configuration with others.
{ "inputs": [ { "type": "promptString", "id": "client_secret", "description": "Enter the client secret", "password": true } ], "servers": { "outlook-meetings-scheduler": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "CLIENT_ID", "-e", "CLIENT_SECRET", "-e", "TENANT_ID", "-e", "USER_EMAIL", "mcp/outlook-meetings-scheduler" ], "env": { "USER_EMAIL": "<YOUR_EMAIL>", "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "${input:client_secret}", "TENANT_ID": "<YOUR_TENANT_ID>" } } } }
{ "mcpServers": { "outlook-meetings-scheduler": { "command": "npx", "args": [ "-y", "outlook-meetings-scheduler" ], "env": { "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TENANT_ID": "<YOUR_TENANT_ID>", "USER_EMAIL": "<YOUR_EMAIL>" } } } }
docker build -t mcp/outlook-meetings-scheduler .
claude_desktop_config.json
:{ "mcpServers": { "outlook-meetings-scheduler": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "CLIENT_ID", "-e", "CLIENT_SECRET", "-e", "TENANT_ID", "-e", "USER_EMAIL", "mcp/outlook-meetings-scheduler" ], "env": { "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TENANT_ID": "<YOUR_TENANT_ID>", "USER_EMAIL": "<YOUR_EMAIL>" } } } }
{ "mcpServers": { "outlook-meetings-scheduler": { "command": "npx", "args": [ "-y", "outlook-meetings-scheduler" ], "env": { "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TENANT_ID": "<YOUR_TENANT_ID>", "USER_EMAIL": "<YOUR_EMAIL>" } } } }
You can combine this MCP server with other MCP servers like the GitHub MCP server for powerful workflows.
Create an issue in the organization/repo repository titled "Fix pagination bug in user dashboard" with the description "Users report seeing duplicate entries when navigating between pages." Then schedule a calendar reminder for me to review this issue tomorrow at 3 PM.
This will:
Find the open PR about the authentication feature in the organization/app-backend repository and schedule a code review meeting with the contributors for tomorrow morning.
This will:
To use both GitHub and Outlook MCP servers together :
{ "mcpServers": { "outlook-meetings-scheduler": { "command": "npx", "args": [ "-y", "outlook-meetings-scheduler" ], "env": { "CLIENT_ID": "<YOUR_CLIENT_ID>", "CLIENT_SECRET": "<YOUR_CLIENT_SECRET>", "TENANT_ID": "<YOUR_TENANT_ID>", "USER_EMAIL": "<YOUR_EMAIL>" } }, "github": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/github-mcp" ], "env": { "GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>" } } } }
I need to schedule a meeting with John Smith. Can you find his email address?
Schedule a meeting titled "Weekly Team Sync" for next Monday at 10 AM with the following agenda:
- Project updates
- Resource allocation
- Questions and concerns
Schedule a 1:1 meeting with Sarah for tomorrow at 3 PM.
This will find Sarah's email address and create a calendar event.
To find Sarah's email address, the MCP server will use the find-person
tool - which uses the Microsoft Graph API to find relevant people for USER_EMAIL
or searches for the name in the organization.
Create a meeting called "Project Kickoff" for tomorrow at 2 PM.
Add [email protected] and [email protected] as required attendees.
The agenda is:
1. Project overview
2. Timeline discussion
3. Role assignments
4. Next steps
# Install dependencies npm install # Build the project npm run build # Docker build docker build -t mcp/outlook-meetings-scheduler .
This MCP server is licensed under the ISC License. For more details, please see the LICENSE file in the project repository.
This MCP server is not affiliated with Microsoft or Microsoft Graph API. Use at your own risk. Ensure you comply with your organization's policies and guidelines when using this tool.