Why agents stall on real-world data
Agents are good at reasoning and bad at access. Ask one to “summarize my claims” or “reconcile last month's commissions” and it hits the same wall as everyone else: the data lives in a portal with no API, behind a login and an MFA prompt. Bolting a scraper onto an agent inherits every problem scrapers have, plus a new one — an agent acting on a shared login with no per-user consent is a serious trust and security problem.
MCP in one paragraph
The Model Context Protocol (MCP) is an open standard for giving an AI model tools it can call. Instead of pasting data into a prompt, you expose typed tools the model invokes when it needs them. Sidelatch makes every connection an MCP server, so an agent can read portal data through well-defined tools rather than by scraping a page.
Per-user links vs. one API key
There are two ways to give an agent access, for the two common cases:
| Mode | Who it's for | How access works |
|---|---|---|
| Customer API key | Your own agents, acting across your users | Point the agent at one MCP endpoint with your API key; tools are <portal>__<op> plus list_connections |
| Per-user link | A single end user's own assistant | Mint a per-user MCP link and hand it over; the user connects it to their Claude or ChatGPT with OAuth and approves it — the agent reads only that user's data |
The per-user link is the one that makes consumer-facing agents safe: the person grants their own assistant access to their own portal data, and nothing is shared.
Keeping an agent safe against a portal
Giving a model tools that hit a real portal needs guardrails, and they're built in:
- Portal text comes back marked untrusted. Data from a portal is wrapped in an untrusted envelope so a malicious value on a page can't steer the model into doing something it shouldn't.
- Reads are cached and rate limited. Results are cached briefly and calls are capped per connection, so an over-eager agent can't hammer a portal.
- Writes are gated. Tools only read unless you explicitly allow changes; write tools require a read-write key or a link minted with writes allowed, and support a dry run and idempotency keys.
- Broken logins fail cleanly. If a connection needs the user, the agent gets a clear
reconnect_neededand a relink URL instead of a retry loop.
What the agent actually sees
Concretely, the agent gets a small set of typed tools: one per portal operation (<portal>__<op>), plus list_connections to see what's linked. Parameters are strict and typed, results are validated against the standard model, and write tools are marked so the model knows they change something. The developer overview and the MCP guide in the docs have the details.
This is the payoff of closing the access gap: once portal data is reachable in a clean, permissioned shape, pointing an agent at it is the easy part. For the gap itself, see why your industry's data is still trapped behind portal logins.
Frequently asked questions
What is MCP?
The Model Context Protocol is an open standard for giving an AI model typed tools it can call. Sidelatch makes every connection an MCP server, so an agent reads portal data through defined tools instead of by scraping a page.
How do I give one user's own assistant access?
Mint a per-user MCP link and hand it to them. They connect it to their Claude or ChatGPT with OAuth and approve it, and the agent can then read only that user's portal data.
Can an agent make changes, not just read?
Only if you allow it. Tools read by default; write tools require a read-write key or a link minted with writes allowed, and they support a dry run and idempotency keys so a change isn't made twice.
Can portal content manipulate the model?
Portal data is returned in an untrusted envelope so a malicious value on a page can't be treated as an instruction. Reads are also cached and rate limited per connection.
Reach the data behind the login
Sidelatch gives you one user-permissioned API for the portals your users already sign in to — with webhooks and MCP, and connections we keep alive. Start free in the sandbox.