Skip to content
zero2vibecodelearn vibe coding
Level 3 · Making it yours 7 min Reviewed by the author · Oct 22, 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%
In this lesson

Your agent can read your project. It cannot, on its own, read your issue tracker, query your , 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 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

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 , 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

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?

`claude mcp remove <name>`. Connections are explicit in both directions, and removing one is instant.

Do I have to write my own servers?

No. There is a growing set of ready-made ones, official and community-built. Check what a server does and who publishes it before you connect it — it runs on your machine with your credentials.

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?

Giving the agent access to systems that are not files in your project — 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?

You connected it deliberately, and you can list and remove it the same way — Nothing attaches itself. Connections are explicit, listable, and removable.

Why be careful about which servers you connect?

A server can feed text into your session, and text can contain instructions — 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.

Commands in this lesson

Terms in this lesson

Move between lessons with ← → · search with ⌘K

Written and reviewed by Mikhail Kuzmitskii