Agent Skills vs MCP Servers: What's the Difference?
Agent Skills (SKILL.md folders) teach an AI agent how to do a task. MCP servers give it tools and data. What each one is, how they work together, and when to use which, with current GitHub and filesystem MCP setup examples.
People often say "MCP skills" as if it were one thing. It's actually two separate open formats that solve different problems:
- Agent Skills are folders of instructions (a
SKILL.mdfile plus optional scripts and references). They teach an agent how to do a specific task. - MCP servers are programs that speak the Model Context Protocol. They give an AI application access to tools and data, such as a GitHub API, a database or a filesystem.
A skill doesn't need MCP, and an MCP server doesn't need skills. They work well together, though, and this article explains how. The definitions come from the two specifications: agentskills.io and modelcontextprotocol.io (both checked 2026-11-05). The comparison and recommendations are our own. The Agent Skills site doesn't compare itself to MCP.
What Is an Agent Skill?
The Agent Skills site describes skills as "a lightweight, open format for extending AI agent capabilities with specialized knowledge and workflows" (What are skills?, checked 2026-11-05). It also says the format was originally developed by Anthropic and released as an open standard.
Per the specification (checked 2026-11-05):
- A skill is a directory containing at least a
SKILL.mdfile. Optional subfolders includescripts/(executable code),references/(extra docs) andassets/(templates, data). SKILL.mdstarts with YAML frontmatter, followed by Markdown instructions.- Required fields:
name(1–64 characters, lowercase letters, numbers and hyphens, and it must match the folder name) anddescription(1–1024 characters, saying what the skill does and when to use it). - Optional fields:
license,compatibility,metadata, and the experimentalallowed-tools.
Progressive disclosure
Skills are cheap to keep around because agents load them in stages. The spec describes it like this:
- Discovery: only each skill's
nameanddescriptionare loaded at startup (the spec estimates about 100 tokens). - Activation: when a task matches the description, the agent reads the full
SKILL.md. The spec recommends keeping it under 5,000 tokens and 500 lines. - Execution: referenced files and scripts are loaded only when needed.
This is why the description field matters so much. It's what the agent uses to decide whether to open the skill at all.
Where skills are supported
Support is documented by each tool:
- Claude Code: "Claude Code skills follow the Agent Skills open standard." Project skills live in
.claude/skills/<skill-name>/SKILL.mdand personal skills in~/.claude/skills/. Claude can use a skill when it's relevant, or you can invoke one with/skill-name(Claude Code skills docs, checked 2026-11-05). - Cursor: loads skills from
.agents/skills/and.cursor/skills/(plus~/equivalents), and also reads.claude/skills/for compatibility. The agent decides when a skill is relevant, or you invoke one with/(Cursor skills docs, checked 2026-11-05).
The Agent Skills site keeps a client showcase of other compatible tools. Some clients add their own optional frontmatter fields on top of the standard (Claude Code and Cursor both do), so stick to the standard fields if you want the skill to be portable.
What Is an MCP Server?
The Model Context Protocol is a client–server protocol. From the MCP architecture overview (checked 2026-11-05):
- MCP host: the AI application (the overview gives Claude Code, Claude Desktop and VS Code as examples).
- MCP client: a connection the host creates for each server.
- MCP server: "a program that provides context to MCP clients."
Servers expose three core primitives:
- Tools: functions the AI can call (file operations, API calls, database queries)
- Resources: data that provides context (file contents, records, API responses)
- Prompts: reusable templates for interactions with the model
Servers talk to clients over JSON-RPC, through one of two transports. stdio is used for local processes on your machine. Streamable HTTP is used for remote servers, with OAuth recommended for authentication.
In short, MCP is plumbing: it standardizes how a capability is offered. It doesn't tell the model what workflow to follow.
Skills vs MCP Servers at a Glance
| Agent Skill | MCP server | |
|---|---|---|
| What it is | A folder: SKILL.md plus optional scripts/references/assets | A running program speaking the MCP protocol |
| Main job | Procedural knowledge: how to do a task, step by step | Capabilities: tools, resources and prompts the AI can use |
| How it's installed | Copy the folder into a skills directory the agent reads | Add a server entry (command or URL) to the host's MCP config |
| Runs as | Text the agent reads; bundled scripts run with the agent's own tools | A local process (stdio) or remote service (HTTP) |
| Loaded | Name/description at startup; body on activation | Connected at session start; tools listed for the model |
| Credentials | Usually none (unless its scripts call services) | Often needs tokens or OAuth (e.g. GitHub, database) |
| Defined by | agentskills.io specification | Model Context Protocol |
Skills vs MCP prompts: MCP also has a "prompts" primitive, which is a reusable template served by a server. A skill is different: it's a portable folder that lives with your project or user config, and it can bundle scripts and reference files.
How They Work Together
The most useful setups combine both. The MCP server gives the agent the ability to do something, and the skill gives it the procedure.
Skill: pr-review (.claude/skills/pr-review/SKILL.md)
├─ When: "review PR #123", "check this pull request"
├─ Steps: fetch diff → check against checklist → draft review comments
└─ Uses tools from: GitHub MCP server (read PRs, diffs, comments)
Without the GitHub MCP server, the skill can only work on a diff you paste in. Without the skill, the agent can read PRs but reviews them however it sees fit. Together you get a repeatable review that uses live data.
When to Use Which
Write a skill when:
- You keep pasting the same multi-step instructions ("our release checklist", "how we write migrations").
- The task needs domain knowledge or templates more than new system access.
- You want the same workflow to work in several skills-compatible agents.
Add an MCP server when:
- The agent needs live data or actions it can't reach otherwise: issue trackers, databases, cloud APIs, browsers.
- A vendor already publishes an official server for its product.
Use both when a workflow needs live data and a consistent procedure: PR reviews, incident triage, ticket grooming.
Use neither for simple project conventions. Those belong in your rules or instruction file (AGENTS.md, CLAUDE.md, Cursor .mdc rules). See How to Write Cursor Rules.
Example: A Minimal SKILL.md
Illustrative example. It follows the field rules in the Agent Skills specification, but we haven't benchmarked it. Adapt it and test it in your own agent.
pr-review/SKILL.md:
---
name: pr-review
description: Reviews a GitHub pull request for correctness, security and test coverage, and drafts review comments. Use when the user asks to review, check or comment on a PR or diff.
license: MIT
---
# PR review
## Steps
1. Get the diff. If a GitHub MCP server is connected, use its pull request tools
to read the PR, its files and existing comments. Otherwise, ask the user to paste the diff.
2. Read `references/checklist.md` and check each changed file against it.
3. Group findings as **Blocking**, **Should fix**, **Nit**.
4. For each finding give: file and line, what's wrong, why it matters, a suggested fix.
5. Do not post comments to GitHub unless the user explicitly asks you to.
## Rules
- Skip style issues a linter already enforces.
- Say "no blocking issues found" rather than inventing problems.
The folder name must be pr-review to match name. The spec links a reference validator (skills-ref) that checks frontmatter and naming.
Example: Connecting GitHub's Official MCP Server
The old @modelcontextprotocol/server-github npm package is now marked "Archived and unmaintained" on npm, and the reference servers that were retired have moved to modelcontextprotocol/servers-archived (checked 2026-11-05). Don't use it for new setups. GitHub maintains its own server at github/github-mcp-server. Its README documents two options (checked 2026-11-05):
1. Remote server (hosted by GitHub) at https://api.githubcopilot.com/mcp/.
In Claude Code, the MCP docs show (checked 2026-11-05):
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
--header "Authorization: Bearer YOUR_GITHUB_PAT"
In Cursor, GitHub's Cursor install guide uses ~/.cursor/mcp.json (checked 2026-11-05):
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
2. Local server in Docker using the public image ghcr.io/github/github-mcp-server. With a personal access token, the README's Claude Code example is:
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PAT -- \
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
The README also documents an OAuth login flow for the Docker setup, --toolsets to limit which tool groups are exposed, and a read-only mode (--read-only, or GITHUB_READ_ONLY=1 in Docker). Each host has its own config syntax, so follow GitHub's per-host installation guides.
Example: A Current Reference Server (Filesystem)
Some reference servers are still maintained in modelcontextprotocol/servers. For example, @modelcontextprotocol/server-filesystem (version 2.2.0 on npm, checked 2026-11-05) only accesses directories you list. Its README shows this config for Claude Desktop:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
The README also documents a --read-only flag that exposes only non-writing tools. It's a sensible default while you're experimenting.
Security Checklist
MCP servers
- Prefer vendor-maintained or actively maintained servers. Check npm or GitHub for "archived" or "deprecated" notices before installing.
- Use least-privilege tokens (fine-grained PATs, read-only scopes) and read-only modes where offered.
- Keep tokens out of committed config files. Claude Code's project-scoped
.mcp.jsonsupports${VAR}expansion for this (Claude Code MCP docs, checked 2026-11-05). - Review which tools a server exposes, and keep approval prompts on for write actions.
Skills
- Read
SKILL.mdand any bundledscripts/before enabling a skill. A skill is instructions plus code that your agent will run. - Be cautious with
allowed-tools. The spec marks it as experimental, and in Claude Code it pre-approves tools for the turn that invokes the skill. - Try new skills on a non-critical repo first.
Find Skills and MCP Servers on HyperPrompt
- Skills: browse the Skills Directory. Examples include Code Review, Git PR Description, GitHub PR Reviewer and Test Generator. Community-submitted skills vary in format, so check that the frontmatter matches the spec above before you rely on one.
- MCP servers: browse the MCP Servers Directory, for example GitHub, Filesystem and Memory. Always cross-check a listing against the server's own README for the current install method.
Official References
- Agent Skills specification: https://agentskills.io/specification (checked 2026-11-05)
- What are skills?: https://agentskills.io/what-are-skills (checked 2026-11-05)
- MCP architecture overview: https://modelcontextprotocol.io/docs/learn/architecture (checked 2026-11-05)
- MCP reference servers: https://github.com/modelcontextprotocol/servers and archived servers: https://github.com/modelcontextprotocol/servers-archived (checked 2026-11-05)
- GitHub MCP Server: https://github.com/github/github-mcp-server (checked 2026-11-05)
- Claude Code — skills: https://code.claude.com/docs/en/skills; MCP: https://code.claude.com/docs/en/mcp (checked 2026-11-05)
- Cursor — skills: https://cursor.com/docs/skills; MCP: https://cursor.com/docs/mcp (checked 2026-11-05)
Related: Cursor vs Windsurf vs Claude Code compares how each tool handles MCP and instruction files. To sharpen the instructions inside a skill, try the Prompt Grader.
Related Articles
How to Create Claude Code Skills: A SKILL.md Guide with a Worked Example
Create an Agent Skill for Claude Code: directory layout, SKILL.md frontmatter rules, supporting files and scripts, where Claude Code discovers skills, how they are invoked, failure handling, and how skills differ from MCP servers.
Cursor vs Windsurf (Devin Desktop) vs Claude Code: Editors, Agents, Rules, MCP and Pricing Compared
A comparison of Cursor, Windsurf (now documented as Devin Desktop) and Claude Code based on their official docs: editor integrations, terminal and agent workflows, rules and instruction files, MCP setup and current pricing pages.
How to Write Cursor Rules: .mdc Project Rules, AGENTS.md and Legacy .cursorrules
How to write Cursor project rules in .cursor/rules/*.mdc: frontmatter (description, globs, alwaysApply), the four rule types, AGENTS.md in root and subdirectories, and migrating from a legacy .cursorrules file.