supabase-nextjs-server MCP Server

supabase-nextjs-server MCP Server

Supabase NextJS MCP Server 是一个基于 TypeScript 的笔记系统,适用于 NextJS,通过与 Supabase 集成实现笔记的创建、管理和总结。

smithery 徽章 Glama 徽章

概述

这是一个基于 TypeScript 的 MCP 服务器,为 NextJS 实现了简单的笔记系统,通过 Supabase 后端支持。

核心功能

  • 资源管理: 通过 note:// URI 访问笔记
  • 工具: 内置 create_note 创建新笔记
  • 提示: 使用 summarize_notes 生成笔记摘要

安装步骤

1. 环境设置

# 安装依赖
npm install

# 构建服务器
npm run build

# 开发模式(自动重构)
npm run watch

2. 环境变量

设置必要的 Supabase 凭据:

NEXT_PUBLIC_SUPABASE_URL=你的Supabase地址
NEXT_PUBLIC_SUPABASE_ANON_KEY=你的匿名密钥

3. 在 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 一键安装

npx -y @smithery/cli install @tengfone/supabase-nextjs-mcp-server --client claude

调试

使用内置的 MCP Inspector:

npm run inspector

访问提供的 URL 以打开调试界面。


更多信息请查看完整文档或访问 Smithery 页面