Module 5

MCP in 30 Minutes

MCP comes up in almost every agentic AI session. It is simpler than the name suggests, and one hands-on connection makes it click.

About 30 minPreps you for: MCP sessions and integration labs

The problem MCP solves

In Module 4 you wrote a tool by hand: a description, a function, and the code to pass results back. Now imagine doing that for your calendar, your database, your ticket system and your documents, and then doing it all again for every AI app you use.

The Model Context Protocol is a standard plug. A service publishes its tools once, as an MCP server. Any app that speaks MCP (an MCP client, such as Claude Code or Claude Desktop) can connect and use those tools with no custom code.

MCP clientClaude Code, Claude Desktop, or your own agent.
The protocolA shared language for "what tools do you have?" and "run this one".
MCP serverWraps a real system: files, GitHub, a database, a docs site.

Four things worth knowing before a lab

IdeaPlain meaning
Tools, resources, promptsThe three things a server can offer. Tools are actions. Resources are data to read. Prompts are ready-made instructions.
Local vs remoteA local server is a small program running on your laptop. A remote server lives at a URL. The task below uses a remote one, so there is nothing to install.
ConnectorThe Claude app's word for an MCP server you have connected, such as Google Drive or Slack.
ScopeWhere the connection is saved: only this project, all your projects, or shared with your team in a file.

It is the same tool-use loop from Module 4. The only change is where the tool comes from: instead of a function in your file, it is a function on someone's server.

🖥️ Hands-on task 4Everyone⏱ 15 min

Connect a server

You will connect Anthropic's own documentation server. It is public, needs no sign-in, and gives Claude Code the ability to search its own manual.

  1. In a terminal, cd into your bootcamp-primer folder and add the server:
Add the server
claude mcp add --transport http claude-code-docs https://code.claude.com/docs/mcp
  1. Check that it connected:
Check
claude mcp list
  1. Start Claude Code with claude, then type /mcp to see the server and the tools it offers.
  2. Ask a question that needs it:
Type this inside Claude Code
Use the claude-code-docs server to look up what plan mode is, and summarize it in three bullets.
  1. Read the permission prompt before you approve it. It names the server and the tool. This is a human-in-the-loop checkpoint, and a small example of a guardrail.
  2. When you are done, type /exit. You can leave the server connected for Module 6, or remove it:
Optional cleanup
claude mcp remove claude-code-docs
✓ Done when: claude mcp list shows claude-code-docs as connected, and you have watched Claude Code ask permission, call the server, and answer from what it returned.
⚠️
An MCP server is something you are trusting
A server can see what Claude sends it, and what it returns goes straight into the model's context. A badly behaved server can return text that tries to steer the model. Connect servers from sources you trust, read permission prompts, and give each one the least access that gets the job done. Module 7 comes back to this under guardrails and role-based access.

Prefer no terminal?

The Claude desktop and web apps connect servers through a settings screen in place of a command. Open Settings, find Connectors, and add one you already use. It is the same protocol underneath. Do the terminal version too if you can, since hands-on MCP labs usually work from the command line.

Next: Claude Code working habits.