# MCP

> The MCP (Model Context Protocol) is an open protocol for connecting AI applications to external tools and data sources.

## What is MCP (Model Context Protocol)?

The open protocol that standardizes how AI applications connect to tools, data and services through MCP servers. One server, such as a database or documentation server, can be used by different AI assistants.

- Topic: Model Context Protocol
- Type: concept

## Example

Wrong:

```json
{
  "mcpServers": {
    "files": {
      "command": "npx",
      "args": ["-y", "random-files-mcp"]
    }
  }
}
```

Right:

```json
{
  "mcpServers": {
    "files": {
      "command": "npx",
      "args": ["-y", "@trusted-org/files-mcp@1.4.2", "./docs"]
    }
  }
}
```

The server comes from a known publisher, is pinned to an exact version and gets access only to the folder it needs.

## Common mistakes

- Installing an unknown MCP server that reads files or leaks tokens.

## Key points

- MCP servers come from trusted sources and are pinned to known versions.
- Each server gets only the credentials and permissions its tools need.
- Tool results from servers are treated as untrusted data.

## Interview questions

### What is the difference between MCP and function calling?

Function calling is how a model asks to run a tool in one API. MCP is a protocol for packaging tools and data as servers that any compatible app can connect to.

### MCP vs A2A: what is the difference?

MCP connects an agent to tools and data sources. A2A connects agents to other agents so they can delegate tasks and exchange results.

### Is MCP safe to use?

It is as safe as the servers you install. Use trusted servers, give each one minimal permissions and treat their outputs as untrusted.

## Related cards

- [MCP Server](https://wonderium.dev/ai/mcp-server.md)
- [MCP Client](https://wonderium.dev/ai/mcp-client.md)
- [MCP Tool](https://wonderium.dev/ai/mcp-tool.md)
- [Tool Calling](https://wonderium.dev/ai/tool-calling.md)
- [MCP Transport](https://wonderium.dev/ai/mcp-transport.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/mcp
- Last updated: 2026-11-25
