Skip to main content
Claude Code connects to the Langmail MCP server with one command — no local process, no config file.

Prerequisites

Connect

1

Add the server

2

Authorize access

Inside a Claude Code session, run:
Select langmail and follow the authentication prompt. Your browser opens for Langmail sign-in and a consent screen; approve it and return to the terminal.The grant is per-client: you authorize this Claude Code installation, not a shared credential. Your agent never sees your password.
3

Verify

Output
Use /mcp at any time to inspect the connection, list the exposed tools, or re-run authentication.

Test it

Ask Claude:
Prompt
Claude calls search_emails with { "mailbox": "Inbox", "limit": 5 } and answers from a compact, newest-first hit list. If the call fails with an authorization error, re-run the authentication from /mcp.

Ending access

Removing the server discards its tokens; without the refresh token, access lapses when the current access token expires:

Next steps

Search and triage email

Real prompts and the tool calls they produce.

How authorization works

What happens between “add server” and “connected”.