这是一个基于TypeScript的MCP服务器,实现了NextJS的简单笔记系统。它通过提供以下内容来演示核心MCP概念:
<a href="https://glama.ai/mcp/servers/9i4b9xiqrc"><img width="380" height="200" src="https://gips1.baidu.com/it/u=541252183,257239270&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Supabase NextJS Server MCP 服务器" /></a>
NEXT_PUBLIC_SUPABASE_URL 和 NEXT_PUBLIC_SUPABASE_ANON_KEYnote:// URI 列出和访问笔记create_note - 创建新的文本笔记
summarize_notes - 生成所有存储笔记的摘要
安装依赖项:
npm install
构建服务器:
npm run build
开发时自动重建:
npm run watch
要在Claude Desktop中使用,请添加服务器配置:
在MacOS上:~/Library/Application Support/Claude/claude_desktop_config.json
在Windows上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"supabase-nextjs-server": {
"command": "/path/to/supabase-nextjs-server/build/index.js"
}
}
}
要通过Smithery自动安装Supab的笔记到Claude Desktop:
npx -y @smithery/cli install @tengfone/supabase-nextjs-mcp-server --client claude
由于MCP服务器通过标准I/O通信,调试可能会很困难。我们推荐使用MCP Inspector,它作为一个包脚本可用:
npm run inspector
Inspector将提供一个URL,以便在浏览器中访问调试工具。