1 min read

Model Context Protocol (MCP): A Practical Intro

What MCP is, why it standardizes how tools talk to language models, and when reaching for it beats a one-off integration.

On this page

The Model Context Protocol (MCP) is a standard way to expose tools, data, and prompts to a language model. Instead of wiring each integration by hand, you speak one protocol.

The core idea

An MCP server advertises capabilities (tools to call, resources to read), and any MCP-aware client can use them. The model gets a consistent interface no matter what sits behind it.

Why it helps

  • One integration surface instead of many bespoke ones.
  • Tools are reusable across different clients and models.
  • Clear boundaries make permissions and auditing easier.

When to use it

If you are connecting a model to one service, a direct call is fine. The moment you have several tools, or want them to work across multiple clients, MCP earns its keep.

A quick example

Drop a gist URL on its own line in the Markdown and it embeds inline:

class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello #{@name}!"
end
end
hello = HelloWorld.new("World")
hello.sayHi
view raw hello_world.rb hosted with ❤ by GitHub