Skip to content
/blog

6 min read

What is MCP and how it connects AI to your company's data

MCP is an open protocol that lets an AI assistant query a company's documents, databases or calendar through servers, each one with its own permission.

MCP (Model Context Protocol) is an open protocol that sets out how an AI application connects to external data and tools. Each company system (documents, a database, the calendar) is exposed through an MCP server, and the assistant talks to it through a client that always speaks the same language. Instead of a bespoke integration for every combination of model and tool, there is one per system, and each connection has its own permission.

Anthropic released it as an open standard and later donated it to the Agentic AI Foundation, a fund under the Linux Foundation. Applications such as Claude Desktop, Claude Code and Visual Studio Code already connect to it.

What are the parts of an MCP connection?

The specification defines three roles:

  • The host: the AI application the person uses. It might be a desktop assistant, a code editor or the app we build for you.
  • The MCP client: a component inside the host that keeps the connection to one server open. The host creates one for every server it connects to.
  • The MCP server: a program that offers the data or actions of a specific system. It can run on the same machine or remotely.
One server per system and one permission per tool: the assistant never touches the systems directly.

In the diagram we group the clients into a single box; inside the app there is one per server. Between client and server, messages travel as JSON-RPC 2.0. The client asks the server which tools it has (tools/list), passes that list to the model and runs the ones the model decides to use (tools/call). So the model does not connect to anything: it proposes a call, and the application runs it through the client.

What can an MCP server offer?

A server can offer three kinds of thing, which the specification calls primitives:

PrimitiveWhat it isExample in a business
ToolsFunctions the application runs when the model asks for themLook up a customer by name, book a slot in the calendar
ResourcesData that provides contextThe text of a document, a database schema
PromptsReusable templates for working with the model"Draft a reply to a support ticket in this format"

The example in the documentation itself is a server for a database: tools to query it, a resource with the table schema and a prompt with examples of how to use those tools. The lists can change while the application is open, and the server can notify the client when they do.

In the other direction, the client also offers the server a few things. The one that matters most to a business is elicitation, which lets the server ask the person for more information or for confirmation before carrying out an action.

For a business, this means you decide what each system offers: a documents server that only provides resources to read, with no tool that writes, or a calendar server with one tool to check available slots and another to book that asks for confirmation. How to design each permission is covered in an AI assistant that uses your tools without full access.

How does the data travel, and who grants permission?

MCP has two transports. With stdio, the server is a process on the same machine and they communicate through standard input and output, with no network involved. With Streamable HTTP, the server is remote and receives requests over HTTP; this is what allows one server to serve many clients.

Authorisation is optional in the specification, but with business data it should not be. For HTTP servers, MCP builds on OAuth 2.1: the MCP server acts as a resource server, an authorisation server (the same one or a separate one) issues the access tokens, and the person authorises the connection once.

The token is valid for one server and for the scope that was authorised; if more is needed, it is requested again.

Three things in this design matter:

  • Minimum scope. The server states which permissions (scopes) each operation needs, and the client should only request those. If it needs another one later, it asks at that point.
  • One token, one server. Each token is issued for a specific server, which must validate it and must not accept or pass on any other.
  • Locally, no OAuth. With stdio, credentials are read from the process environment.

How do we use it at InterHuge?

The chat on this website, and the ones on the eICON and Somia Digital sites, which run on the same package, already work on the idea behind MCP: the model does nothing on its own, it calls tools with a name, a description and a closed set of parameters. Ask about a service and it can open its detail card; ask how to contact us and it shows the contact block.

Here there is no need for an MCP server, because the tools live on the same server as the chat. This is the contact tool:

export function contactTool(): ToolSpec {
  return {
    name: "mostrar_contacto",
    description:
      "Muestra en el chat un bloque con botones para llamar, escribir un email, WhatsApp y cómo llegar. Úsala cuando pregunten cómo contactar, el teléfono, el email, dónde estáis o cómo llegar. Acompáñala de una frase breve.",
    parameters: {
      type: "object",
      properties: {
        lugar: { type: "string", description: "id de la oficina si pregunta por una concreta; cadena vacía si no" },
      },
      required: ["lugar"],
      additionalProperties: false,
    },
  };
}
The chat's contact tool: a name, a description for the model and a single parameter, with no extra fields allowed.

It has the same shape as an MCP tool: a name, what it does and which parameters it accepts. The tools are the same whether Gemini or Claude, the fallback model, is answering, because our code defines them, not the provider. The difference from MCP is where they live: on an MCP server, any compatible host could use this tool, not just our chat.

When is an MCP server worth it?

Not always. If a single assistant uses some data, a handful of tools on the same server are simpler to maintain. MCP pays off when the same data has to be used by several assistants or applications.

Tools inside the app

  • A single assistant queries the data
  • The tools live on the same server as the chat
  • Fewer parts to maintain
  • Example: the chat on this website

One MCP server per system

  • Several assistants or apps use the same data
  • A desktop assistant or code editor can connect too
  • Each system has its own server and permission
  • Switching models does not mean rebuilding the connection
With one assistant, tools inside the app are enough; when several applications use the same data, MCP saves rebuilding the connection each time.

One word of caution: an MCP server is code that gives access to your data. Before connecting one built by a third party, find out what it offers, which permissions it asks for and who maintains it.

What to do next

Start by counting two things: how many of your business systems the assistant has to consult (documents, orders, calendar) and how many applications will use them. One assistant and one system are handled with tools inside the app; once there are several, a standard like MCP saves rebuilding every connection. On the AI assistants page you can see how we build them, and if you want yours to consult your company's tools, get in touch.

Got a project in mind?

Tell us what you need: an app, an assistant or a website. We’ll send you a proposal and a fixed quote.