FTC Platform MCP Server

FTC Platform MCP Server

A standalone MCP server that provides AI tools by proxying requests to the FTC Platform's REST API, enabling tasks like fetching event applications, evaluations, and scoring criteria.

Category
Visit Server

README

FTC Platform MCP Server

A standalone Model Context Protocol (MCP) server for the FTC Platform that provides AI tools by proxying requests to the main platform's REST API.

Architecture

This MCP server runs independently from the main Next.js application and communicates with it via HTTP API calls:

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Claude AI     │───▶│  MCP Server     │───▶│  Vercel API     │
│   (MCP Client)  │    │  (This App)     │    │  (ftc-platform) │
└─────────────────┘    └─────────────────┘    └─────────────────┘

Why Separate Deployment?

  • Vercel Limitations: Vercel Functions don't support WebSocket servers required for MCP
  • Long-lived Connections: MCP sessions are persistent and bidirectional
  • Independent Scaling: MCP server can scale separately from the main app
  • Clean Architecture: Separation of concerns between web app and AI tools

Available Tools

  1. test_connection - Verify MCP server and API connectivity
  2. get_event_applications - Fetch all applications for an event with complete data
  3. get_event_evaluations - Get completed evaluations with scores and statistics
  4. get_evaluation_criteria - Get scoring criteria categorized for AI understanding
  5. get_application_questions - Get application question structure and metadata

Environment Variables

Create a .env file from .env.example:

cp .env.example .env

Required variables:

  • VERCEL_API_BASE_URL - Base URL of your deployed FTC Platform API
  • MASTRA_API_KEY - API key for authenticating with the Vercel API

Development

Prerequisites

  • Node.js 20+
  • Access to the FTC Platform API endpoints

Local Development

  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your actual values
  1. Start development server:
npm run dev
  1. Test the connection:
# In another terminal, test via stdio
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | npm run dev

Deployment

Fly.io (Recommended)

  1. Install Fly CLI:
curl -L https://fly.io/install.sh | sh
  1. Login and create app:
fly auth login
fly apps create ftc-platform-mcp
  1. Set environment variables:
fly secrets set VERCEL_API_BASE_URL="https://your-app.vercel.app/api/mastra"
fly secrets set MASTRA_API_KEY="your-secret-key"
  1. Deploy:
fly deploy

Docker (Alternative)

# Build
docker build -t ftc-platform-mcp .

# Run locally
docker run -p 3001:3001 \
  -e VERCEL_API_BASE_URL="https://your-app.vercel.app/api/mastra" \
  -e MASTRA_API_KEY="your-secret-key" \
  ftc-platform-mcp

Claude Configuration

After deploying, configure Claude to use your MCP server:

// .mcp.json
{
  "mcpServers": {
    "ftc-platform": {
      "type": "stdio",
      "command": "ssh",
      "args": [
        "your-server.fly.dev",
        "node",
        "/app/dist/server.js"
      ],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

API Authentication

The MCP server authenticates with the Vercel API using the same MASTRA_API_KEY that the main platform uses. This provides:

  • Reuse of existing auth - No changes needed to Vercel API
  • Server-to-server security - API key is stored securely on the MCP server
  • Access control - Same permissions as the main platform

Project Structure

src/
├── server.ts           # Main MCP server implementation
├── lib/
│   └── api-client.ts   # HTTP client for Vercel API calls
└── types/
    └── index.ts        # TypeScript type definitions

# Deployment configs
├── Dockerfile          # Docker container definition
├── fly.toml           # Fly.io deployment config
└── README.md          # This file

Monitoring

Health Checks

  • HTTP endpoint: http://your-app:3001/health
  • Fly.io automatically monitors and restarts unhealthy instances

Logs

# Fly.io logs
fly logs

# Docker logs
docker logs container-id

Troubleshooting

Common Issues

  1. Connection Failed

    • Check VERCEL_API_BASE_URL is correct and accessible
    • Verify MASTRA_API_KEY is valid
  2. Tool Execution Errors

    • Check Vercel API is responding correctly
    • Verify eventId parameters are valid UUIDs
  3. MCP Client Issues

    • Ensure Claude has the correct MCP server configuration
    • Check stdio communication is working properly

Debug Mode

Set environment variable for verbose logging:

NODE_ENV=development npm run dev

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