Skip to content
AI Skill Index

Agent skills vs MCP: what each does and how they combine

A skill tells an agent how to do a task. MCP gives it access to another system. What each one is, when you need which, and how the two work together.

Editorial·9 min read·
Sign in to save

An agent skill and an MCP server both extend what an AI agent can do, but they add different things. A skill is a folder of instructions, with a SKILL.md file at its root, that teaches the agent how to do a task. MCP, the Model Context Protocol, is an open standard for connecting an AI application to outside systems, so the agent can read their data and call their tools. Anthropic's Claude Code docs put it in two sentences: "MCP connects Claude to external services. Skills extend what Claude knows, including how to use those services effectively."

So you rarely have to pick one. Use MCP when the agent can't reach a system, and a skill when it can reach everything it needs but doesn't know how you want the work done. When it needs both the access and the method, use both.

The facts below come from the documentation of Anthropic, OpenAI and the MCP project, read on November 19, 2026, and each section links to its source.

What an agent skill is

A skill is a folder. The Agent Skills specification requires one file in it, SKILL.md, which opens with YAML front matter holding a name and a description. The instructions follow in Markdown. The folder can also hold a scripts/ folder with code the agent can run, a references/ folder with documentation it reads when needed, and an assets/ folder for templates and data files.

migration-safety-checker/
├── SKILL.md          # name, description, instructions
├── references/       # read only when a task needs them
└── scripts/          # code the agent runs

The agent doesn't read all of that up front. At startup it loads each skill's name and description, about 100 tokens per skill according to Anthropic's Agent Skills overview. When a request matches a description, it reads the full SKILL.md, and it opens the other files only when the instructions point to them. When it runs a bundled script, only the script's output enters the context, not its code.

Claude Code, the Claude apps, the Claude API and OpenAI Codex all read skills. How to install agent skills shows where the folder goes in each, and What is an agent skill, and why now? covers the idea behind them.

What MCP is

The Model Context Protocol is an open-source standard for connecting AI applications to external systems. Its architecture overview names three participants. The host is the AI application, such as Claude Code or Claude Desktop. The host creates one client for each server it connects to. The server is a program that provides context, and it can offer three kinds of things:

  • Tools are functions the AI application can call to take an action, such as an API call or a database query.
  • Resources are data that give the model context, such as file contents or database records.
  • Prompts are reusable templates for working with a model.

A server can run on your machine and talk to the host over standard input and output, or run remotely and talk over HTTP. The MCP site lists Claude, ChatGPT, Visual Studio Code and Cursor among the applications that support it.

Agent skills vs MCP at a glance

Agent skillMCP server
What it isA folder with a SKILL.md fileA program that speaks the Model Context Protocol
What it gives the agentInstructions, reference material and scriptsTools to call and data to read in another system
What you writeMarkdown, plus optional scriptsServer code, or one config entry for a server someone else runs
Where it runsIn the agent's own environmentOn your machine or on a remote host
What Claude Code loadsName and description with every request, the full skill when usedTool names at session start, a tool's full schema when Claude needs it
Examples from Anthropic's docsA code review checklist, a deploy workflow, an API style guideA Slack integration, database queries, browser control

When a skill is the right choice

Use a skill when the agent already has the access it needs and gets the method wrong. Anthropic's guide to extending Claude Code names the moment as the third time you paste the same playbook or multi-step procedure into chat. Typical cases:

  • An output format that has to be the same every time, such as a commit message or a pull request description.
  • A checklist the agent skips steps of, such as what to check in a database migration before it runs.
  • Reference material the agent needs only for some tasks, such as an API style guide.

The Commit message writer, the Pull request description writer and the Migration safety checker in this site's catalogue are skills of this kind.

When MCP is the right choice

Use MCP when the agent can't see or change the system the work lives in. The Claude Code docs give the trigger as copying data, again and again, from a browser tab Claude can't see. An issue tracker, a team chat, a database or a design file are the usual candidates.

