Supabase Next.js Server
A simple notes system for Next.js applications using Supabase as the backend.
supabase-nextjs-server MCP Server
A Model Context Protocol server
This is a TypeScript-based MCP server that implements a simple notes system for NextJS. It demonstrates core MCP concepts by providing:
- Resources representing text notes with URIs and metadata
- Tools for creating new notes
- Prompts for generating summaries of notes
Features
Init
- Require
NEXT_PUBLIC_SUPABASE_URL
andNEXT_PUBLIC_SUPABASE_ANON_KEY
environment variables
Resources
- List and access notes via
note://
URIs - Each note has a title, content and metadata
- Plain text mime type for simple content access
Tools
create_note
- Create new text notes- Takes title and content as required parameters
- Stores note in server state
Prompts
summarize_notes
- Generate a summary of all stored notes- Includes all note contents as embedded resources
- Returns structured prompt for LLM summarization
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"supabase-nextjs-server": {
"command": "/path/to/supabase-nextjs-server/build/index.js"
}
}
}
Installing via Smithery
To install Supabase Notes for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @tengfone/supabase-nextjs-mcp-server --client claude
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Related Servers
Treasure Data MCP Server
Enables AI assistants to securely query and interact with the Treasure Data customer data platform.
MongoDB Lens
Full Featured MCP Server for MongoDB Database.
Keboola MCP Server
An MCP server for interacting with the Keboola Connection data platform.
SchemaFlow
Real-time PostgreSQL & Supabase database schema access for AI-IDEs via Model Context Protocol. Provides live database context through secure SSE connections with three powerful tools: get_schema, analyze_database, and check_schema_alignment.
Powerdrill
An MCP server that provides tools to interact with Powerdrill datasets, enabling smart AI data analysis and insights.
Discogs MCP Server
Access the Discogs API for music cataloging, search, and other database operations.
SQL-Transpiler MCP Tool
Transpile SQL queries between different dialects using the sqlglot library.
Memory Custom
Extends the MCP Memory server to create and manage a knowledge graph from LLM interactions.
CData eBay MCP Server
A read-only MCP server for querying live eBay data. Requires a separately licensed CData JDBC Driver for eBay.
Token Metrics
Token Metrics integration for fetching real-time crypto market data, trading signals, price predictions, and advanced analytics.