Skip to content
zero2vibecodelearn vibe coding
Level 3 · Making it yours 7 min Reviewed by the author · Aug 4, 2026

MCP — connecting outside tools

MCP is the standard way to give an agent access to something that is not a file in your project — a database, an issue tracker, a documentation site. Powerful, and worth being deliberate about.

Level 3 · 0 / 4 lessons0%

Your agent can read your project. It cannot, on its own, read your issue tracker, query your database, or fetch a library’s current documentation.

— Model Context Protocol — is the standard that closes that gap. A tool speaks MCP; the agent speaks MCP; they connect.

Connecting one

Two shapes, depending on where the tool lives.

A local tool, started as a command on your machine:

claude mcp add files -- npx @modelcontextprotocol/server-filesystem .

Everything after -- is the command that starts the server.

A remote tool, reachable over the network:

claude mcp add --transport http docs https://example.com/mcp

Then check your work:

claude mcp list

Do all three in the terminal below. Notice the first list — nothing is connected until you connect it.

Quick check

What does everything after `--` mean in `claude mcp add`?

Where a connection lives

Connections have a scope, and picking the right one saves confusion later:

  • Just you, just this project — your own experiment, nobody else sees it.
  • The project, shared — recorded in an .mcp.json file in the repository, so your whole team gets the same connectors.
  • You, everywhere — available in all your projects.

Inside a session, /mcp shows what is connected and handles sign-in for remote servers that need it.

What this is genuinely good for

  • Current documentation. A docs connector is the sharpest available answer to invented API calls: the agent reads what the library actually has today instead of what it half-remembers.
  • Issue trackers and project tools. “Read ticket 412 and implement it” stops being a copy-paste exercise.
  • Databases. Real schemas beat guessed ones.

Add one, deliberately

Do not connect eight servers on your first afternoon. Every connector adds tools the agent has to choose between, and more choices means more chances to pick wrong. Add the one that solves a problem you actually have.

The honest risk

Text that arrives from a connected system enters your session. If that text contains something that reads like an instruction — a comment in a ticket, a line in a fetched page — it is now sitting in the agent’s context alongside your real instructions.

This is called prompt injection, and it is not theoretical. The mitigations are ordinary and effective:

  • Connect tools you trust, from sources you can identify.
  • Give a connector the narrowest access that does the job — read-only where read-only is enough.
  • Keep reviewing what the agent does. An injected instruction still has to produce a visible action.

Connectors widen the blast radius

A file-editing agent can damage your project. An agent connected to your production database can damage considerably more. Scope the credentials you hand a connector as if they will eventually be misused, because that is the only assumption that ages well.

When you do not need it

Most of your first month does not need MCP at all. The project folder plus a good CLAUDE.md covers an enormous amount of real work. Reach for a connector when you notice yourself pasting the same external information into sessions over and over — that is the signal.

How do I disconnect one?
Do I have to write my own servers?

Check your understanding

Answered 0/3
Mode:

What problem does MCP solve?

What is true about a connected MCP server?

Why be careful about which servers you connect?

Finish the task in the terminal and answer the questions to complete the lesson.

📝 My notes

Saved automatically in this browser · shows up on the Notes page.

Task

Connect a tool, then check the connection. Nothing is connected until you add it.

Tab complete · history · Ctrl+L clear · help commands

  • Not done: Connect a tool to the agent
  • Not done: Check what is connected
  • Not done: See the server reported as connected

Lesson Q&A

What problem does MCP solve?

It is a connector standard. The agent already reads your folder; MCP is how it reaches anything else.

What is true about a connected MCP server?

Nothing attaches itself. Connections are explicit, listable, and removable.

Why be careful about which servers you connect?

Anything the agent reads can try to influence it. A connector to a system you do not trust is a channel into your session.

What does everything after `--` mean in `claude mcp add`?

It is the launch command. Claude Code runs it and talks to the program it starts.

Move between lessons with · search with ⌘K