自托管mcp服务器如何
- 安装
supabasedocker:
https://supabase.com/docs/guides/self-hosting/docker
- 暴露的postgresql端口5432
db在supabasesdocker-compose.yml文件:
- 安装mcp服务器
https://github.com/HenkDz/selfhosted-supabase-mcp
- 创建
mcpServers在代理配置中:
{
"mcpServers": {
"selfhosted-supabase": {
"command": "node",
"args": [
"/Users/yexiangyu/Repo/dev-tools/selfhosted-supabase-mcp/dist/index.js",
"--url",
"http://localhost:8000",
"--anon-key",
"you-anon-key",
"--service-key",
"you-service-role-key",
"--db-url",
"postgresql://postgres:your-super-secret-and-long-postgres-password@localhost:5433/postgres",
"--jwt-secret",
"your-super-secret-jwt-token-with-at-least-32-characters-long"
]
}
}
}