Sub topic 1
What MCP is and why it fits team tooling
The Model Context Protocol (MCP) is an open standard that lets AI applications connect to external tools and data through one common interface. This chapter explains the problem MCP solves, what it gives you, and why it suits internal team tooling. Later chapters build a working server.
Prerequisites
This chapter assumes you have:
- Working knowledge of Python or TypeScript. The examples in this tutorial use Python.
- A basic understanding of JSON and JSON Schema.
- Familiarity with running commands in a terminal.
- A basic idea of how LLM tool calling works: the model emits a structured request, and your code runs it.
- Experience calling an internal HTTP API or CLI tool.
The problem MCP solves
Suppose your team has a deploy API, a service catalog, and a set of runbooks. You want AI assistants to use them. Without a standard, each assistant needs its own integration. A plugin for one editor does not work in another, and a chat application needs a third version.
With M assistants and N tools, that is up to M × N custom integrations. MCP changes this to M + N. Each assistant implements the MCP client side once. Each tool is wrapped in one MCP server. Any compatible assistant can then use any server.
What a server can offer
An MCP server exposes capabilities of three kinds. They differ mainly in who decides when each one is used.
| Capability | What it is | Who controls it |
|---|---|---|
| Tool | A function the model can call, such as `get_service_owner` | The model decides to call it |
| Resource | Read-only data addressed by URI, such as a runbook | The application decides what to load |
| Prompt | A reusable instruction template | The user selects it |
Tools are the most common starting point, and the next chapters focus on them. The right choice depends on the need. Use a tool when the model must act or look something up on demand. Use a resource when you want to supply stable reference text. Use a prompt when a workflow should be one click for a person.
Why it fits team tooling
Internal tools have a few traits that make MCP a good match.
- One integration, many assistants. Team members use different editors and chat applications. One server serves them all.
- A typed contract. Each tool declares a JSON Schema for its inputs. The model sees allowed values and ranges, and invalid arguments are rejected before your code runs.
- Your code stays where it is. The server runs in your environment, close to your internal APIs. It decides what to expose and what credentials to use. The model never receives raw access to your systems.
- Reuse of existing logic. A server can wrap calls you already make to an HTTP API or CLI tool. It adds a description and a schema so a model can use them.
- Reviewable surface. The list of tools and their schemas is a small, explicit interface. A team can review it like any other API.
Because tools touch real systems, MCP does not remove the need for care. The protocol standardizes the connection. It does not make a tool safe. Least privilege, input validation, and user confirmation are your responsibility, and a later chapter covers them.
What you will build
Over the following chapters you will write a small Python server, team-tools, that exposes a service-ownership lookup and a deploy history tool. It will also serve a runbook resource and an incident-summary prompt. You will test it with the MCP Inspector, connect it to a host application, and look at how to share it across a team.
Check your understanding
Exercise
Your team has 4 internal tools and uses 3 different AI assistants. How many custom integrations would you need without MCP, and how many pieces would you write with MCP? Which capability type would you use for a runbook the application should load as reference text?
Show answer
Without MCP you could need up to 4 × 3 = 12 custom integrations. With MCP you write 4 servers (one per tool), and each assistant implements the client side once, so the work grows as 4 + 3 instead of 4 × 3. A runbook that the application loads as read-only reference text fits a resource.