---
agent:
  instructions: "Use this search API to find what Blueping's public pages say, with keywords or a question, instead of crawling them one by one. Results are returned in Markdown, best first, each with its link."
  endpoint: "https://blueping.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

> The index of these docs for agents is at https://blueping.dev/llms.txt

# Give your Claude Agent SDK agent its own email address.

Your agent makes inboxes, reads what arrives and answers in the thread, with its email tools allowed by name.

agent.py:

```python
import os

from claude_agent_sdk import ClaudeAgentOptions

options = ClaudeAgentOptions(
    mcp_servers={"blueping": {"type": "http", "url": "https://blueping.dev/mcp",
                              "headers": {"Authorization": f"Bearer {os.environ['BLUEPING_API_KEY']}"}}},
    allowed_tools=["mcp__blueping__*"],
)
```

Then pass options to query(), as the full program below does.

[Get an address](https://blueping.dev/signup.md) · [**Agents** /integrations/claude-agent-sdk.md](https://blueping.dev/integrations/claude-agent-sdk.md)

Blueping makes email inboxes for AI agents: one API call gives an agent its own address, with verification codes pulled out and every sender checked.

## Give a Claude Agent SDK agent its inbox in one block

Add Blueping's hosted server to `mcp_servers` with type `http` and your key in the headers, and allow its tools with `mcp__blueping__*`. The agent then makes inboxes, reads what arrives and answers in the thread.

### 1. Python

MCP tools need permission: `allowed_tools` grants Blueping's and nothing else.

Python:

```python
import asyncio, os

from claude_agent_sdk import ClaudeAgentOptions, ResultMessage, query


async def main():
    options = ClaudeAgentOptions(
        mcp_servers={"blueping": {"type": "http", "url": "https://blueping.dev/mcp",
                                  "headers": {"Authorization": f"Bearer {os.environ['BLUEPING_API_KEY']}"}}},
        allowed_tools=["mcp__blueping__*"],
    )
    async for message in query(prompt="Make an inbox for the trial and wait for its code.", options=options):
        if isinstance(message, ResultMessage) and message.subtype == "success":
            print(message.result)


asyncio.run(main())
```

Node.js:

```javascript
import { query } from "@anthropic-ai/claude-agent-sdk";

for await (const message of query({
  prompt: "Make an inbox for the trial and wait for its code.",
  options: {
    mcpServers: { blueping: { type: "http", url: "https://blueping.dev/mcp", headers: { Authorization: `Bearer ${process.env.BLUEPING_API_KEY}` } } },
    allowedTools: ["mcp__blueping__*"],
  },
})) {
  if (message.type === "result" && message.subtype === "success") console.log(message.result);
}
```

### 2. Allow less

List the tools one by one, such as `mcp__blueping__list_messages` and `mcp__blueping__read_message`, for an agent that only reads.

Checked against [Claude Agent SDK docs, MCP](https://code.claude.com/docs/en/agent-sdk/mcp) on November 22, 2026.

## What a Claude Agent SDK agent does with its own inbox

### An operations agent on call

Alerts reach the agent's inbox; it groups them with `list_messages`, reads each with `read_message` and writes the incident summary to the channel your team reads.

### A buyer that collects quotes

It emails three vendors with `send_email`, waits for their answers in `list_threads`, and compares the PDFs read by `read_attachment`.

## Before you connect the Claude Agent SDK

- The init message lists `mcp__blueping__` tools once the server connects, which is the quickest check that the key works.

### Why mcp__blueping__ before each tool?

The Agent SDK names MCP tools `mcp__<server>__<tool>`, after the key you give the server in `mcp_servers`.

## Build more with the Claude Agent SDK

- [**Alert triage** Monitoring tools email one address; the agent groups alerts by service, pages on-call once per incident and files the repeats.](https://blueping.dev/use-cases/alert-triage.md)
- [**Quotes and purchase orders** The agent sends a request for quote to approved suppliers, compares the quotes, and drafts the purchase order for a person to send.](https://blueping.dev/use-cases/procurement.md)
- [**Multi-agent systems** Each agent gets its own address, tasks travel as emails in threads, and mail between Blueping inboxes arrives at once.](https://blueping.dev/use-cases/multi-agent-email.md)
- [**Google ADK** McpToolset with StreamableHTTPConnectionParams, in an LlmAgent.](https://blueping.dev/integrations/google-adk.md)
- [**Vercel AI SDK** tool() with a zod schema, called from generateText.](https://blueping.dev/integrations/vercel-ai-sdk.md)
- [**CrewAI** @tool functions for each agent of the crew.](https://blueping.dev/integrations/crewai.md)

[All integrations](https://blueping.dev/integrations.md) · [The quickstart](https://blueping.dev/docs.md) · [API reference](https://blueping.dev/docs/api.md) · [Every MCP client](https://blueping.dev/agents.md)
