What is MCP, how is it different from Skills, and how to add it to Claude Code and Codex

What MCP and Skills each solve, how to connect an MCP server to Claude Code or Codex with one command, which scope to pick, and what to watch for.

Updated Dec 2, 2026

What is MCP, how is it different from Skills, and how to add it to Claude Code and Codex

01What MCP is

MCP (Model Context Protocol) is a standard that Anthropic open-sourced in November 2024. It connects AI apps to outside data and tools. The official site compares it to “a USB-C port for AI applications”: once a tool offers an MCP interface, AI apps like Claude and ChatGPT can all connect to it.

With MCP, an agent can do more than read and write files on your computer. It can also query databases, control a browser, read your Notion docs or look at design files, as long as the tool offers an MCP interface.

02How it differs from a Skill

Anthropic’s official blog uses a comparison: MCP is like letting an employee into the warehouse so they can reach what’s on the shelves; a Skill is like the employee’s know-how about how to use those things. The two are often used together.

Based on the official Anthropic and Claude Code documentation.
MCPSkill
What it isA connection to outside tools and dataA set of instructions for how to do a kind of task
What it solvesLets the AI reach things it can’t reachTeaches the AI to do things it can do, but not well, your way
ExamplesConnect Notion, a database, a browserYour team’s coding rules, release steps, weekly report format
What it looks likeA small program running on your machine, or a remote URLA folder with a SKILL.md file in it

For how to write and install a Skill, see the guide “Claude Code tips: using Skills, and connecting DeepSeek or other models”.

03Add MCP to Claude Code

A remote MCP (the provider gives you a URL), such as Notion’s official one:

claude mcp add --transport http notion https://mcp.notion.com/mcp

An MCP that runs on your computer (the provider gives you a start command). The format is “NAME -- COMMAND”:

claude mcp add NAME -- COMMAND

When adding one, you can choose the scope with --scope.
ScopeWho can use itWhere it’s stored
local (default)Only you, only in the current projectYour own ~/.claude.json
projectThe whole team.mcp.json in the project root, which you can commit to Git
userOnly you, in all projectsYour own ~/.claude.json
  • Type /mcp in Claude Code to see whether each MCP is connected, sign in to services that need authorization, or turn one off for now.
  • Run claude mcp list in Terminal to list all MCPs and their status.

04Add MCP to Codex

codex mcp add NAME -- COMMAND

  • For a remote MCP, use --url followed by the URL.
  • Added MCPs are saved in ~/.codex/config.toml, each as a [mcp_servers.NAME] section. You can also edit this file directly.
  • Type /mcp in Codex to see the MCPs that are connected.

05Safety reminder

Claude Code’s docs warn: before you connect an MCP, make sure you trust it. An MCP that fetches outside content may let the AI read malicious instructions that someone planted (prompt injection). Only install from official or trusted sources, and remove the ones you no longer use.