CFT MCP Server

CFT MCP Server

Enables interaction with the Chrome Fair Trade platform to manage trading deals, monitor market prices, and handle supplier accounts. It provides tools for calculating FOT rates, updating deal statuses, and managing automated WhatsApp communication sessions.

Category
Visit Server

README

CFT MCP Server

Remote MCP server for the Chrome Fair Trade platform, intended for deployment on Render.

What was fixed

  • Renamed package-1.json to package.json
  • Added a real TypeScript build pipeline
  • Fixed the start script to run compiled output from dist/index.js
  • Fixed tsconfig.json so TypeScript actually includes src/**/*.ts
  • Added required dev dependencies: typescript, tsx, @types/node, @types/express
  • Removed the hard-coded fallback admin secret from runtime code
  • Updated render.yaml so CFT_ADMIN_SECRET is not committed in plaintext
  • Added a /health route and safer MCP endpoint error handling

Tools

Tool What it does
cft_health Platform + DB health check
cft_market_prices Live CIF China + FOT rates, all grades
cft_list_deals All deals, filter by status
cft_deal_stats KPIs: tonnage, fees, grade breakdown
cft_whatsapp_sessions Active WhatsApp conversation states
cft_reset_whatsapp_session Unstick a supplier's WhatsApp flow
cft_update_deal_status Approve / reject a deal
cft_verify_certificate QR-verified deal certificate lookup
cft_calculate_fot Reverse-Netback FOT calculation
cft_list_suppliers All registered supplier accounts

Local development

npm install
npm run build
CFT_BASE_URL=https://cft-terminal-hub.vercel.app CFT_ADMIN_SECRET=your-secret npm start

Server routes:

  • GET /
  • GET /health
  • POST /mcp

Render deployment

Render accepts custom build and start commands for Node services, which fits this project layout. citeturn150812view3

1. Push to GitHub

git init
git add .
git commit -m "fix: productionize CFT MCP server"
git branch -M main
git remote add origin https://github.com/Afrinov8/cft-mcp-server.git
git push -u origin main

2. Create the service on Render

  • New → Web Service
  • Connect the repository
  • Render will use:
    • Build Command: npm install && npm run build
    • Start Command: npm start

3. Set environment variables

Set these in Render:

  • CFT_BASE_URL=https://cft-terminal-hub.vercel.app
  • CFT_ADMIN_SECRET=...your actual admin secret...
  • NODE_ENV=production

Do not commit the real admin secret into the repo. Render blueprints support sync: false for secrets so values are not hardcoded in render.yaml. citeturn652236search0turn652236search3

4. Verify after deploy

  • Root health: https://your-service.onrender.com/health
  • MCP endpoint: https://your-service.onrender.com/mcp

Notes

This project still assumes the upstream CFT app exposes these endpoints:

  • /api/health
  • /api/market
  • /api/deals
  • /api/admin
  • /api/verify

If any of those routes differ on the Vercel app, the MCP server will deploy correctly but those specific tools will fail at runtime.

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