Tutorial นี้อ้างอิงจากวิดีโอ: FastMCP Tutorial - YouTube
pip install -r requirements.txtบน macOS:
~/.claude_desktop/claude_desktop_config.jsonบน Windows:
%APPDATA%\Claude\claude_desktop_config.json
บน Linux:
~/.config/Claude/claude_desktop_config.json
เปิดไฟล์ claude_desktop_config.json และเพิ่ม MCP Server configuration:
{
"mcpServers": {
"mcp-server": {
"command": "uv", // ควรเป็น Full Absolute Path
"args": [
"--directory",
"YOU_PROGRAM_PATH",
"run",
"server.py"
]
}
}
}!!! ควร ใช้ Full Absolute Path ไม่ใช่ Relative Path
คุยกับ Claude ว่า:
ใช้เครื่องมือที่มีให้เลย (use the available tools)
Claude จะแสดง Tools ที่ได้จาก MCP Server ของคุณ