MCP — Model Context Protocol

Xây dựng và quản lý MCP servers để kết nối Claude Code với external tools và services.
Cập nhật bộ mới: /use-mcp (discover + execute MCP tools), /mcp-builder (build custom MCP servers).MCP (Model Context Protocol) cho phép Claude gọi tools bên ngoài: database, API, file system, browser, v.v.

Cú pháp


Bảng tham chiếu nhanh


/mcp-builder — Tạo MCP server

1

Bước 1: Chọn framework

FastMCP (Python) hoặc MCP SDK (Node/TypeScript).
2

Bước 2: Define tools

Khai báo tools, resources, prompts cho server.
3

Bước 3: Implement

Viết handler cho mỗi tool. Input validation + error handling.
4

Bước 4: Test + Register

Test locally, đăng ký trong .claude/settings.json.

/mcp-management — Quản lý servers


Ví dụ thực tế

Output: Project FastMCP với 3 tools: send_message, read_channel, manage_thread.

MCP Servers phổ biến


Khi nào dùng / không dùng


Skill bổ trợ

Prefix: /use-mcp, /use-mcp list, /use-mcp <tool-name>Discover available MCP servers + tools. Execute tools intelligently.
Khi dùng: Need external tool (Figma, database, API), discovery mode.
Prefix: /mcp-builder, /mcp-builder --scaffold, /mcp-builder --testBuild custom MCP servers for Claude integration: FastMCP (Python) hoặc Node.js SDK.
Khi dùng: Create custom tool for workflow (internal API, database, service).