mcpField
P
Pidgeon

Pidgeon

Remote
pidgeon.aiCommunication1Updated today

About Pidgeon

Pidgeon gives AI agents email addresses and tools to manage messages and conversations. It supports hosted OAuth access or a locally configured package, with permissions controlled by the credential.

Key features

  1. 01Create and manage agent addresses
  2. 02Read, search, send, and reply to email
  3. 03Extract verification codes and links
  4. 04Handle attachments and mailbox rules
  5. 05Assign conversations to people

Use cases

  1. 01Receive sign-up messages and retrieve codes
  2. 02Draft or send replies in an email thread
  3. 03Route a conversation to a human
  4. 04Search mail across accessible addresses

MCP support

Pidgeon exposes email inbox operations through an MCP server, available as a hosted HTTP endpoint or a locally run package. Credentials determine which addresses and actions the client can access.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://pidgeon.ai/api/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

All endpoints
Streamable HTTPhttps://pidgeon.ai/api/mcpAuth required
Packages
npm@pidgeon-ai/mcp0.18.0

Tools

Details

From the project README

@pidgeon-ai/mcp

An MCP server that gives your AI agent its own email inbox. Pidgeon is the email inbox API for AI agents. It gives agents their own inboxes so they can work with emails just like a human.

Over Model Context Protocol an agent can create addresses, send, wait for a reply with its verification codes already pulled out, answer in the thread, and hand a conversation to a person. There are two ways in, and they are the same server.

Hosted: a URL, and you sign in

claude mcp add --transport http pidgeon https://pidgeon.ai/api/mcp

The first call answers 401, and the client sends you to Pidgeon to sign in with OAuth. You choose what it can do — read, read and send, or full access — and which addresses it can reach. Claude's custom connectors, ChatGPT, Cursor, Codex and VS Code take the same URL and sign in the same way. Nothing to install.

For an agent with nobody there to sign in, send a key instead:

claude mcp add --transport http pidgeon https://pidgeon.ai/api/mcp \
  --header "Authorization: Bearer $PIDGEON_API_KEY"

The Claude Code, Codex, Cursor and Gemini CLI plugin installs the hosted server with a skill that teaches the agent to use it: pidgeon-ai/pidgeon-plugins.

Or installed: this package

For a client that runs MCP servers as local processes.

PIDGEON_API_KEY=pgn_live_… npx -y @pidgeon-ai/mcp init

That checks the key against the API and tells you which addresses it reaches — the one question a block of JSON cannot answer, and the one that otherwise surfaces as a model quietly getting an error you never see. Then it writes .mcp.json in the current directory and prints what it wrote.

--print to see the config without writing it, which is what you want if your client keeps its own somewhere else. --force to replace an entry that is already there.

The key is referenced from the environment rather than written into the file, so the config can be committed and the credential cannot:

{
  "mcpServers": {
    "pidgeon": {
      "command": "npx",
      "args": ["-y", "@pidgeon-ai/mcp"],
      "env": { "PIDGEON_API_KEY": "${PIDGEON_API_KEY}" }
    }
  }
}

A pgn_live_… key comes from pidgeon.ai/app/developers/keys. No account yet? An agent can sign itself up by reading pidgeon.ai/skill.md; the only thing it needs from a person is a six-digit code.

PIDGEON_BASE_URL points it somewhere else, which is how you run it against a local checkout.

Documentation: pidgeon.ai/docs/mcp.

Tools

ToolWhat it does
list_addressesThe addresses this credential can reach.
create_addressCreate an address for an agent to use.
get_addressOne address, by id.
list_threadsConversations in one address, newest first.
get_threadOne conversation, by id.
list_messagesThe messages of one conversation, oldest first — the text to read before replying.
search_messagesFull-text search across every address this credential can reach, ranked by relevance.
send_messageSend from an address this credential may send as.
get_messageOne message, by id, with its body, the headers we keep, and what the sending domain’s records proved — authentication.spf, .dkim, .dmarc, where null means not reported rather than failed.
await_messageWaits until a message arrives at an address — after you submit a sign-up form, say — and returns it with extracted.codes and extracted.links: verification codes and confirm links, most likely first.
reply_to_messageThe recipients, the subject and the thread are read off the message being answered, so you bring the words and nothing else.
create_draftWrites a message without sending it, for a human to read and send — use it when you are asked to prepare replies for sign-off.
read_attachmentThe text of one attachment — a CSV, a log, JSON, a calendar file.
update_threadWho owns a conversation and where it has got to.
update_messageStar a message, or move it to archive, spam or trash.
list_send_rulesThe allow and block list of one address, and the send policy it hangs off.
list_receive_rulesThe rules that decide what reaches one address — reject, spam, trash, archive or inbox, per sender or per domain.
list_foldersEvery folder of one address with its counts.
list_folderOne folder of one address, newest first, a conversation per row — where list_threads says which conversations exist, this says where they are filed and what they look like in a list.
list_changesEverything that moved in one mailbox since a sync_cursor, arrivals included, so a long-running agent does not re-read a folder to find one new message.
list_eventsEvery event across every mailbox this credential reaches — mail received, sent, delivered, bounced, filed.
list_labelsLabels belong to an address, not to the workspace, so the same name on three addresses is three labels with three ids.
create_labelA label on one address.
apply_labelThe label has to belong to the same address the conversation is in — list_labels for that address gives you the right id.
remove_labelRemoves one label from one conversation.
list_podsA pod is a container for one of your own customers: it holds addresses and domains, and mail sent from it lands on its own sending reputation, so one customer cannot damage another’s delivery.
create_podA container for one of your customers, with its own sending reputation.
get_metricsSent, delivered, bounced, rejected, complained, received and spam over a window of days — counted from the event log, so it includes outcomes the provider reported afterwards.

Handing a conversation to a person

get_message, reply_to_message, update_message and update_thread are the loop: read a message, answer it, file it, and say who owns it.

update_thread  id=<thread_id>  owner_type=human

It appears in the web inbox and thread.updated tells whatever was driving the conversation that it no longer is. owner_type=agent takes it back, status is the queue it sits in, and assignee_id names which person has it.

A retried send goes out once

send_message and reply_to_message take an idempotency_key. Reuse it when retrying the same send and it goes out once; the retry answers with the first send's result, after a line saying nothing was sent again. With no key, an identical call (same arguments, same credential) within the same clock hour counts as a retry. To send the same words twice on purpose inside that hour, pass a new key.

Two settings worth knowing about

An agent's address should usually be created reply_only: it can answer anybody who has written to it and start a conversation with nobody, which is a structural limit rather than a quantity. create_address takes it.

It can also be given an end date. An address per ticket or per invoice stops accepting mail when the thing is over; expiry suspends the address and keeps the correspondence.

The credential is the whole of the access control

This hands a credential to a model. Nothing in this package decides what may be reached — the key's own ceiling and the addresses it was granted do all of it, server-side, exactly as for any other caller.

So give it the narrowest key the agent needs. A key created with read access can never send, however generously it is granted a mailbox, and an agent that only has to triage should have one.

What this is not

A protocol adapter over an API that already exists, and nothing else. No business logic, no database, no model, no state.

Every tool is an endpoint: the dispatcher works off the endpoint each tool declares rather than off its name, so there is nowhere to put behaviour the API does not have, and a test asserts each one exists in the published OpenAPI document. If something is missing here, it is missing from the API, and that is where it gets built.

Contributing

This package is published from pidgeon-ai/pidgeon-js, which is copied from Pidgeon's main repository on every release, so a pull request there cannot be merged as written. Open an issue and say what is wrong, or email [email protected].

MIT licensed.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.