Next.js MCP Server

Next.js MCP Server

A Model Context Protocol server built with Next.js that provides AI assistants with access to custom tools and resources. Includes example tools for echoing messages and performing mathematical operations, with support for both SSE and HTTP transports.

Category
Visit Server

README

CoinCrew AI Monorepo

A modern monorepo for the CoinCrew AI platform with pnpm workspaces and Turborepo.

Structure

├── apps/
│   ├── client/      # Vite + React + TypeScript frontend
│   ├── api/         # Express API server
│   ├── mcp/         # MCP (Model Context Protocol) server
│   └── supabase/    # Supabase configuration and migrations
├── packages/
│   ├── ui/          # Shared React components
│   ├── config/      # Shared configuration files
│   └── utils/       # Shared utility functions

Prerequisites

  • Node.js 18+
  • pnpm 9+
  • Docker (optional, for local development)

Getting Started

Install dependencies

pnpm install

Development

Run all apps in development mode:

pnpm dev

Run specific apps:

pnpm dev:client  # Run client only
pnpm dev:api     # Run API only
pnpm dev:mcp     # Run MCP server only

Build

Build all apps:

pnpm build

Build specific apps:

pnpm build:client
pnpm build:api
pnpm build:mcp

Docker Development

Start all services with Docker:

docker-compose up

Deployment

Each app can be deployed independently to Digital Ocean App Platform:

  1. Client: Deploy from apps/client with build command pnpm build --filter=client
  2. API: Deploy from apps/api with build command pnpm build --filter=api
  3. MCP: Deploy from apps/mcp with build command pnpm build --filter=mcp

Available Scripts

  • pnpm dev - Start all apps (Client + API + MCP) with automatic port cleanup
  • pnpm build - Build all apps
  • pnpm test - Run tests
  • pnpm lint - Lint all packages
  • pnpm format - Format code with Prettier
  • pnpm clean - Clean all build artifacts and node_modules
  • pnpm kill:ports - Free up ports 3000, 3001, 3002

Individual App Scripts

  • pnpm dev:client - Run client only (port 3000)
  • pnpm dev:api - Run API only (port 3001)
  • pnpm dev:mcp - Run MCP only (port 3002)

Services

Main Apps (Always Same Ports)

  • Client: http://localhost:3000 (Vite + React + TypeScript)
  • API: http://localhost:3001 (Express + TypeScript)
  • MCP: http://localhost:3002 (Express + TypeScript with MCP endpoints)

Supabase Stack (Docker-based)

To start Supabase services:

cd apps/supabase
pnpm start
  • API: http://127.0.0.1:54321
  • Studio: http://127.0.0.1:54323
  • Database: postgresql://postgres:postgres@127.0.0.1:54322/postgres
  • Edge Functions: http://127.0.0.1:54321/functions/v1/[function-name]

Environment Variables

Client (apps/client/.env.local)

VITE_API_URL=http://localhost:3001
VITE_SUPABASE_URL=http://127.0.0.1:54321
VITE_SUPABASE_ANON_KEY=your-anon-key-here

API (apps/api/.env.local)

PORT=3001
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
SUPABASE_URL=http://127.0.0.1:54321
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key-here

MCP (apps/mcp/.env.local)

PORT=3002
# MCP configuration

Supabase (apps/supabase/.env.local)

# Auto-populated when running supabase start
SUPABASE_URL=http://127.0.0.1:54321
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured