Guide for AI agents
What is MCP? The Model Context Protocol, explained
MCP, short for Model Context Protocol, is an open standard for connecting AI applications to outside tools and data. An AI app such as Claude, ChatGPT or a code editor connects to an MCP server, sees which tools that server offers, and calls them when you ask: read a file, query a database, open a ticket or make an image. Anthropic released MCP as open source on November 25, 2024.
MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.
- Stands for
- Model Context Protocol
- Created by
- Anthropic, released as open source on November 25, 2024
- Governed as
- Model Context Protocol a Series of LF Projects, LLC. Maintainers take part as individuals, not as company seats.
- Message format
- JSON-RPC 2.0
- Transports
- stdio for local servers, Streamable HTTP for remote servers
- Current version
- 2026-07-28 (the date of the last backwards-incompatible change)
Last reviewed against the MCP specification and Anthropic’s own pages; sources are listed under the FAQ.
Why MCP exists
Before MCP, every link between an AI app and another system was built by hand. Anthropic’s launch post describes the problem: “Every new data source requires its own custom implementation, making truly connected systems difficult to scale.” With several AI apps and many tools, that is one integration for every pair.
MCP replaces those pairs with one shared protocol. A tool maker writes one MCP server, and every app that speaks MCP can use it. An app adds MCP support once, and it can use every MCP server. The MCP site compares it to a USB-C port for AI applications. The specification says MCP takes some inspiration from the Language Server Protocol, which standardized how support for programming languages plugs into code editors.
How MCP works
MCP has three roles. The names confuse many people at first, because the “client” is not you and not your app: it lives inside the app.
- Host
- The AI app you use, such as Claude, ChatGPT, Claude Code, Cursor or VS Code. It holds the conversation and the model, and decides which tools the model may use.
- Client
- A connector inside the host. The host creates one client for each server it connects to, and each client keeps its own connection.
- Server
- A program that offers tools, data or prompts. It runs on your computer (a local server) or on the internet (a remote server).
Host
Your AI app
Conversation and model
- Client 1
- Client 2
- Client 3
Files server
Local · stdio
Database server
Local · stdio
Media server
Remote · HTTP
- Folders on your computer
- A company database
- Image and video models
What happens when you ask for something
01
Discover
When the app connects, its client can send a server/discover request. The server answers with the protocol versions it supports, its capabilities and its name.
02
List the tools
The client asks for the tool list with tools/list. Each tool has a name, a description and a JSON Schema for its inputs. The host passes these to the model.
03
Decide
You ask for something. The model reads the tool descriptions, decides that a tool would help and fills in the arguments.
04
Approve
The host asks you before the tool runs. The specification says hosts “must obtain explicit user consent before invoking any tool.”
05
Call
The client sends tools/call with the tool name and arguments. The server does the work, such as reading a file or calling an API, and returns text, images, audio or links.
06
Answer
The host adds the result to the conversation. The model writes its reply, or calls another tool.
Under the hood these are JSON-RPC 2.0 messages. This is the tool call from the example in the MCP architecture overview, with the _meta fields left out:
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "weather_current",
"arguments": {
"location": "San Francisco",
"units": "imperial"
}
}
}{
"jsonrpc": "2.0",
"id": 3,
"result": {
"resultType": "complete",
"content": [
{
"type": "text",
"text": "Current weather in San Francisco: 68°F, partly cloudy with light winds from the west at 8 mph. Humidity: 65%"
}
]
}
}What is an MCP server?
An MCP server is a program that gives AI apps access to one system through MCP. The MCP docs use a database as their example: the server offers a tool to run queries, the database schema as a resource, and a prompt with sample queries. The server decides what is possible. The AI app only sees what the server lists.
A server can offer three kinds of things, which the protocol calls primitives:
| Primitive | What it is | Who uses it | Example |
|---|---|---|---|
| Tools | Functions that do something | The model, after you approve | Run a query, write a file, make an image |
| Resources | Data to read for context | You or the model | File contents, a database schema, a record |
| Prompts | Reusable templates for a task | You, often picked from a menu | A fixed set of steps to review a pull request |
Clients can offer one feature back: elicitation, which lets a server ask you a question in the middle of a task, for example to confirm an action. Sampling and roots, which older guides still describe, were deprecated in protocol version 2026-07-28, as was logging over the protocol.
Local and remote servers
Local server (stdio)
Your app starts the server as a program on your computer and talks to it through standard input and output. It opens no network port. Typical for files, local Git repositories and developer tools. It runs with your user account’s permissions.
Remote server (Streamable HTTP)
The server runs as a web service at a URL and can serve many clients. Messages go over HTTP POST, with optional streaming. You sign in, and MCP recommends OAuth for that. Typical for online services.
MCP server examples
The MCP project keeps a small set of reference servers that show how the protocol works. In the project’s words they are educational examples, “not production-ready solutions.” To find servers for a particular app or service, the project points to the MCP Registry.
| Server | What it does and how it starts |
|---|---|
| Filesystem | Reads and writes files in folders you allownpx -y @modelcontextprotocol/server-filesystem /path/to/allowed/files |
| Git | Reads, searches and changes Git repositoriesuvx mcp-server-git |
| Fetch | Fetches a web page and converts it for the modeluvx mcp-server-fetch |
| Memory | Keeps a persistent memory as a knowledge graphnpx -y @modelcontextprotocol/server-memory |
| Time | Converts times and time zonesuvx mcp-server-time |
| Everything | A test server with prompts, resources and toolsnpx @modelcontextprotocol/server-everything |
Commands from the reference servers README. Each one starts the server for an app to connect to; on its own it does nothing visible. The project has archived older reference servers, including ones for code hosting, chat, maps, databases and browser automation; some are now maintained elsewhere.
MCP use cases
What MCP is good for depends on the servers you connect. These eight use cases cover the common ones; the first four are the examples on the MCP site itself. Each shows what the server offers and a request you could type.
1.A personal assistant that knows your calendar and notes
Connect your calendar and your notes app, and an assistant can check when you are available, read what you wrote and add the meeting.
Server: Servers for the calendar and the notes app
Example requestFind an open hour with the design team next week and draft an agenda from my launch notes.
2.Turn a design file into a working web app
A coding agent reads the layers, spacing and colors of a design file through a server, then writes the code to match.
Server: A server for the design tool that reads the file
Example requestBuild this landing page from the design file as a React component, matching its spacing and colors.
3.Ask questions of company data in plain words
A chatbot connected to several databases can answer questions that used to need a report request.
Server: Database servers with query tools and the schema as a resource
Example requestWhich product lines had more returns this quarter than last, by region?
4.Design in 3D and send it to a printer
A model can create a 3D design in modelling software and print it, through servers for the software and the printer.
Server: Servers for the 3D app and the printer
Example requestModel a phone stand at a 60 degree angle with a cable slot, then send it to the printer.
5.Give a coding agent the context it needs
With servers for the code, the error tracker and the issue tracker, a coding agent can follow a bug from the report to the line that causes it.
Server: A local Git or filesystem server plus remote servers for errors and issues
Example requestLook at the newest error report for the checkout service, find the cause in the repo and propose a fix.
6.Sort and edit files on your own computer
The Filesystem reference server lets a model list, read, move and write files, but only in the folders you name.
Server: The local Filesystem server
Example requestMove every PDF in my Downloads folder into a folder per month, based on when each file was modified.
7.Read the web and remember it
The Fetch server turns a web page into text the model can read. The Memory server keeps facts between conversations.
Server: The Fetch and Memory reference servers
Example requestRead this documentation page and save its three setup rules to memory for next time.
8.Make images and videos from a chat
Media servers give an agent image and video tools. AI Media Studio runs one: a hosted server named aims with tools such as generate_image, edit_image and generate_video. Results are saved in your workspace and come back as links.
Server: A remote media server, such as aims at app.ai-media-studio.com/mcp
Example requestMake a 16:9 header image of a lighthouse at dusk, then turn it into a short clip with slow waves.
The first four come from “What can MCP enable?” on the MCP site, written here without the product names. The example requests are ours and show the kind of request each setup is for.
Try MCP with images and video
If you use Claude, ChatGPT, Claude Code, Cursor or another MCP client, you can add AI Media Studio’s hosted MCP server and sign in. Your agent then gets tools such as generate_image, edit_image and generate_video. There is also the aims CLI, three Agent Skills and a Claude Code plugin. Agent calls need a paid workspace and spend its credits; plans start at $19/month.
See the agent setupMCP vs. APIs and function calling
MCP vs. an API
MCP does not replace APIs. Many MCP servers call an ordinary API behind the scenes. What MCP adds is one common way for AI apps to find out what a service can do and call it, so each app does not need its own code for each API.
MCP vs. function calling
Function calling, also called tool use, is the model’s ability to ask for a function with arguments. MCP is the layer around it: where the tools come from, how they are described, how the call reaches the system and how the result comes back. The MCP docs draw the line clearly: MCP “does not dictate how AI applications use LLMs or manage the provided context.”
MCP and Agent Skills
Agent Skills are instruction files that tell an agent how to do a task. They work well with MCP: the skill explains how, the server provides the tools. The MCP specification lists “Skills over MCP” as one of its extensions.
Advantages of MCP
The MCP site lists the benefits by who you are. We added two that follow from how the protocol is built.
- For developers
- MCP “reduces development time and complexity when building, or integrating with, an AI application or agent.”
- For AI apps and agents
- They get access to a whole ecosystem of data sources, tools and apps, instead of only what their makers built in.
- For you
- More capable apps that can use your data and act for you when needed.
- Build once, use in many apps
- One server works in every app that supports MCP. The MCP site names Claude, ChatGPT, Visual Studio Code and Cursor among them.
- Open
- The specification, the SDKs and the reference servers are open source, and the project is governed in public.
Risks and limits
- Tools run real actions. The specification says tools “represent arbitrary code execution and must be treated with appropriate caution.” Read what a tool call will do before you approve it.
- Do not trust every description. The specification calls descriptions of tool behavior untrusted unless they come from a trusted server. A server you do not trust can put misleading text in its tool descriptions and results, and the model reads that text.
- Local servers run with your permissions. The MCP security guide asks apps to warn that servers run with the same privileges as the client and to show the exact command before a one-click install. Install local servers only from sources you trust.
- Grant the least access. The security guide warns against broad scopes such as full access granted up front. Prefer read-only or narrow permissions, and revoke a connection you no longer use.
- Many servers mean many tool descriptions for the model to read. The MCP docs suggest progressive tool discovery for apps that connect many servers, instead of loading every tool at once.
- The protocol still changes. Version 2026-07-28 made every request self-contained and deprecated sampling, roots and protocol logging. Guides and servers written for 2025-11-25 and earlier describe the older handshake-based design.
How to connect an MCP server
The steps are the same in most apps; the menu names differ.
- 01
Pick an app that supports MCP
Claude, ChatGPT, Claude Code, Cursor, VS Code and many others are MCP hosts. Look for a setting called connectors, MCP servers or tools.
- 02
Get the server’s URL or command
A remote server gives you a URL. A local server gives you a command, such as npx or uvx followed by a package name, often as a JSON snippet for your app’s configuration file.
A local server in an app’s configuration (from the reference servers README) { "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-memory"] } } } - 03
Add it to your app
Paste the URL into the app’s connector settings, or add the command to its configuration. In Claude Code, a remote server is one terminal command.
Claude Code, remote server claude mcp add --transport http <name> <url> - 04
Sign in and approve
A remote server usually opens a sign-in page. The app then lists the server’s tools, and asks you before the model uses one.
- 05
Ask in plain words
You do not call tools by name. Ask for the result and the model picks the tool. Name the server when several could do the job.
MCP FAQ
What does MCP stand for in AI?
Model Context Protocol. In AI, MCP almost always means this open standard for connecting AI apps to tools and data. Outside AI the letters have other meanings; this page is about the protocol.
Who created MCP, and who owns it?
MCP was created at Anthropic, which released it as open source on November 25, 2024. Today the project is governed as Model Context Protocol a Series of LF Projects, LLC, with lead and core maintainers who take part as individuals rather than as company representatives.
Is MCP only for Claude?
No. Any app can implement it. The MCP site lists Claude and ChatGPT, and development tools such as Visual Studio Code and Cursor, among the apps that support MCP.
Is an MCP server the same as an API?
No. An API is how one program talks to a service. An MCP server is a program that describes a service’s actions as tools an AI app can discover and call through MCP. Many MCP servers use an API underneath.
Do I need to code to use MCP?
No. In many apps you add a remote server by pasting its URL and signing in. Local servers need a command in a configuration file. Building your own server needs code; the MCP project publishes official SDKs for several programming languages.
Is MCP safe?
The protocol requires apps to ask before a tool runs, but it cannot make a server trustworthy. Connect servers from sources you trust, read each tool call before you approve it, and give each server the least access it needs.
What is the latest version of MCP?
The current version is 2026-07-28. MCP versions are named after the date of the last backwards-incompatible change, so compatible updates keep the same name.
Can MCP generate images or videos?
MCP itself generates nothing. A server with image or video tools does, and the model calls those tools for you. Claude image generation and Claude video generation show how that works in Claude.
Sources, read on
- What is the Model Context Protocol (MCP)?, modelcontextprotocol.io
- Architecture overview, modelcontextprotocol.io
- Specification, version 2026-07-28, modelcontextprotocol.io
- Versioning, modelcontextprotocol.io
- Security Best Practices, modelcontextprotocol.io
- Governance and Stewardship, modelcontextprotocol.io
- Introducing the Model Context Protocol, Anthropic, November 25, 2024
- Model Context Protocol servers (reference servers README), GitHub
AI Media Studio is not affiliated with Anthropic, OpenAI, Microsoft, Anysphere, the Linux Foundation or the Model Context Protocol project. Claude, ChatGPT, Visual Studio Code and Cursor are trademarks of their owners.