Glossary

Model Context Protocol (MCP)

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is an open protocol for connecting AI applications to external systems. Through it, an AI assistant or coding agent can read a service's data and call its tools. The project compares it to a USB-C port for AI applications.

How it works

The specification names three roles. A host is the AI application, such as a chat app or an editor. Inside it, a client is a connector to a server. A server is a service that offers context and capabilities. They exchange JSON-RPC 2.0 messages.

A server can offer three kinds of feature:

  • Tools: functions for the AI model to call.
  • Resources: context and data for the user or the model to use.
  • Prompts: templated messages and workflows for users.

Messages travel over a transport. The specification defines two: stdio, where the client starts the server as a local process and they talk over its standard input and output, and Streamable HTTP, where each message is an HTTP POST to a single MCP endpoint. Authorization is optional in the protocol. For HTTP-based transports it is based on OAuth 2.1, and usually the user approves the connection in a browser. A server over stdio takes its credentials from the environment instead.

Why it matters

A service that publishes one MCP server can be reached from every AI application that supports the protocol, and an application that speaks MCP can use many services, without either side building each pairing separately.

What can go wrong

  • An agent calls a tool that changes something you did not mean to change. The specification asks hosts to get the user's explicit consent before invoking any tool.
  • A tool's description is treated as trustworthy when the server is not. The specification says such descriptions should be considered untrusted unless they come from a trusted server.
  • A connection gets more access than its job needs. The authorization rules let a server ask for specific scopes, and clients are meant to request only the scopes they need.
  • An access token ends up in a URL. The specification forbids putting tokens in the query string; they go in the Authorization header.

Check it

Ranetrace hosts an MCP server that your own agent connects to over OAuth: when you approve the connection you pick one website and whether the agent may write, and the agent can then read errors, monitor verdicts and notification rules and, with writes allowed, change error states and open maintenance windows. There is no AI model inside Ranetrace: the AI is the agent you bring, and Ranetrace answers its tool calls. AI agents has the steps to connect.

Start monitoring today

Websites go down and code throws errors. Ranetrace tells you when it happens to yours, why it matters and what to do next.

Start your 30-day free trial From $9 a month. No credit card required.