Tough Customer MCP
A Next.js MCP server that provides an inline roleplay configurator UI for Claude, allowing users to create and share persona-based roleplay scenarios through a simple web interface.
README
Tough Customer MCP
Remote MCP server (Next.js on Vercel) that delivers an inline roleplay configurator UI into Claude. The UI is a simple demo of toughcustomer.ai — fill in a persona + scenario and get a shareable roleplay link.
Backend is currently mocked. The
generateRoleplayLinkfunction inlib/roleplays.tsis where you wire up the real Tough Customer API later.
Endpoints
| Route | Purpose |
|---|---|
/mcp |
MCP streamable-HTTP endpoint (connect Claude here) |
/api/roleplays |
Internal JSON API used by the inline UI to create a link |
/ |
Landing page |
Tools exposed
toughcustomer_open_roleplay_app— opens the inline configurator UI (optionally pre-filled).toughcustomer_create_roleplay_link— generates a roleplay link from structured args and renders the UI with the result.toughcustomer_list_templates— returns built-in persona/scenario presets.
Each tool returns a text/html resource at ui://toughcustomer/roleplay.html, so MCP clients that support inline UI resources (Claude, ChatGPT) render the form directly.
Local development
npm install
npm run dev
# http://localhost:3000
# MCP endpoint: http://localhost:3000/mcp
Inspect with the MCP Inspector:
npx @modelcontextprotocol/inspector
# Transport: Streamable HTTP
# URL: http://localhost:3000/mcp
Deploy to Vercel
One-time setup:
# 1. Create GitHub repo
gh repo create mcp --public --source=. --remote=origin --push
# 2. Link + deploy on Vercel (prompts for org/project name)
npx vercel link
npx vercel --prod
Then add the production URL (https://<project>.vercel.app/mcp) to Claude as a remote MCP server.
Wiring up the real backend later
Replace the body of generateRoleplayLink in lib/roleplays.ts with a fetch to the Tough Customer API. Add any needed env vars via vercel env add.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.