Outlook MCP Server

Outlook MCP Server

MCP server that uses Microsoft Entra OAuth 2.0 On-Behalf-Of flow to access Microsoft Graph for Outlook data, enabling email, calendar, and contacts interactions via MCP tools.

Category
访问服务器

README

Outlook MCP Server

This server uses Microsoft Entra's OAuth 2.0 On-Behalf-Of flow. The client application sends an access token issued for this MCP API; the server validates that token and exchanges it for a delegated Microsoft Graph access token.

Entra application contract

  • Client application ID: 9b544eca-bd87-4849-b7fb-e96c944cdca8
  • MCP/API application ID: a7e86069-52f5-46b7-9a06-41d411c47410
  • Tenant ID: 46c98d88-e344-4ed4-8496-4ed7712e255d
  • MCP delegated scope: api://a7e86069-52f5-46b7-9a06-41d411c47410/access_as_user
  • OBO Graph scope: https://graph.microsoft.com/.default

The bearer token sent to /mcp must be an access token for the MCP API, not an ID token or a Graph access token. It must contain access_as_user in scp and identify the client application in azp (v2 token) or appid (v1 token).

The MCP application registration must have delegated Microsoft Graph permissions with admin consent and a confidential-client credential. In Kubernetes, create the credential separately; never add its value to this repository:

kubectl create secret generic outlook-mcp-entra `
  --namespace catalyst-prod `
  --from-literal=client-secret='<secret-value>'

For local development, copy .env.example to .env, provide ENTRA_CLIENT_SECRET, and export/load those variables before starting the server. The production manifest reads the secret from outlook-mcp-entra.

A production-ready, forkable template for building MCP (Model Context Protocol) servers that deploy to the Catalyst Kubernetes platform.

This template uses the same proven SDK patterns running in production today (math-mcp-server, hsdes-mcp-server). Copy this folder, fill in your tools, and deploy in under 30 minutes.

Generated servers conform to the Intel IT MCP engineering standard (IT-MCP-STD-001): standardized naming, MCP-native tools tagged with annotations + governance _meta, risk tiers (R0-R3) with runtime enforcement of R2/R3 writes, data-freshness tags, and server-side telemetry (structured JSON logs with a correlation id and gateway-validated caller). A registry.yaml manifest records the server for the registry. (The deployed reference servers math-mcp-server and hsdes-mcp-server predate this convention.)

Prerequisites

Before using this template, make sure you have:

  • Python 3.12+ installed locally
  • Podman (for container builds) — setup guide
  • kubectl configured with a Catalyst cluster kubeconfig
  • Harbor access to push images to amr-registry.caas.intel.com/catalyst/

See the full deployment guide for detailed prerequisites and access setup.

Quick Start

1. Copy the template

cp -r templates/mcp-server-template my-new-server
cd my-new-server

2. Find and replace all customization points

Search for >>> CUSTOMIZE across all files and replace the placeholders:

# See all customization points
grep -rn "CUSTOMIZE" .

At minimum, replace:

  • your-server-name → your actual server name (e.g., jira-mcp-server)
  • API_BASE_URL → the upstream REST API you're wrapping
  • Tool definitions in server.py → your actual tools

3. Define your tools

Edit server.py and replace the example tools (core.greeting.get, core.item.get, core.item.update) with your own. Tools are meaningful actions, not a 1:1 mirror of API endpoints — apply the test "would a user describe this action in natural language?".

  1. Add a types.Tool(...) entry to the TOOLS list with:
    • name as <domain>.<capability>.<verb_object> (the backing system never appears in a tool name)
    • description + JSON Schema inputSchema
    • annotations=types.ToolAnnotations(...) — map side_effects to hints: none/read => readOnlyHint=True, write_irreversible => destructiveHint=True, idempotentHint from intel.it/idempotent
    • _meta={...} Intel governance tags: risk_tier (R0-R3), side_effects, idempotent, data_classification, plus (for data tools) latency_class / answer_type / source_system
  2. Add a matching case "<domain>.<capability>.<verb_object>": block in call_tool()
  3. Use _api_request() for upstream API calls, _ok() / _err() for responses
  4. For R2 (reversible write) tools, require reason, target_identifiers, idempotency_key; for R3 (irreversible) require reason, target_identifiers, approval_id. The dispatcher enforces these before any upstream call and emits an AUDIT log
  5. Update registry.yaml so the registry record matches the server's tools

