Claude Code
Run both in a Claude Code session. Then run /mcp, pick sendlens and sign in. The plugin adds the MCP server and six skills.
/plugin marketplace add orchidautomation/sendlens-plugins
/plugin install sendlens@sendlensSendLens 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.
MCP
# 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,unansweredREST
curl "https://api.sendlens.app/v1/unanswered?clientId=<client id>" \
-H "Authorization: Bearer $SENDLENS_TOKEN"SDK
const api = createSendLens({ token });
await api.unanswered.list({ clientId: "<client id>" });The same answer from all three.
{
"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 }
}Sample data.
The SendLens plugin is public at github.com/orchidautomation/sendlens-plugins. Every other client adds one URL. Sign-in is OAuth, so there are no tokens or keys to paste.
Run both in a Claude Code session. Then run /mcp, pick sendlens and sign in. The plugin adds the MCP server and six skills.
/plugin marketplace add orchidautomation/sendlens-plugins
/plugin install sendlens@sendlensAdd this URL as a remote MCP server and sign in when the client asks. The plugin README has the steps for each client.
https://api.sendlens.app/mcpEach 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. |
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.
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.
Use MCP for agents and the rest for everything else. They share one registry, one set of schemas and one sign-in.
/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.@sendlens/sdk. Requests and responses are parsed against the same schemas the API uses, and lists page as you iterate.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_catalog lists the modelled tables, and query_sql runs one read-only SELECT at a time.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 |
Sample data.
An agent gets a SendLens token, never a vendor key. What it can read is decided by the URL you sign it in with.
SELECT against your own tables, parsed and checked before it runs, on a connection that can't reach anything outside SendLens.Lists return meta with complete, evidence and stale. A count SendLens doesn't have is null, never 0.
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.
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.
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.
$ npm install outbound-sdkNo. 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.
Any client that supports remote MCP servers with OAuth, including Claude Code, Claude Desktop and claude.ai, ChatGPT and Cursor.
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.
Yes, at /v1/openapi.json. The SDK and the MCP tools are built from the same registry.
MCP and API access are part of the Agency plan. Pricing
Get access for your agency, then connect an agent with one URL.