Skip to main content
Glama

olk — ターミナルで使えるMicrosoft Outlook

olkは、Microsoft Graphを通じてOutlookのメール、カレンダー、連絡先、タスク、OneDriveを操作するためのスクリプト可能なCLIおよびMCPサーバーです。個人のOutlook.comアカウントとエンタープライズのMicrosoft 365アカウントの両方で動作します。

インストール

brew install rlrghb/tap/olk
# or
go install github.com/rlrghb/olkcli/cmd/olk@latest

npmパッケージはolkcli、インストールされるコマンドはolkです:

npm install -g olkcli

アップグレード後にmacOSがKeychainへのアクセスを求めてきた場合は、macOSの注意事項を参照してください。

Related MCP server: Microsoft MCP

クイックスタート

olk auth login
olk auth status
olk mail list --json --results-only --select id,subject,from
olk mail search 'from:person@example.com subject:urgent'
olk calendar view --days 7
olk contacts search "Alex"
olk todo lists list
olk drive ls

仕事/学校アカウントおよびエンタープライズ限定機能の場合:

olk auth login --enterprise

よく使うコマンド

目的

コマンド

サインイン中のアカウントを確認

olk auth status または olk whoami

メッセージIDと件名を検索

olk mail list --json --results-only --select id,subject,from

メールを検索

olk mail search "from:person@example.com subject:urgent"

次の1週間を表示

olk calendar view --days 7

連絡先を検索

olk contacts search "Alex"

タスクリストを一覧表示

olk todo lists list

OneDriveを閲覧

olk drive ls

メールを送信

olk mail send --to person@example.com --subject "Hi" --body "Hello"

変更を同期

olk changes --json

スクリプト用にJSONを使用

olk mail list --json --results-only

MCPサーバーとして使用

olk mcp

すべてのコマンドとフラグについては、コマンドリファレンスを参照してください。

出力とスクリプト

結果はstdoutに書き出され、診断情報とプロンプトはstderrに出力されます。

olk mail list --json --results-only | jq '.[].subject'
olk contacts list --plain

出力モードはJSON(--json)、TSV(--plain)、およびデフォルトの整列テーブルです。--conciseを使用すると大きな本文/プレビューを省略でき、--selectを使用するとサポートされている場所でフィールドを制限できます。スクリプトと同期を参照してください。

安全のためのデフォルト設定

  • 無人での読み取り専用実行には--no-write --no-send --no-inputを使用します。

  • MCPは厳選されたツールを公開し、変更操作には明示的なオプトインが必要です。

  • 外部のメール、カレンダー、連絡先、ファイルのテキストは、エージェントが安全に利用できるよう--wrap-untrustedでラップできます。

  • リフレッシュトークンはOSのキーチェーンに保存され、アクセストークンはメモリ内にのみ保持されます。

エージェントを接続したりログを共有したりする前に、セキュリティとプライバシーのガイドをお読みください。

ドキュメント

コントリビューション

make build
make test
make lint

リポジトリ構成、検証、CI、公開の詳細については、開発とリリースを参照してください。

ライセンス

LICENSEを参照してください。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessResponsive

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    C
    quality
    F
    maintenance
    A powerful MCP server that enables AI assistants to interact with Microsoft Graph API for managing Outlook emails, Calendar events, OneDrive files, and Contacts through natural language commands.
    35
    56
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Lightweight MCP server that enables AI agents to manage Microsoft Outlook email, calendar, and files using PKCE authentication with only a Client ID.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that gives AI assistants full access to Microsoft Outlook emails, calendar, and contacts via the Microsoft Graph API.
    114
    2
    MIT

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/rlrghb/olkcli'

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