Skip to main content
Glama

Next.js MCP Server

by CoinCrew-AI

CoinCrew AI Monorepo

A comprehensive cryptocurrency trading platform with AI-powered assistance, market data analysis, and exchange integration. Built as a monorepo using pnpm workspaces and Turborepo.

🚀 Live Deployments

  • Frontend: https://coincrew-ai.vercel.app
  • API: https://coincrew-api.onrender.com
  • API Documentation: https://coincrew-api.onrender.com/v1/docs

📁 Project Structure

coincrew-ai-mono/ ├── app/ # React + Vite frontend │ ├── src/ │ │ ├── components/ # React components │ │ ├── domains/ # Feature domains │ │ ├── hooks/ # Custom React hooks │ │ ├── providers/ # Context providers │ │ ├── routes/ # TanStack Router pages │ │ └── stores/ # Zustand state stores │ └── package.json # @coincrew-ai/client │ ├── api/ # Express API gateway │ ├── src/ │ │ ├── services/ # Microservices │ │ │ ├── ai/ # AI chat service (GPT-5) │ │ │ ├── rest-v1/ # REST API v1 with Swagger │ │ │ ├── mcp/ # Model Context Protocol │ │ │ └── mcp-bridge/ # MCP WebSocket bridge │ │ └── index.ts # Main API entry │ └── package.json # @coincrew-ai/api │ ├── backend/ # Supabase backend │ └── supabase/ │ ├── functions/ # Edge Functions (Deno) │ ├── migrations/ # Database migrations │ └── config.toml # Supabase config │ ├── packages/ # Shared packages │ ├── supabase/ # Supabase client │ ├── config/ # Shared configs │ ├── ui/ # Shared React components │ └── utils/ # Shared utilities │ └── scripts/ # Build and dev scripts ├── dev.js # Intelligent dev server └── kill-ports.js # Port cleanup utility

🛠️ Prerequisites

  • Node.js 18+
  • pnpm 9+
  • Docker (for local Supabase)

🚀 Getting Started

Install Dependencies

pnpm install

Development

Start all services with automatic setup:

pnpm dev

This single command:

  • Checks/starts Supabase if needed
  • Serves Edge Functions
  • Cleans up stuck ports
  • Starts all application services

Run specific services:

pnpm dev:client # Frontend only (port 3000) pnpm dev:api # API only (port 3001)

Build

Build all applications:

pnpm build

Build specific apps:

pnpm build:client # Build frontend pnpm build:api # Build API

🔧 Available Scripts

Development

  • pnpm dev - Start all services with auto-setup
  • pnpm dev:client - Run frontend only (port 3000)
  • pnpm dev:api - Run API only (port 3001)

Build & Deploy

  • pnpm build - Build all applications
  • pnpm build:client - Build frontend
  • pnpm build:api - Build API

Utilities

  • pnpm test - Run tests
  • pnpm lint - Lint all packages
  • pnpm format - Format code with Prettier
  • pnpm clean - Clean all build artifacts
  • pnpm kill:ports - Free up ports 3000-3002

Supabase

cd backend npx supabase start # Start local Supabase npx supabase stop # Stop Supabase npx supabase status # Check status npx supabase db reset # Reset database

🌐 Services & Ports

Production

  • Frontend: https://coincrew-ai.vercel.app
  • API: https://coincrew-api.onrender.com
  • API Docs: https://coincrew-api.onrender.com/v1/docs

Local Development

  • Frontend: http://localhost:3000
  • API: http://localhost:3001
  • API Docs: http://localhost:3001/v1/docs
  • Supabase Studio: http://localhost:54323
  • Supabase API: http://localhost:54321
  • PostgreSQL: http://localhost:54322

🔑 Key Features

REST API v1

  • 105+ Cryptocurrency Exchanges via CCXT
  • Real-time market data (tickers, OHLCV, order books)
  • Spot and futures trading endpoints
  • Dynamic exchange initialization
  • Comprehensive Swagger documentation
  • Searchable exchange dropdowns in UI

AI Chat Service

  • GPT-5 Chat Latest model
  • Streaming responses
  • Multiple AI personas
  • Context-aware conversations

Frontend

  • React 18 with TypeScript
  • TanStack Router for navigation
  • Zustand for state management
  • TailwindCSS + shadcn/ui
  • Real-time data with TanStack Query

📦 Deployment

Frontend (Vercel)

The frontend is automatically deployed to Vercel on push to main branch.

API (Render)

The API is deployed to Render using the render.yaml configuration:

  1. Connects to GitHub repository
  2. Builds with pnpm install && pnpm build
  3. Starts with pnpm start
  4. Environment variables configured in Render dashboard

Environment Variables

Frontend (Vercel)
VITE_SUPABASE_URL=your-supabase-url VITE_SUPABASE_ANON_KEY=your-anon-key
API (Render)
NODE_ENV=production PORT=3001 CORS_ORIGIN=https://coincrew-ai.vercel.app OPENAI_API_KEY=your-openai-key SUPABASE_URL=your-supabase-url SUPABASE_SERVICE_ROLE_KEY=your-service-role-key

🧪 Testing

Run all tests:

pnpm test

📚 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is proprietary and confidential.

🆘 Support

For issues or questions, please open an issue in the GitHub repository.

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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.

  1. 🚀 Live Deployments
    1. 📁 Project Structure
      1. 🛠️ Prerequisites
        1. 🚀 Getting Started
          1. Install Dependencies
          2. Development
          3. Build
        2. 🔧 Available Scripts
          1. Development
          2. Build & Deploy
          3. Utilities
          4. Supabase
        3. 🌐 Services & Ports
          1. Production
          2. Local Development
        4. 🔑 Key Features
          1. REST API v1
          2. AI Chat Service
          3. Frontend
        5. 📦 Deployment
          1. Frontend (Vercel)
          2. API (Render)
          3. Environment Variables
        6. 🧪 Testing
          1. 📚 Documentation
            1. 🤝 Contributing
              1. 📄 License
                1. 🆘 Support

                  Related MCP Servers

                  • -
                    security
                    F
                    license
                    -
                    quality
                    A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
                    Last updated -
                    33
                    1
                  • -
                    security
                    F
                    license
                    -
                    quality
                    Enables real-time communication between applications and AI models using the Model Context Protocol, supporting features like custom tools and multiple transport options for Next.js applications.
                    Last updated -
                    29,125
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A sample implementation of a Model Context Protocol server using Next.js and the Vercel MCP Adapter, allowing developers to create AI assistants with custom tools and resources.
                    Last updated -
                    MIT License
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that enables AI assistants to interact with ERPNext data and functionality, providing access to documents, reports, and CRUD operations via structured API calls.
                    Last updated -
                    2
                    MIT License
                    • Apple

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoinCrew-AI/mcp-test'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server