• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Introduction
    • Technical Details
    • Conventions
    • Clone the Repository
    • Running the Project
    • Common Commands
    • Updating the Codebase
    • Navigating the Codebase
    • Walkthrough
    • Migrating from v1
    • Updating to Next.js 15
    • Updating to Tailwind CSS v4
    • Code Health and Testing
    • LLMs rules
    • MCP
    • FAQ

MCP for Next.js Supabase

Configure MCP for Next.js Supabase for best AI assistance using AI Agents

The Makerkit MCP Server provides tools to AI Agents for working with the codebase.

Build MCP Server

Run the command:

bash
pnpm --filter "@kit/mcp-server" build

The command will build the MCP Server at packages/mcp-server/build/index.js.

Adding MCP Servers to AI Coding tools

Before getting started, retrieve the absolute path to the index.js file created above. You can normally do this in your IDE by right-clicking the index.js file and selecting Copy Path.

I will reference this as <full-path> in the steps below: please replace it with the full path to your index.js.

Claude Code

Run the command below:

bash
claude mcp add makerkit node <full-path>

Restart Claude Code. If no errors appear, the MCP should be correctly configured.

Codex

Open the Codex YAML config and add the following:

text
[mcp_servers.makerkit]
command = "node"
args = ["<full-path>"]

Cursor

Open the mcp.json config in Cursor and add the following config:

json
{
"mcpServers": {
"makerkit": {
"command": "node",
"args": ["<full-path>"]
}
}
}

Additional MCP Servers

I strongly suggest adding the Postgres MCP Server that allows AI Agents to understand the structure of your Database.

On this page
  1. Build MCP Server
    1. Adding MCP Servers to AI Coding tools
      1. Claude Code
      2. Codex
      3. Cursor
    2. Additional MCP Servers