AppStars

MCP explained: letting AI assistants use your systems safely

Model Context Protocol lets Claude, ChatGPT and Copilot work with your systems. Here is how it works, and how OAuth 2.1, private drafts and human review keep it safe.

Your people already use AI assistants. They paste documents into Claude, ask ChatGPT to draft an email, and use Copilot inside Office. Sooner or later someone asks the obvious question: can the assistant just look it up in our system?

Usually the honest answer is "not safely". The assistant can't see your systems, so people copy data out of them and paste it in. That's slow, it's error-prone, and nobody can tell afterwards what was shared.

Model Context Protocol, or MCP, is the open standard that fixes the plumbing. This post explains what it is in plain terms, and what it takes to do it safely, based on the MCP server we built for the Knowby work-instructions platform.

What MCP is

An MCP server sits in front of your system and describes a set of tools an AI assistant may use: search for something, read a record, create a draft. The assistant sees the list, decides when a tool would help, and calls it. The server does the work and returns the result.

The useful part is that one server works with many assistants. Knowby's MCP server has about 12 tools, and the same server works with Claude, ChatGPT and Microsoft Copilot. People can search their organisation's guides, including the transcripts of guide videos, create a guide from text, attach media, and even create a guide from an uploaded video, all from inside the assistant they already use.

Think of it as an API designed for an AI client instead of a developer. And like any API, the hard part isn't the happy path. It's deciding who can do what.

Rule 1: sign-in is real sign-in

An assistant acting in your system should act as a specific person, with that person's permissions, and nothing more.

That's what OAuth 2.1 is for. When someone connects an assistant to an MCP server, they sign in through your system's own authorisation flow and approve the access. The assistant gets a token, scoped to that person's organisation and team. It never sees a password.

For the Knowby platform we built an OAuth 2.1 authorisation server into the product, plus personal access tokens for tools that need them. Every token is scoped to an organisation and a team.

A few things matter more than they first appear:

  • Scope to the smallest useful area. A token for one organisation should never see another's data, even by accident.
  • Test the boundaries, not just the features. We wrote cross-organisation isolation tests. A feature test checks that you can see your data. An isolation test checks that you can't see anyone else's.
  • Make tokens easy to revoke. People change roles and leave. Access should go with them.

Rule 2: AI-created content starts as a private draft

Reading is one level of risk. Writing is another.

When an assistant creates something in your system, it should not go straight to everyone. In the Knowby MCP server, anything the AI creates is saved as a private draft for human review before it's published.

That keeps the speed and removes the fear. The assistant can do the tedious first version, and nobody else sees it until a person has checked it.

Rule 3: a person reviews before anything goes live

A draft is only safe if someone actually reviews it. So we recommend making review part of the normal workflow, not an optional extra:

  • The draft is clearly marked as AI-created.
  • Publishing is a deliberate step, by a person with the right role.
  • Where your system already has approvals, AI-created work goes through the same ones.

The principle is simple. The assistant drafts; a person decides.

Rule 4: treat every input as untrusted

An MCP server is an internet-facing API that takes instructions from software you don't control. Design it that way.

Some specific defences we built in:

  • SSRF-safe fetchers. If a tool fetches a file from a link, it must refuse internal addresses, so it can't be tricked into reaching inside your network.
  • Single-use signed upload URLs. Media goes straight to storage through a link that works once and expires.
  • A sandboxed interface. Some assistants can show an interactive card from your server. Ours ran in a sandbox with a deny-by-default content security policy, with a Markdown fallback for assistants that don't support cards.

What about where the data goes?

This question deserves a straight answer. When a commercial assistant reads your data through MCP, that data goes to the assistant's provider, under your organisation's agreement with them. MCP doesn't change that. What it gives you is control over exactly what the assistant can see and do.

Where data must not leave your control, the right tool is a different one: self-hosted, open-weight models that you run yourself, with no third-party AI provider involved. Plenty of organisations use both. Commercial assistants for everyday work, connected through MCP with tight scopes, and self-hosted models for the sensitive processing. We wrote about that side in Self-hosted AI: generative features without handing your data to an AI vendor.

Is MCP right for you?

It's a good fit when:

  • people already copy data between your system and an assistant
  • the tasks are clear, such as search, summarise or draft
  • you can define permissions per person and organisation
  • there's a natural review step for anything created

It's a poor fit when the assistant would need broad, unreviewed write access to records that matter. Fix the permission model first.

A checklist for your first MCP server

  • Start with read-only search. It's useful on day one and low-risk.
  • Use OAuth 2.1 sign-in, scoped to person, organisation and team. No shared keys.
  • Write isolation tests that prove one organisation can't see another's data.
  • Save anything AI-created as a private draft.
  • Keep publishing a human step, using your existing approvals where you have them.
  • Treat every input as untrusted: safe fetchers, signed single-use uploads, sandboxed UI.
  • Log every tool call so you can answer "what did the assistant do?".
  • Decide what must stay on self-hosted models before you connect anything.

Our AI assistants and MCP page covers how we build these, and the Knowby case study shows one in production.

Bring us the hard problem.

A 45-minute discovery call with the engineer who'll build it.