Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Claude Code · 6 min

What is MCP in Claude Code (Model Context Protocol)

Understand what the Model Context Protocol is, how it connects Claude Code to external tools, and why it opens up a world of new possibilities.

Cylindrical connector made of metal and glass with glowing cables attached on both sides.

Quick answer

MCP (Model Context Protocol) is an open protocol that lets Claude Code connect to external tools and data sources, such as databases, APIs, file systems and web services. Instead of the assistant working only with text, MCP gives it the ability to interact with the real world.

  • Open protocol to connect Claude Code to the outside world
  • Connects to databases, APIs, files and web services
  • Lets Claude Code take real actions, not just generate text
  • Extensible: any tool can have an MCP server

Ask AI about this guide:

What is MCP

The Model Context Protocol, or MCP, is an open protocol developed by Anthropic that defines a standard way for Claude Code to connect to external tools and data sources. Without MCP, Claude Code essentially works with text: it reads files, writes code, answers questions. With MCP, it can interact with databases, query APIs in real time, access remote file systems and even control external applications.

The word "protocol" may sound technical, but the idea is simple: MCP defines a common language between Claude Code and the tools you want to use. Any tool that implements that language can be used by the assistant. To better understand the context where MCP fits, visit our article on what Claude Code is and the main Claude Code page.

How it works in practice

MCP works with two main components:

  • MCP client: this is Claude Code. It makes requests to external tools and uses the data it receives to carry out your instructions.
  • MCP server: the external tool (a database, GitHub, a web service, etc.) that receives requests from Claude Code, performs actions and returns data.

When you configure an MCP server, Claude Code gains access to that tool. For example, with an MCP server for GitHub, the assistant can browse repositories, create issues or view pull requests directly within your work session, without needing to leave the terminal or copy and paste information manually.

Examples of MCP servers

The MCP ecosystem is growing fast. Here are some examples of what you can already connect to Claude Code:

MCP serverWhat it lets you do
GitHub MCPRead repositories, create issues, view pull requests
PostgreSQL MCPQuery and write to databases directly
Google Drive MCPAccess and edit documents in Google Drive
Web Search MCPSearch the internet in real time
File System MCPAccess files and folders on your local system
Slack MCPRead and send messages in Slack

The list keeps growing as more companies and developers create MCP servers for their tools.

MCP vs plugins: what's the difference

You may be familiar with the concept of plugins in other AI assistants. MCP is conceptually similar, but with important differences:

  • Plugins are often proprietary and specific to a single assistant. To work with a different assistant, you need to rewrite the plugin.
  • MCP is an open, standardized protocol. An MCP server written for Claude Code can potentially work with any assistant that supports the protocol, reducing duplicated effort for anyone building integrations.

In practical terms, MCP tends to be more flexible and to allow deeper integrations than traditional plugin systems.

How to get started with MCP

If you are using Claude Code and want to try MCP, the easiest path is to start with an existing MCP server for a tool you already use day to day. Anthropic and the community maintain lists of MCP servers available for the most common tools.

The general process is: install the MCP server for the tool you want to use, configure the required permissions and add the server to the Claude Code configuration. From then on, the assistant has access to the tool and can use it in your work sessions without manual intervention from you.

To deepen your knowledge of Claude Code's capabilities, also check out the articles on skills and agents and explore the prompt library.

Components for this task

We hand-picked the agents, skills and commands that handle this kind of work: Databases with Claude Code: schema, queries and migrations.

Frequently asked questions

MCP was created by Anthropic but it is an open protocol. That means other AI assistants and tools can also adopt it. The specification is publicly available to encourage its adoption.

Want to put this to work in your business?

1,859 ready-to-copy AI prompts, by industry.

Get started - €7.99/month

Keep reading

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans