Skip to content

Model Context Protocol (MCP) Explained

For people

What the Model Context Protocol is, how it connects AI assistants to tools and data, and the security considerations.

Editorial team 2 min read

Share X LinkedIn Reddit Bluesky Email

The Model Context Protocol (MCP) is an open protocol for connecting AI applications to external tools and data sources in a standard way.

The Problem It Solves

Every AI assistant needs integrations — files, databases, ticketing systems, APIs. Without a standard, each assistant and each tool needs custom glue code. MCP defines a common interface so a tool implemented once can be used by any compatible application.

The Pieces

  • MCP servers expose capabilities: tools the model can call, resources it can read, and prompts it can use.
  • MCP clients live inside AI applications and connect to servers.
  • The application decides which servers are connected and presents their tools to the model.

What It Enables

An assistant can search your documents, query a database, create a ticket or read a repository through servers you choose to connect, without the application needing bespoke code for each.

Security Considerations

  • Trust: only connect servers from sources you trust; a malicious server can expose harmful tools or return manipulative content.
  • Permissions: grant servers the least access needed; prefer read-only where possible.
  • Prompt injection: content returned by tools can contain hidden instructions.
  • Approval: require confirmation for sensitive actions.
  • Data exposure: understand what data flows to the model and its provider.

Getting Started

Many AI applications and developer tools support MCP, and there are open-source servers for common systems. Start with a single read-only server and expand as you understand the behaviour.

More in Generative AI

All Generative AI guides →
Generative AI Guide · 2 min

Prompt Engineering Fundamentals

The building blocks of a good prompt — context, task, constraints and format — with before-and-after examples.

Generative AI 2 min read 1 Aug 2026 For people

Generative AI Guide · 2 min

Few-Shot Prompting With Examples

Showing a model a few examples of the input and output you want is often clearer than describing it. How to choose good examples.

Generative AI 2 min read 31 Jul 2026 For people

Generative AI Guide · 2 min

Getting Structured Output From LLMs

How to get JSON and other machine-readable output reliably from a language model, and how to validate it.

Generative AI 2 min read 30 Jul 2026 For people

Generative AI Guide · 2 min

Why Language Models Hallucinate

What hallucination is, why it happens, and practical ways to reduce and catch it.

Generative AI 2 min read 29 Jul 2026 For people

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in