The server does the connecting. In Anthropic's words, MCP gives Claude "purpose-built tools for an external system, with the connection and authentication handled by the server." Instructions in a skill don't give the agent a login to your issue tracker.

How skills and MCP work together

The Claude Code docs describe the combination as "MCP provides the connection; a skill teaches Claude how to use it well". Their example is an MCP server that connects Claude to your database, next to a skill that documents your schema and query patterns. Another is a /post-to-slack skill that holds your team's rules for formatting messages.

Anthropic's help article What are Skills? says the same about the Claude apps. MCP connections give Claude access to tools, and skills teach Claude how to use those tools effectively. Some of the partner skills offered there are built to work with that partner's MCP connector.

The tools also package the two together:

  • A Claude Code plugin can bundle skills, hooks, subagents and MCP servers into one installable unit, according to the same Claude Code guide.
  • In Codex, a skill can declare the MCP servers it depends on in an agents/openai.yaml file, according to OpenAI's Build skills page.

Can a skill do what an MCP server does?

Partly. A skill can bundle a script that calls a web API, and the agent runs it. Whether that works depends on where the skill runs. The Agent Skills overview says skills in Claude Code have the same network access as any other program on your computer, while skills on the Claude API run in a container with no network access. In the Claude apps, network access depends on user and admin settings.

An MCP server keeps the connection and the sign-in in one program that any MCP client can use. A script inside a skill works only where that skill is installed and where its runtime allows network access.

MCP servers can also offer prompts, the reusable templates mentioned above. A skill does more than a template. Claude loads it on its own when a request matches its description, and it can carry reference files and scripts.

What each one costs in context

In Claude Code, both load in stages. Its context cost table lists skills as descriptions with every request and the full content only when a skill is used. For MCP servers it lists tool names at session start and full schemas on demand, and tool search is on by default, so idle MCP tools take up little context.

To keep a skill's description out of the context, set disable-model-invocation: true in its front matter. Claude then never loads it on its own, and you start it with /skill-name. To see how many tokens each loaded MCP tool uses, run /context all.

Check both before you trust them

A skill and an MCP server can both steer what the agent does, so check them the way you would check software before you install it.

For MCP, Anthropic's Claude Code MCP docs say to verify that you trust each server before you connect it, because servers that fetch outside content can expose you to prompt injection. Its help article on custom connectors warns that malicious MCP servers may include hidden instructions that try to make Claude perform unintended actions.

For skills, the Agent Skills overview says to use skills only from trusted sources, and to audit every bundled file of any other skill for unexpected network calls and file access. Skills that fetch data from external URLs carry extra risk, because the fetched content can hold malicious instructions. Every skill page on this site shows the skill's files, so you can read a skill before you download it.

How to add a skill or an MCP server

For skills, How to install agent skills has the steps for each tool. For MCP servers:

  • In Claude Code, run claude mcp add --transport http <name> <url> to add a remote server. The default scope is local, which means this project and only you. Add --scope project to write the server to .mcp.json in the project root, a file you can commit so your team gets the same server. User scope makes a server available in all your projects. Run /mcp to see each server's status.
  • In the Claude app, a remote MCP server is a custom connector. On Pro and Max, go to Customize > Connectors, click "+ Add" and then "Add custom connector". On Team and Enterprise, owners add custom connectors under Organization settings > Connectors. The Free plan allows one custom connector.
  • In OpenAI Codex, run codex mcp add <name> -- <command>, or add a [mcp_servers.<name>] table to ~/.codex/config.toml. OpenAI's MCP page says the ChatGPT desktop app, the Codex CLI and the IDE extension share that configuration.

The Claude Code guide shows where skills and MCP sit next to CLAUDE.md, hooks and subagents.

ShareXLinkedIn

Used in this tutorial

Tool

Claude Code

Anthropic's agentic coding tool for the terminal and IDE.

Tool

Claude

Anthropic's AI assistant, with a free tier and paid plans.

Cookies

We use only the cookies this site needs to work. Optional analytics helps us see which content is worth writing more of — nothing loads until you say yes.

Read the privacy policy