Skip to main content
Glama
hayatosc

University Microsoft 365 Read-only MCP

by hayatosc

microsoft-bypass-mcp

Microsoftアカウントのテナント管理者がAIサービス(ChatGPT, Claudeなど)との連携を承認していないときに、Power Automate経由でバイパスして情報を取得できるリモートMCPサーバー

Specification

Architecture

MCP Client
    ↓  MCP over Streamable HTTP (/mcp)
Remote MCP Server — Cloudflare Workers + Hono (Cloudflare Access OAuth)
    ↓  HTTP POST { operation, requestId, args }
Power Automate — operation allowlist → fixed Graph endpoints, M365 auth
    ↓
Microsoft Graph

Tools

Tool

Input

Output

outlook_list_messages

{ limit?: number } (default 5, 1–50)

{ messages: MessageSummary[], hasMore: boolean }

outlook_search_messages

{ query: string, limit?: number } (default 10, 1–50)

{ messages: MessageSummary[], hasMore: boolean }

outlook_get_message

{ messageId: string }

MessageDetail

Requirements

  • Microsoftアカウント

  • Bun

  • Cloudflareアカウント

Configuration

.dev.vars.example に従ってPower Automate側のURLを参照

POWER_AUTOMATE_URL=https://prod-xxx.logic.azure.com/workflows/xxx/triggers/manual/paths/invoke
POWER_AUTOMATE_GATEWAY_KEY=<gateway key>

For production, set these as Worker secrets/vars (wrangler secret put).

Development

bun install
bun run dev          # local Worker (wrangler dev)

Quality checks

bun run typecheck    # tsc --noEmit
bun run lint         # oxlint
bun run lint:types   # oxlint --type-aware
bun run format:check # oxfmt --check
bun run test         # vitest

Deploy

bun run deploy       # wrangler deploy

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hayatosc/microsoft-bypass-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server