# SendLens MCP server and API: every client's Instantly, Smartlead, HeyReach and EmailBison data for your agents

SendLens syncs Instantly, Smartlead, HeyReach and EmailBison for every client into one schema, labels every reply, and serves it through a remote MCP server with 43 tools, a REST API, a TypeScript SDK, signed webhooks and read-only SQL. Nothing it exposes can write to a vendor.

[Get access](mailto:brandon@orchidautomation.com?subject=SendLens%20access)

[Connect your agent](https://sendlens.app/developers#connect)

**One operation registry, every surface.** Sample data.

MCP:

```text
# Everything the signed-in user can read
https://api.sendlens.app/mcp

# One client, two views
https://api.sendlens.app/mcp/clients/<client id>/views/replies,unanswered
```

REST:

```bash
curl "https://api.sendlens.app/v1/unanswered?clientId=<client id>" \
  -H "Authorization: Bearer $SENDLENS_TOKEN"
```

SDK:

```ts
const api = createSendLens({ token });
await api.unanswered.list({ clientId: "<client id>" });
```

The same answer from all three.

```json
{
  "data": [
    {
      "clientId": "cl_acme",
      "reply": { "provider": "instantly", "leadEmail": "[redacted-email]" },
      "labels": [
        { "source": "vendor", "label": "Interested" },
        { "source": "jev", "label": "interested", "group": "positive" }
      ],
      "waitingSince": "2026-11-22T09:12:04Z"
    }
  ],
  "nextCursor": null,
  "meta": { "complete": true, "evidence": "exact", "stale": false }
}
```

## Install the plugin, or add one URL

The SendLens plugin is public at [github.com/orchidautomation/sendlens-plugins](https://github.com/orchidautomation/sendlens-plugins). Every other client adds one URL. Sign-in is OAuth, so there are no tokens or keys to paste.

### Claude Code

```text
/plugin marketplace add orchidautomation/sendlens-plugins
/plugin install sendlens@sendlens
```

Run both in a Claude Code session. Then run `/mcp`, pick `sendlens` and sign in. The plugin adds the MCP server and six skills.

### Cursor, ChatGPT, Claude Desktop, Codex and other MCP clients

```text
https://api.sendlens.app/mcp
```

Add this URL as a remote MCP server and sign in when the client asks. The [plugin README](https://github.com/orchidautomation/sendlens-plugins#install) has the steps for each client.

## The URL sets what an agent can see

Each sign-in gets a token for that URL only, so a token for a narrow URL can't be used on a broader one. A tool outside the URL's views is hidden.

| MCP URL | What the agent can read |
| --- | --- |
| `/mcp` | Everything the signed-in user can read |
| `/mcp/clients/<client ids>` | Only those clients |
| `/mcp/clients/<client ids>/views/<views>` | Only those views of those clients, such as `replies,unanswered` |
| `/mcp/clients/<client ids>/views/<views>/unmasked` | The same, with prospect names and emails shown. Agency admins only. |

## 43 tools, from the same registry as the REST API

The tools are generated from the same operation registry as the REST routes and the SDK, so their answers can't drift apart.

| Area | Tools | What they do |
| --- | --- | --- |
| Replies | `replies`, `reply`, `unanswered`, `lead_timeline` | Labelled replies across tools and clients, positive replies nobody has answered with how long each has waited, and everything that happened with one lead |
| Metrics and health | `daily_metrics`, `mailbox_health`, `runway`, `client_report` | Daily counts per client and campaign with their quality labels, sending mailboxes and their history, leads left per campaign, and the Monday report for one client |
| Insights and named queries | `insights`, `run_insight`, `queries`, `run_query` | Diagnostic questions answered from the stored history, such as why a campaign underperforms, which variant wins and which replies were dropped, and saved questions run on your warehouse, such as a campaign overview and the biggest movers, with no vendor request |
| Events | `events`, `event`, `subscribe`, `subscriptions`, `rotate_subscription_secret`, `delete_subscription`, `fire_sandbox_event` | The normalized event stream and your webhook subscriptions |
| SQL | `sql_catalog`, `query_sql` | The tables you can query, and one read-only `SELECT` at a time |
| Clients | `me`, `clients`, `create_client`, `rename_client`, `archive_client` | Who is signed in, and the agency's client list (changes are for admins) |
| Connections | `connections`, `add_connection`, `create_connect_link`, `set_connection_scope`, `set_connection_sync_campaigns`, `rotate_connection_key`, `delete_connection`, `connection_webhook`, `add_connection_webhook` | Vendor connections, which campaigns each one covers and syncs, and each one's webhook endpoint. Adding a connection, rotating a key and creating a webhook endpoint hand off to a one-time browser link on SendLens's own page, so an agent never takes a vendor key or a secret. |
| Slack | `slack_install`, `slack_installations`, `revoke_slack_installation`, `alert_channels`, `set_alert_channel`, `delete_alert_channel` | The Slack install and each client's alert channel |
| Feedback | `report_issue`, `report_status` | An agent files a report when a tool's answer is confusing, and checks on it later |

Tools that write change only SendLens's own records, such as clients, subscriptions and alert channels. No tool writes to a vendor.

## A plugin with six skills for Claude

The SendLens plugin adds the MCP server and six skills: short procedures that tell an agent which tools to call and how to report what they return. Each skill is one Markdown file, so other clients can use them as rules or project instructions.

### Weekly client review

A client-ready summary of last week.

### Reply triage

The replies that need an answer, with drafts for a person to send.

### Campaign health

Bounce and reply rates, mailbox health and lead runway.

### Client onboarding

Adding a client, its vendor connections, Slack alerts and event subscriptions. Admins only.

### Insights

Why a campaign underperforms, which variant wins, when prospects reply and which replies were dropped, answered from the stored history.

### Honesty labels

How to read and phrase every SendLens number, so an agent never overstates one.

## The same data, however you read it

Use MCP for agents and the rest for everything else. They share one registry, one set of schemas and one sign-in.

### REST API

Under `/v1`, with an OpenAPI spec at `/v1/openapi.json` and CI that blocks a breaking change. Errors are RFC 9457 problems with a stable code and a hint. Writes are idempotent, so a retry is always safe.

### TypeScript SDK

`@sendlens/sdk`. Requests and responses are parsed against the same schemas the API uses, and lists page as you iterate.

### Signed webhooks and events

Thirteen event types, such as `reply.classified`, `lead.interested`, `mailbox.degraded` and `campaign.runway_low`, with filters and secret rotation. `fire_sandbox_event` sends a sample event in the sandbox so you can test an agent.

### SQL warehouse

Your agency's own DuckDB warehouse on MotherDuck, loaded automatically. `sql_catalog` lists the modelled tables, and `query_sql` runs one read-only `SELECT` at a time.

**One query across every client and tool.** Sample data.

```sql
SELECT client_name, label, replies
FROM sendlens.report_replies_by_label_week
WHERE week_start = DATE '2026-11-16'
  AND label_group = 'positive'
ORDER BY replies DESC
```

| client_name | label | replies |
| --- | --- | --- |
| Acme Logistics | interested | 6 |
| Globex Software | asks_for_info | 5 |
| Initech Staffing | meeting_request | 4 |
| Vandelay Imports | interested | 3 |

4 rows. complete: true, evidence: exact, stale: false

## Built so an agent can't do damage

An agent gets a SendLens token, never a vendor key. What it can read is decided by the URL you sign it in with.

### Read-only toward vendors

No tool or endpoint sends, pauses or edits anything in a vendor tool.

### Scoped tokens

Narrow a token to one client or a few views. Anything outside the scope is refused.

### Masked by default

Emails are redacted and names replaced. Only an agency admin can open an unmasked scope.

### Prospect text marked untrusted

Text a prospect wrote comes back wrapped as untrusted content and capped in length, so an agent doesn't take it as instructions.

### Every read logged

Who read what, under which sign-in and scope. If the log can't be written, no data is returned.

### Revocable

Agency admins see every agent sign-in and can revoke one at once.

### Guarded SQL

One `SELECT` against your own tables, parsed and checked before it runs, on a connection that can't reach anything outside SendLens.

## Labels and numbers you can state out loud

### Honest numbers

Lists return `meta` with `complete`, `evidence` and `stale`. A count SendLens doesn't have is `null`, never `0`.

### Labels as data

Every reply keeps the tool's label, the rule's label and our classifier's label, with the version of the label set that made it. When the label set changes, past replies can be labeled again without losing the old labels.

### Your model

We run one model, a small reply classifier, and it's included. Your agents bring their own model and key. We don't sell AI credits.

## Built on an open-source SDK

SendLens runs on outbound-sdk, our MIT-licensed TypeScript SDK for Instantly, Smartlead, HeyReach and EmailBison. `createOutbound({ adapter: instantly() })`, then `outbound.campaigns.listAll()`, and the same calls work against the other three. It documents how each tool's API works, in the open, at [outbound-sdk.dev](https://outbound-sdk.dev).

```bash
npm install outbound-sdk
```

## Questions

### Can an agent change a campaign through SendLens?

No. Nothing SendLens exposes can write to a vendor. The tools that write change only SendLens's own records, such as clients, subscriptions and alert channels.

### Which MCP clients work?

Any client that supports remote MCP servers with OAuth, including Claude Code, Claude Desktop and claude.ai, ChatGPT and Cursor.

### Do agents need vendor keys?

No. Each key is entered once, on a one-time link to SendLens's own key entry page, and agents never see it. Agents get a SendLens token, never a vendor key.

### Is there an OpenAPI spec?

Yes, at `/v1/openapi.json`. The SDK and the MCP tools are built from the same registry.

### What does it cost?

MCP and API access are part of the Agency plan. [Pricing](https://sendlens.app/pricing)

## Give your agents every client's outbound data

Get access for your agency, then connect an agent with one URL.

[Get access](mailto:brandon@orchidautomation.com?subject=SendLens%20access)

[Book a demo](mailto:brandon@orchidautomation.com?subject=SendLens%20demo)

---

SendLens for cold outbound is at sendlens.app. It is not sendlens.com (email creative analytics) or sendlens.io (Klaviyo reporting for agencies), which are other companies' products.

Canonical page: https://sendlens.app/developers. Last updated 2026-11-23.
