cf-mcp-playground
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cf-mcp-playgroundExplain MCP skills and tools difference"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cf-mcp-playground
A Model Context Protocol (MCP) service that runs in both Cloudflare Worker and Docker environments, with a built-in MCP Skills knowledge base and Redis query caching acceleration.
🌟 Core Features
Dual Runtime:
⛅ Cloudflare Workers: Supports Edge global deployment with ultra-fast cold starts and low latency.
🐳 Docker & Node.js: Provides a
docker-compose.ymlto start the MCP service and Redis container with one command.
MCP Skills Knowledge Base:
A complete introduction to what MCP is and what an MCP Skill is.
Detailed comparison of the differences and combination patterns between Tools, Resources, and Prompts.
Configuration guides for major clients (Claude Desktop, Cursor, Zed, Cloudflare).
Redis Instant Answers for Repeated Questions (Smart Caching):
When a user asks a question, the system automatically normalizes the question and computes a cache key.
Cache HIT: Returns the historical cached result directly from Redis in milliseconds, greatly saving Tokens and latency.
Cache MISS: Retrieves the knowledge base to generate a full answer and automatically caches it in Redis.
Supports automatic degradation to in-memory caching (Memory Fallback) when Redis is disconnected, ensuring high availability.
🛠️ MCP Tools & Capabilities
Tool Name | Description |
| Detailed introduction to what MCP and MCP Skill are, along with their differences from Tool/Resource/Prompt and examples. |
| Get quick installation guides for MCP on Claude Desktop, Cursor, Docker, and Cloudflare. |
| List all core concepts in the knowledge base. |
| Intelligent Q&A tool with built-in Redis cache; repeated questions are answered instantly from cache. |
| View Redis cache hit count (Hits), miss count (Misses), and total item count. |
| Clear cache records. |
🚀 Quick Start
Option 1: Start with Docker (includes Redis)
# 啟動 MCP 服務與 Redis 容器
docker compose up --build -d
# 查看運行日誌
docker compose logs -f
# 停止服務
docker compose downAfter the service starts:
Service homepage / dashboard:
http://localhost:3000/MCP streaming endpoint:
http://localhost:3000/mcporhttp://localhost:3000/sseHealth check endpoint:
http://localhost:3000/healthREST Q&A API:
POST http://localhost:3000/api/ask
Option 2: Local Development Mode (Node.js)
# 安裝依賴
npm install
# 執行單元測試 (驗證 MCP Tools & 快取機制)
npm test
# 啟動本機開發伺服器
npm run dev:nodeOption 3: Deploy to Cloudflare Workers
1. Log in to Cloudflare
Run the following in your terminal:
npx wrangler loginThe browser will open automatically for Cloudflare account authorization.
If using CI/CD or API Token login:
export CLOUDFLARE_API_TOKEN="你的 Cloudflare API Token" export CLOUDFLARE_ACCOUNT_ID="你的 Cloudflare Account ID"
2. Test the Worker locally with simulation
npm run dev:worker3. Deploy to the Cloudflare global edge network
npm run deployAfter a successful deployment, you will get a dedicated Worker URL (e.g. https://cf-mcp-playground.<your-subdomain>.workers.dev/mcp).
🔌 Using with AI Clients
1. Claude Desktop Configuration
Edit claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"cf-mcp-remote": {
"url": "https://<your-worker>.workers.dev/sse"
},
"cf-mcp-docker": {
"command": "docker",
"args": ["exec", "-i", "cf-mcp-service", "node", "dist/node-server.js"]
}
}
}2. Cursor Configuration
In the Cursor interface, go to Settings -> Features -> MCP Servers -> Add New MCP Server:
Name:
cf-mcp-serviceType:
sseURL:
http://localhost:3000/sse(local Docker) orhttps://<your-worker>.workers.dev/sse(remote Worker)
🧪 Test Verification Examples
1. Test the REST API with a question (first question - Cache MISS)
curl -X POST http://localhost:3000/api/ask \
-H "Content-Type: application/json" \
-d '{"question": "什麼是 MCP Skill?"}'2. Test with the same question (repeated question - Cache HIT ⚡)
curl -X POST http://localhost:3000/api/ask \
-H "Content-Type: application/json" \
-d '{"question": "什麼是 MCP Skill?"}'3. View cache statistics
curl http://localhost:3000/api/cache/statsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/tobytoy/cf-mcp-playground'
If you have feedback or need assistance with the MCP directory API, please join our Discord server