4. Test locally

python -m venv .venv
.venv\Scripts\activate        # Windows
# source .venv/bin/activate   # Linux/macOS
pip install -r requirements.txt
python server.py

Verify the server is running:

# Health check
curl http://localhost:8000/health

# List tools (MCP JSON-RPC)
curl -X POST http://localhost:8000/mcp/ ^
  -H "Content-Type: application/json" ^
  -H "Accept: application/json, text/event-stream" ^
  -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\",\"params\":{}}"

# Call the greeting tool
curl -X POST http://localhost:8000/mcp/ ^
  -H "Content-Type: application/json" ^
  -H "Accept: application/json, text/event-stream" ^
  -d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"core.greeting.get\",\"arguments\":{\"name\":\"World\"}}}"

5. Build the container

podman build -t your-server-name:1.0.0 .

6. Push to Harbor registry

podman tag your-server-name:1.0.0 amr-registry.caas.intel.com/catalyst/your-server-name:1.0.0
podman push --tls-verify=false amr-registry.caas.intel.com/catalyst/your-server-name:1.0.0

7. Deploy to Kubernetes

# Set kubeconfig for your cluster
$env:KUBECONFIG = "path/to/kube-configs/amr-its-compute-cluster.yaml"

kubectl apply -f k8s-deploy.yaml
kubectl apply -f ingress.yaml

# Watch pod status
kubectl get pods -n catalyst -l app=your-server-name -w

8. Verify the deployment

curl https://api-suite-dev.catalyst.intel.com/your-server-name/health

Auth Patterns

No Auth (Default)

The template ships with no authentication — any client with network access can call your tools. This is appropriate for internal demo servers and tools that don't access sensitive APIs.

Bearer Token Passthrough

If your upstream API requires a user-provided Bearer token (e.g., Intel SSO id_token for HSDES, ServiceNow, etc.), enable the auth middleware:

  1. In server.py: Uncomment the TokenExtractorASGI class, the ContextVar, and the get_bearer_token() helper function (clearly marked in the file)
  2. In the ASGI wiring section: Swap the Mount line to use TokenExtractorASGI:
    # Comment out this line:
    # Mount("/mcp", app=session_manager.handle_request),
    # Uncomment this line:
    Mount("/mcp", app=TokenExtractorASGI(session_manager.handle_request)),
    
  3. In _api_request(): Uncomment the token forwarding lines to attach the Bearer token to upstream requests

See servers/hsdes-mcp-server/ for a complete working example of this pattern.

VS Code MCP Client Configuration

No-auth server

Add to your .vscode/mcp.json or VS Code settings:

{
  "servers": {
    "your-server-name": {
      "type": "http",
      "url": "https://api-suite-dev.catalyst.intel.com/your-server-name/mcp/"
    }
  }
}

Auth server (Bearer token)

{
  "servers": {
    "your-server-name": {
      "type": "http",
      "url": "https://api-suite-dev.catalyst.intel.com/your-server-name/mcp/",
      "headers": {
        "Authorization": "Bearer ${input:your_server_token}"
      }
    }
  },
  "inputs": [
    {
      "id": "your_server_token",
      "type": "promptString",
      "description": "Bearer token (Intel SSO id_token) for your-server-name",
      "password": true
    }
  ]
}

File Overview

File Purpose
server.py MCP server with tool definitions and ASGI wiring
requirements.txt Python dependencies (pinned to tested versions)
Dockerfile Multi-stage container build with non-root user
k8s-deploy.yaml Kubernetes Deployment + Service
ingress.yaml Traefik Ingress + Middleware for external HTTPS access
registry.yaml IT-MCP-STD-001 registry manifest (server + tool metadata)
.env.example Environment variable reference (copy to .env)
.vscode/mcp.json VS Code MCP client configuration

Full Documentation

For the complete deployment pipeline including Podman VM proxy setup, Harbor authentication, kubeconfig management, and troubleshooting:

docs/CATALYST-MCP-DEPLOYMENT-GUIDE.md

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选