> ## Documentation Index
> Fetch the complete documentation index at: https://docs.drin.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent integrations

> Give an AI agent its own email address. Drop the Drin MCP server into Claude, Cursor, Codex, and any MCP client — or wire it into LangChain, n8n, and other frameworks.

The Drin MCP server (`@drin00/mcp`) exposes the whole API as **54 tools** over
the Model Context Protocol. Any MCP-capable client can send and receive email,
manage domains and inboxes, and read metrics — with a single API key.

## MCP clients

<CardGroup cols={2}>
  <Card title="Claude Desktop" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/anthropic.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=a51c92bf4636b8044606ac3c60556324" href="#claude-desktop" width="24" height="24" data-path="images/agents/anthropic.svg">
    Add the `mcpServers` block to `claude_desktop_config.json`.
  </Card>

  <Card title="Claude Code" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/anthropic.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=a51c92bf4636b8044606ac3c60556324" href="#claude-code" width="24" height="24" data-path="images/agents/anthropic.svg">
    One command: `claude mcp add drin …`.
  </Card>

  <Card title="Cursor" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/cursor.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=1ec5e98914c180fc6ffab919d95270af" href="#cursor" width="24" height="24" data-path="images/agents/cursor.svg">
    Drop it into `~/.cursor/mcp.json` (or per-project `.cursor/mcp.json`).
  </Card>

  <Card title="Codex / ChatGPT" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/openai.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=a01e939731707699cf2076e1daf36ca0" href="#codex" width="24" height="24" data-path="images/agents/openai.svg">
    Register the server in your Codex MCP config.
  </Card>

  <Card title="Gemini" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/googlegemini.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=663e8dc6ed520ab80fcb6a80f08a2e5e" href="#codex" width="24" height="24" data-path="images/agents/googlegemini.svg">
    Wire the same `mcpServers` block into Gemini's tool config.
  </Card>

  <Card title="VS Code / Windsurf" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/visualstudiocode.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=40634d518d5c2e023e8dfb2866fcebdf" href="#cursor" width="24" height="24" data-path="images/agents/visualstudiocode.svg">
    Same block — VS Code keys it under `servers` in `.vscode/mcp.json`.
  </Card>
</CardGroup>

<a id="claude-desktop" />

### Claude Desktop & Cursor

The config is identical — paste it, set your key, restart the client.

<CodeGroup>
  ```json Claude Desktop theme={null}
  {
    "mcpServers": {
      "drin": {
        "command": "npx",
        "args": ["-y", "@drin00/mcp"],
        "env": { "DRIN_API_KEY": "drin_xxx" }
      }
    }
  }
  ```

  ```json Cursor theme={null}
  {
    "mcpServers": {
      "drin": {
        "command": "npx",
        "args": ["-y", "@drin00/mcp"],
        "env": { "DRIN_API_KEY": "drin_xxx" }
      }
    }
  }
  ```
</CodeGroup>

<a id="claude-code" />

### Claude Code

```bash theme={null}
claude mcp add drin -e DRIN_API_KEY=drin_xxx -- npx -y @drin00/mcp
```

## Framework adapters

Not using MCP? The same key plugs into the agent frameworks you already build in.

<CardGroup cols={2}>
  <Card title="LangChain" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/langchain.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=1d2d8f1149362fa81412c976af0ddfe4" width="24" height="24" data-path="images/agents/langchain.svg">
    Ready-made tools wired to your Drin key — send, read threads, and reply.
  </Card>

  <Card title="n8n" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/n8n.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=3afe4bbcb8c4d923223cc4b8bac395b9" width="24" height="24" data-path="images/agents/n8n.svg">
    Trigger sends and route inbound mail in a no-code workflow.
  </Card>

  <Card title="Vercel AI SDK" icon="https://mintcdn.com/drin/yBW6bGNHvna53cF7/images/agents/vercel.svg?fit=max&auto=format&n=yBW6bGNHvna53cF7&q=85&s=e9055e024cc694c23fc2f36bcb328afc" width="24" height="24" data-path="images/agents/vercel.svg">
    Register Drin as a tool the model can call from a Next.js app.
  </Card>

  <Card title="CrewAI / AutoGen" icon="robot">
    Hand a crew of agents a shared inbox they can read and reply from.
  </Card>
</CardGroup>

<Warning>
  The MCP server acts with the **full authority of the key** you give it. Scope
  the key to a single project where you can, and store it in the client's `env`,
  never in source.
</Warning>
