Claude Code
authorKRIATIZ
03 · Extensions / lesson 3 of 4

MCP: external services

20 minIntermediate5 steps

MCP (Model Context Protocol) gives the agent new tools: work with GitHub issues, read Notion docs, query a database, drive a browser. Here is how to connect servers and when you really need them.

data and requestsproblem
Lesson stepsstep 1 of 5
  1. Limits
  2. Protocol
  3. Services
  4. Browser
  5. Security
step 1 / 5problem

The agent can’t see external systems

Requirements in Notion, issues in a tracker, errors in Sentry. Without a connection the agent only knows files.

Key point

MCP gives the agent new tools.

← → steps · space pause · R restart · ⌘K search
You will learn 6
Lesson notes

What MCP is

MCP is an open protocol that lets AI applications connect to external systems. An MCP server describes tools ("create an issue", "run an SQL query"), and Claude Code calls them just like built-in ones.

How to add a server

# a local server launched by a command
claude mcp add playwright -- npx @playwright/mcp@latest

# a remote server over HTTP
claude mcp add --transport http notion https://mcp.notion.com/mcp

# list servers and their status
claude mcp list

In a session, /mcp shows servers and their tools and lets you authenticate where needed.

Scopes

ScopeStored inPurpose
localyour settings for this projectexperiments, personal tokens
project.mcp.json in the reposervers shared with the team
useryour settings for every projecttools you need everywhere

Popular servers

  • GitHub: issues, pull requests, comments.
  • Databases: schema and queries against a test database.
  • Notion, Linear, Jira: requirements and tasks.
  • Playwright: browser control to check the UI.
  • Sentry: production errors for bug fixes.

When you don’t need MCP

If a system has a good CLI, the agent will use it through Bash anyway: gh for GitHub, psql for a database. MCP helps when there is no CLI, OAuth is required, or tools need to be structured and safer than arbitrary commands.

Security

  • Connect servers only from trusted sources: a server receives data from your session.
  • Give minimal rights: a read-only token, a test database instead of production.
  • Mind prompt injection: text from external systems may contain malicious instructions. The agent should treat it as data.
  • Each server adds tool descriptions to context. Turn off the ones you don’t need.

12 servers with connection commands are in the article "Claude Code MCP Guide".

Today's task

Connect one MCP server your process really needs, with minimal rights. Give the agent a task where it uses it.

Need your own MCP server for an internal system?

I will build an MCP server for your CRM, database or API so the agent can use it safely.

Let’s talk
Vladyslav Koshelyev
Vladyslav Koshelyev

Developer at KRIATIZ. I build chatbots, websites and automation for businesses. Author of the course.

About the author · Telegram