Sidelatch

AI agents

Building an AI agent on portal data: MCP, per-user consent, and gated writes

Your agent is only as good as the data it can reach. How to give an AI agent safe, per-user access to login-only portal data over MCP — with consent, caching, rate limits and gated writes.

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.

There are two ways to give an agent access, for the two common cases:

ModeWho it's forHow access works
Customer API keyYour own agents, acting across your usersPoint the agent at one MCP endpoint with your API key; tools are <portal>__<op> plus list_connections
Per-user linkA single end user's own assistantMint 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:

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.

Try the sandbox →   See how it works for developers →

Start in the sandbox.

No call, no card. Make an account and the console walks you through linking a test carrier, reading its policies and making the API key for your code, in about two minutes.