文章基于AI博主视频讲解,实操MCP Server的运行机制。
安装claude桌面版:https://claude.ai/
配置claude桌面版的mcp server信息:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"<personal-access-token>"
]
}
}
}
****macos:claude 桌面版重启后,启动MCP server失败,可能是权限问题,使用:
sudo npx -y @supabase/mcp-server-supabase@latest --access-token=sbp_751a0aebdb,单独启动MCP server。****
提示词:
Create a supabase project for me. The project stores my articles data and categories. Each article may be included in multiple categories.Each article contains title, content, author, created and updated timestamp.
Supabase中的Table信息创建成功:
MCP server源码地址:https://github.com/supabase-community/supabase-mcp
参考视频:https://www.youtube.com/watch?v=FPoGe5I0g9w&list=WL&index=4&t=186s