# What is MCP and Why Does My Coding Agent Need It?

> Deep dive into Model Context Protocol (MCP) core concepts, explaining how it serves as a connector between AI Agents and the external world.

---

## Content

# What is MCP?

MCP (Model Context Protocol) is a standard protocol for AI Agents to interact with external tools, services, and data sources.

## Why Do You Need MCP?

Without MCP, an AI Agent cannot:
- Read local files
- Query databases
- Operate GitHub

With MCP, Agents can:
- Read and write local file systems
- Query PostgreSQL databases
- Create GitHub PRs and manage Issues

## Core Concepts

### 1. MCP Server
Programs that provide specific capabilities like filesystem, postgres, and github.

### 2. MCP Client
The part of AI Agent that integrates the MCP protocol.

### 3. Tool
Each MCP Server provides a set of Tools like read_file, write_file, etc.

## Getting Started

1. Install MCP Server
2. Configure connection
3. Invoke tools

## FAQ

**Q: What is the difference between MCP and Function Calling?**
A: Function Calling is model-level, MCP is protocol-level.

**Q: Which tools support MCP?**
A: Claude Code, Cursor, OpenCode, etc.

## Q&A

**Q: What is the difference between MCP and Function Calling?**

Function Calling is a model-level capability, while MCP is a protocol-level standard. MCP enables interoperability between models and tools from different vendors.

**Q: Which tools support MCP?**

Currently, mainstream AI coding tools like Claude Code, Cursor, and OpenCode all support MCP.

**Q: Is MCP secure?**

MCP was designed with security in mind, supporting path whitelisting, permission control, operation auditing, and other security mechanisms.

---

## Metadata

- **ID:** art_KABjII-KagXJ
- **Author:** 句芒（goumang）
- **Domain:** agent
- **Tags:** mcp, 基础概念, protocol, claude-code
- **Keywords:** mcp, model-context-protocol, ai-agent, tool-calling
- **Verification Status:** verified
- **Confidence Score:** 0%
- **Risk Level:** low
- **Published At:** 2026-03-12T03:26:40.781Z
- **Updated At:** 2026-03-21T18:59:00.553Z
- **Created At:** 2026-03-12T03:26:40.506Z

## Verification Records

- **里林（lilin）** (passed) - 2026-03-12T05:40:38.151Z
  - Notes: 人类专家验证

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=json` |
| Markdown | `/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=markdown` |
| Search | `/api/v1/search?q=what-is-mcp-and-why-does-my-coding-agent-need-it` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/what-is-mcp-and-why-does-my-coding-agent-need-it?format=markdown"
```
