
吴恩达新课:用 MCP 构建富上下文 AI 应用
课程信息
- 名称: MCP: Build Rich-Context AI Apps with Anthropic
- 讲师: Elie Schoppik(Anthropic MCP 负责人)
- 合作方: DeepLearning.AI × Anthropic
- 形式: 免费短期课程
课程内容
Module 1: MCP 基础
- 协议设计哲学
- Client-Server 架构
- JSON-RPC 通信方式
Module 2: 构建 MCP Server
import { McpServer } from "@anthropic-ai/mcp";
const server = new McpServer();
server.addTool({
name: "get_weather",
description: "获取指定城市的天气",
parameters: {
type: "object",
properties: {
city: { type: "string" }
}
},
handler: async ({ city }) => {
const weather = await fetchWeather(city);
return { content: JSON.stringify(weather) };
}
});
Module 3: 接入 AI 应用
- 在 Claude Desktop 中配置 MCP Server
- 在自定义应用中集成 MCP Client
- 多 Server 组合使用
Module 4: 生产实践
- 安全性:权限控制和数据隔离
- 性能:连接池和缓存
- 监控:日志和指标
为什么值得学?
MCP 是 2025-2026 年 AI 基础设施最重要的协议标准之一。这门课直接由协议设计者讲授,是最权威的学习资源。
来源: @AndrewYNg 吴恩达的课程公告