Week 6 of 12 🔌
การเชื่อมต่อ MCP Server
MCP 服务器集成
Click a card to flip it. คลิกการ์ดเพื่อพลิก 点击卡片翻面。
What does MCP stand for?
MCP ย่อมาจากอะไร?
MCP 是什么的缩写?
Where is project MCP config?
Config MCP ของโปรเจกต์อยู่ที่ไหน?
项目的 MCP 配置在哪里?
Which word gives a reason?
คำใดให้เหตุผล?
哪个词表示原因?
How to do it
/mcp inside a session.How to do it
claude mcp add github --transport http https://api.github.com/mcp/.claude and check /mcp to see it connected.How to do it
claude mcp add playwright --transport stdio -- npx @playwright/mcp@latest.stdio) servers run as a program on your machine — here via npx.-- is the command that starts the server.How to do it
.mcp.json in the project root and define servers there instead.How to do it
The Tutorial Steps use two commands. Here is every part of them, explained.
github is a nickname you choose. The server's tools appear to
Claude as mcp__github__* — the name is how you recognise them.--transport http = a remote server on the internet. Nothing to
install; your machine talks to the URL.--transport stdio = a local program on your machine. Everything
after a -- is the command that starts it — for example
npx @playwright/mcp@latest downloads and runs the Playwright server.The same servers written as a project file — this is all .mcp.json is:
mcpServers — the list. Each key is a server nickname."type": "http" + "url"."command" + "args" — and no type field,
because local (stdio) is the default.Step by step
claude mcp add github --transport http https://api.github.com/mcp/ in your terminal.claude and type /mcp — check the server says connected..mcp.json for this project.✓ You did it right if: your repository list appears in the chat and .mcp.json exists in the project root.
// Save as: .mcp.json (project root - commit it, your team shares it)
{
"mcpServers": {
"github": {
"type": "http",
"url": "https://api.github.com/mcp/"
},
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"]
}
}
}
// Note: stdio servers use "command" + "args" and NO "type" -
// stdio is the default. Only remote servers need "type": "http".
# ---- Restart claude, then check ----
> /mcp
github connected - 12 tools
playwright connected - 8 tools
| Command / Tool | English | ภาษาไทย | 中文 |
|---|---|---|---|
claude mcp add | Add an MCP server | เพิ่ม MCP server | 添加 MCP server |
claude mcp remove | Remove an MCP server | ลบ MCP server | 移除 MCP server |
claude mcp list | List configured servers | ระบุ servers ที่ตั้งค่า | 列出已配置的 servers |
.mcp.json | Project MCP config file | ไฟล์ config MCP ของโปรเจกต์ | 项目的 MCP 配置文件 |
/mcp | Manage MCP in session | จัดการ MCP ในเซสชัน | 在会话中管理 MCP |
Connect and disconnect servers, then see which requests succeed. / เชื่อมต่อ MCP servers แล้วลองใช้เครื่องมือ / 连接 MCP 服务器并试用工具
Connect servers, then try to use their tools.
Tools available to Claude: 0