Skills vs MCP: when a skill beats a server
An Agent Skill is a folder of instructions and scripts loaded on demand. An MCP server is a program that exposes tools. What each costs, reaches, and risks.
- Published
- Reading time
- 16 min read
In short
- An Agent Skill is a folder with a SKILL.md file that an agent reads only when a task matches its description. An MCP server is a separate program that exposes tools, resources, and prompts to any MCP client over stdio or Streamable HTTP.
- A skill costs about 100 tokens of context until it is used, and its scripts add only their output. Tool definitions from MCP servers are sent on every request unless the client defers them, and Anthropic counted 58 tools from five servers at about 55,000 tokens.
- A skill has no credentials and no reach of its own. It acts with whatever the agent's environment can already do. An MCP server holds the credential, runs its own access controls, and is the only one of the two with an authorization boundary.
- Use a skill for procedure, conventions, and deterministic local work. Use an MCP server for authenticated access to a system the agent cannot otherwise reach. Most production agents need both: the server for access and the skill for how to use it.
An Agent Skill is a folder containing a SKILL.md file of instructions, plus optional scripts and reference files, that an agent reads only when a task matches the skill's description. An MCP server is a separate program that exposes tools, resources, and prompts to an AI application over the Model Context Protocol. Skills vs MCP is therefore a choice between two different things: a skill tells the agent how to do a job, and a server gives it access to a system it could not otherwise reach.
They are compared because both extend what an agent can do, both load into the same context window, and Claude Code and claude.ai support both at once. This article covers what each one is as of November 2026, what each costs in tokens, where each runs, how they differ on security and governance, and when a skill is the better choice than a server.
What an Agent Skill is
An Agent Skill is a directory whose SKILL.md file starts with YAML frontmatter, a name and a description at minimum, followed by Markdown instructions. The Agent Skills specification caps name at 64 characters of lowercase letters, digits, and hyphens, and description at 1,024 characters. Optional scripts/, references/, and assets/ folders hold code, documentation, and templates.
---
name: pdf-processing
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
---
# PDF processing
Extract text with pdfplumber. For form filling, read FORMS.md.
Run scripts/fill_form.py to write field values; do not edit the PDF by hand.The format was developed by Anthropic, which published it as an open standard in December 2025. In Anthropic's own products, skills work in the Claude API, Claude Code, claude.ai, and Managed Agents. Anthropic ships pre-built skills for PowerPoint, Excel, Word, and PDF, and custom skills can be uploaded or placed on disk.
Progressive disclosure: three levels, loaded in turn
A skill loads in three stages, which Anthropic calls progressive disclosure. The Agent Skills overview gives the cost of each.
| Level | What loads | When | Context cost |
|---|---|---|---|
| 1. Metadata | name and description | At startup, in the system prompt | About 100 tokens per skill |
| 2. Instructions | The body of SKILL.md | When a request matches the description | Under 5,000 tokens |
| 3. Resources | Reference files, scripts, templates | When the instructions point to them | None until read. A script's output only |
The agent reads SKILL.md with a shell command such as cat, so a skill needs an environment with a filesystem and code execution. Scripts are the part that sets skills apart from a long prompt. When Claude runs fill_form.py, the script's code never enters the context window, and only what it prints does. A skill can bundle a full API reference or a large dataset at no context cost until a task needs one file from it.
The description does the selecting. It is the text Claude matches a request against, so it must say what the skill does and when to use it. A vague description such as "Helps with documents" leaves the skill unused, or used on the wrong tasks.
What an MCP server is
An MCP server is a program that provides context and actions to an MCP client. In the MCP architecture, a host application such as Claude Code or VS Code creates one client per server, and messages are JSON-RPC 2.0. What is MCP? covers the protocol in depth.
A server exposes three primitives:
- Tools: functions the model can call, such as a database query or an API request.
- Resources: data the application can read, such as a file or a schema.
- Prompts: reusable templates that structure an interaction, such as few-shot examples.
The client lists tools with tools/list, passes their names, descriptions, and JSON Schemas to the model, and runs the ones the model asks for with tools/call. Tool calling explains that loop at the API level.
A server runs in one of two places. A local server is a process the host starts on the same machine and talks to over stdio. A remote server runs on someone else's infrastructure and is reached over Streamable HTTP, usually with an OAuth token. Since the 2026-07-28 revision the protocol is stateless: every request carries the protocol version and capabilities, and servers infer nothing from earlier requests.
Skills vs MCP at a glance
The two differ in what they contain, who executes the work, and where the access lives.
| Agent Skill | MCP server | |
|---|---|---|
| What it is | A folder: SKILL.md, scripts, references | A running program that speaks MCP |
| What it gives the agent | Procedure, conventions, and local code | Tools, resources, and prompts |
| Idle context cost | About 100 tokens per skill | Every tool definition, unless the client defers them |
| Who executes the work | The agent, in its own environment | The server, in its own process |
| What it can reach | What the agent's environment can reach | What the server's credentials allow |
| Credentials | None of its own | Held by the server, often via OAuth |
| Portability | Agents that read the Agent Skills format | Any MCP client |
| Distribution | A Git folder, a zip upload, or a plugin | A package, a binary, or a URL |
What each costs in context tokens
A skill costs about 100 tokens until it is used. An MCP server costs its full tool catalog on every request, unless the client defers definitions until the model searches for them.
Twenty skills therefore add about 2,000 tokens of metadata to every request. On the MCP side, Anthropic's engineering team counted 58 tools across five servers (GitHub, Slack, Sentry, Grafana, and Splunk) at about 55,000 tokens before the conversation starts, and has seen tool definitions reach 134,000 tokens internally. The GitHub server alone accounted for about 26,000.
The agent loop resends the request on every turn, so those definitions are read on every turn. Prompt caching lowers their price, but cached tokens still take up the window, and the MCP client best practices warn that adding or removing tool definitions mid-conversation invalidates the cached prefix.
Clients now defer MCP tool definitions
The gap is smaller than those numbers suggest in clients that defer tools. MCP's own guidance is to switch to progressive tool discovery once definitions pass a threshold such as 1% to 5% of the context window, giving the model a search tool and loading full schemas only for the tools it picks.
Claude Code does this by default. With MCP tool search, only tool names and server instructions load at session start. ENABLE_TOOL_SEARCH=auto instead loads tools upfront while their definitions total under 10% of the context window. The Claude API offers the same through defer_loading on an MCP toolset. Deferral is the same idea as progressive disclosure, applied to tools: a short entry is always present, and the detail arrives on demand.
The cost after the first use
Results add a second cost on both sides. A skill's script prints a line or a summary, while an MCP tool result enters the context in full, subject to the host's limits. Claude Code warns when an MCP tool output exceeds 10,000 tokens and, by default, stores results above 25,000 tokens in a file instead (MAX_MCP_OUTPUT_TOKENS changes the limit).
A triggered skill is not free either. In Claude Code, invoked skill content stays in context for the rest of the session, and after compaction each re-attached skill keeps its first 5,000 tokens, within a shared budget of 25,000. A 4,000-token SKILL.md loaded on turn two is read again on every turn after it. Keep SKILL.md under 500 lines and move detail into reference files, as Anthropic's authoring guide advises. Context engineering covers how to budget the window as a whole.
Where each runs and what it can reach
A skill runs inside the agent's environment and can reach only what that environment can reach. An MCP server runs in its own process, local or remote, and reaches whatever its credentials allow.
The environment differs by product, and that decides what a skill can do. Anthropic's overview lists the constraints per surface:
| Surface | Network access for skills | Packages |
|---|---|---|
| Claude API | None. Skills cannot call external APIs | Pre-installed only, no runtime installs |
| claude.ai | Full, partial, or none, set by user and admin settings | Can install from npm and PyPI |
| Claude Code | Same as any program on the user's machine | Local installs recommended |
On the Claude API, skills run in the code execution tool's container, which must be enabled on the request, and up to 20 skills can be attached per request. A skill there can transform files and run deterministic code, but it cannot fetch a record from a CRM. In Claude Code the same skill can run curl with whatever tokens sit in the developer's shell, which is more reach and more risk.
An MCP server inverts this. The agent never holds the database password or the SaaS token. It asks the server to run a tool, and the server decides whether the caller may, using its own authentication and access controls. A remote server serves many clients from one deployment, and a local stdio server runs with the privileges of the user who started it.
The Claude API's MCP connector shows where the line falls on Anthropic's platform. It connects the Messages API to remote servers over HTTPS, supports only the tools primitive, and cannot reach local stdio servers. That is how an API agent with skills in a no-network container still reaches an external system: the MCP server makes the call, outside the container.
Security and governance differences
Both carry real risk, but in different places. A skill's risk is the code and instructions it brings into the agent's environment. An MCP server's risk is the access it holds and the untrusted content it returns.
Skills: treat installation like installing software
Anthropic's guidance is to use skills only from trusted sources and to audit any other skill before use, because a malicious skill can direct Claude to call tools or run code for purposes other than the one it states. The Skills for enterprise guide rates these indicators as high risk during review:
- Scripts in the skill directory, which run with full environment access
- Instructions to ignore safety rules, hide actions, or change behavior conditionally
- References to MCP tools, which extend the skill's access beyond itself
- URLs,
curl,fetch, orrequestscalls, a possible exfiltration path - Hardcoded API keys or tokens
Governance tooling for skills is thinner than for servers. Claude Enterprise can scan custom skills uploaded in claude.ai and Cowork, blocking any that fail, but skills uploaded through the Skills API are not scanned. API skills are shared workspace-wide, and a request that omits version runs the latest upload, so anyone in the workspace who pushes a new version changes what production agents run. Pin versions. Custom skills also do not sync between the API, claude.ai, and Claude Code, so Git is the only single source of truth. Agent Skills data is not eligible for zero data retention.
In Claude Code, frontmatter adds controls. allowed-tools pre-approves specific tools while the skill runs, disable-model-invocation: true limits a skill to explicit /name use, and administrators can set disableSkillShellExecution to block the shell commands a skill can run as it loads to inject context.
MCP servers: authorization, approval, and untrusted results
MCP puts the boundary in the protocol. A remote server authenticates each request, and the security best practices forbid token passthrough: a server must not accept tokens that were not issued for it. They also call for minimal OAuth scopes with step-up for privileged operations, and for consent dialogs that show the exact command before a client starts a new local server.
The tools specification says there should always be a human in the loop who can deny a tool call, and that clients must treat tool annotations as untrusted unless the server is trusted. A tool result is data from outside, and it can carry prompt injection. MCP security covers these attacks.
For fleets, Claude Code offers managed MCP configuration with managed-mcp.json, allowedMcpServers, and deniedMcpServers, and servers listed in a project's .mcp.json need approval before they run in an interactive session.
| Control | Agent Skill | MCP server |
|---|---|---|
| Authentication | None. Uses the agent's environment | Per request, OAuth recommended for remote servers |
| Least privilege | Sandbox and host tool permissions | Server-side access control and OAuth scopes |
| Approval | Host permission prompts, allowed-tools in Claude Code | Per tool call, as the spec recommends |
| Review | Read every file and script before install | Vet the server, its scopes, and its tool descriptions |
| Org-wide control | Content scanning in claude.ai Enterprise, version pinning on the API | Managed server lists in Claude Code, a gateway for remote servers |
When a skill beats a server
A skill is the better choice when the agent already has the access it needs and lacks the know-how. These are the cases where a server adds a process to run and secure without adding reach.
- Procedure and conventions. A code review checklist, a commit message format, a release runbook, or a style guide. This is knowledge, and an MCP server that returns it as a tool result is a slower way to load text.
- Deterministic local work. Validating a config, filling a PDF form, or converting a file format. A bundled script runs the same way every time and returns one line, where generated code varies from run to run.
- Large reference material used rarely. A database schema split by domain, or a long API reference. Files cost nothing until read, and the agent reads only the one it needs.
- No credential is involved. If the task works on files the agent already has, there is no secret to protect and no reason to stand up a service.
- Many capabilities, each used occasionally. Dozens of skills cost a few thousand tokens of metadata. Dozens of tools cost far more unless the client defers them.
When you need an MCP server
An MCP server is the right choice when the agent needs access it should not hold directly.
- Authenticated access to an external system. A CRM, a ticketing system, a production database, or a SaaS API. The server keeps the credential and the agent never sees it.
- Per-user identity and scopes. A remote server with OAuth acts as the user who signed in, with only the scopes granted, and the server's logs record who did what.
- One integration, many clients. An MCP server works in Claude, ChatGPT, VS Code, Cursor, and other MCP hosts. A team that supports several agent products can write the integration once.
- Live state. A server returns current data on each call. A skill's reference files are a snapshot from the last upload.
- No local execution. An agent on the Claude API cannot reach the network from its skill container, so external calls go through the MCP connector.
How skills and MCP combine
Most production agents use both: the MCP server supplies access, and the skill supplies the procedure for using it well. Anthropic's October 2025 announcement of skills named this pairing as a direction: skills that teach agents "more complex workflows that involve external tools and software."
A skill references MCP tools by fully qualified name, in the ServerName:tool_name format Anthropic's authoring guide recommends, so the agent finds the right tool when several servers are connected. In this example, Billing and Tickets are placeholder names for internal MCP servers:
---
name: refund-triage
description: Triage a customer refund request against billing policy. Use when a user asks whether a refund is allowed or asks to file one.
---
# Refund triage
1. Look up the charge with the Billing:get_charge tool.
2. Run scripts/check_policy.py with the charge JSON. It prints ALLOW, DENY, or REVIEW and the rule that applied.
3. On ALLOW or REVIEW, file a ticket with the Tickets:create_issue tool, using the template in references/ticket.md.
4. Never issue a refund directly. Only a human approves the ticket.The server enforces who may read a charge or file a ticket. The skill encodes the policy check as code and the order of steps as text, and it costs about 100 tokens until someone asks about a refund.
The MCP project points in the same direction. Its client best practices describe a host that connects to a server only when a skill that declares it is invoked, which keeps both the tool definitions and the skill body out of context until a task needs them. Its documentation also publishes a set of skills for building MCP servers, an example of a skill carrying the design knowledge and a server carrying the integration.
The combination resembles MCP code mode, in which the model writes a program against tool APIs and only the program's output returns. A skill script that calls an internal service through the host does the same, with the program written in advance. Code mode suits tasks the model cannot predict, and a script suits a procedure that should run the same way every time.
A short decision checklist
Ask what the agent is missing: access or know-how.
| Question | If yes |
|---|---|
| Does the task need a credential the agent should not hold? | MCP server |
| Do several agent products or teams need the same integration? | MCP server |
| Is the missing piece a procedure, checklist, or convention? | Skill |
| Can a script do the work on files the agent already has? | Skill with a script |
| Does the agent call a system correctly but use it badly? | A skill on top of the existing server |
| Are tool definitions taking a large share of the context window? | Turn on tool search, then move guidance out of tool descriptions into a skill |
Frequently asked questions
What is the difference between Agent Skills and MCP?
An Agent Skill is a folder of instructions, scripts, and reference files that an agent loads on demand and runs in its own environment. An MCP server is a separate program that exposes tools, resources, and prompts over the Model Context Protocol and holds its own credentials. A skill teaches the agent how to do a task, and a server gives it access to a system.
What are Claude Skills?
Claude Skills is the common name for Anthropic's Agent Skills in Claude products. Anthropic ships pre-built skills for PowerPoint, Excel, Word, and PDF, and custom skills can be uploaded to the Claude API or claude.ai, or placed in ~/.claude/skills/ or a project's .claude/skills/ folder for Claude Code. Custom skills do not sync between those surfaces.
Do skills replace MCP?
No. A skill has no credentials and no reach beyond the agent's environment, and on the Claude API its container has no network access at all. Skills replace MCP servers only where a server was used to deliver instructions or run local code. For authenticated access to external systems, MCP is still the mechanism, and a skill can tell the agent how to use it.
How many tokens does a skill use?
About 100 tokens per skill for its name and description, loaded at startup. The SKILL.md body, recommended at under 5,000 tokens, loads only when the skill is triggered. Bundled files cost nothing until read, and a script adds only its output. In Claude Code, a triggered skill's content then stays in context for the rest of the session.
Can a skill call an MCP server?
Yes, through the agent. A skill's instructions can tell the agent to use an MCP tool, written as ServerName:tool_name, and the agent calls it through the MCP client as usual. The skill does not get the server's credentials, and the server still applies its own access controls to each call.
Are Agent Skills only for Claude?
No. Anthropic published the format as an open standard at agentskills.io in December 2025, and other agent products have adopted it. Fields beyond the standard, such as Claude Code's context: fork or disable-model-invocation, work only in the products that implement them.
Are skills from GitHub safe to install?
Only after a full review. A skill can include scripts that run with the agent's access and instructions that change the agent's behavior. Read every file, run the scripts in a sandbox, look for network calls and hardcoded credentials, and pin the reviewed version so a later update does not run unreviewed.
Sources
- 01Agent SkillsClaude API docs
- 02Skill authoring best practicesClaude API docs
- 03Skills for enterpriseClaude API docs
- 04Using Agent Skills with the APIClaude API docs
- 05MCP connectorClaude API docs
- 06Extend Claude with skillsClaude Code docs
- 07Connect Claude Code to tools via MCPClaude Code docs
- 08Equipping agents for the real world with Agent SkillsAnthropic Engineering
- 09Introducing advanced tool use on the Claude Developer PlatformAnthropic Engineering
- 10Agent Skills specificationAgent Skills
- 11Architecture overviewModel Context Protocol
- 12Tools, revision 2026-07-28Model Context Protocol
- 13Client best practicesModel Context Protocol
- 14Security best practicesModel Context Protocol
- 15Build with Agent SkillsModel Context Protocol