AI Backend MCP Server
Enables AI clients to use custom tools, maintain memory, and follow structured prompts, built with TypeScript MCP SDK and deployable to Cloudflare.
README
đź§ Build an AI Backend: Tools, Memory & Prompts for Real-World LLMs
Welcome to the workshop! In this hands-on session, you'll learn how to build and deploy an MCP (Model Context Protocol) server — the backend brain behind AI clients like assistants, copilots, and autonomous agents.
Using the open-source TypeScript MCP SDK and Claude/Cloudflare Playground, you’ll create a system that gives an LLM memory, tool access, and structured prompts — and deploy it live using Cloudflare.
No prior AI experience needed — just high-level JavaScript/TypeScript, and curiosity!
<details> <summary><strong>🎯 Workshop Goals</strong></summary>
By the end of this workshop, you will:
- Understand what an MCP Server is and how it powers AI systems
- Use the MCP SDK to:
- Register and expose tools (functions) to an AI model
- Manage context and memory for stateful conversations
- Orchestrate prompts and responses between clients and Claude
- Run and test your MCP server locally
- Deploy your MCP server to Cloudflare using Workers or Pages Functions so others can use it too
</details>
<details> <summary><strong>👩‍💻 Who This Is For</strong></summary>
This workshop is designed for:
- Engineers curious about AI infrastructure
- Folks building AI-powered assistants, bots, or internal tools
- DevOps/Platform engineers interested in tool orchestration
- Anyone who wants to get hands-on with real LLM systems (beyond chatbots)
</details>
<details> <summary><strong>đź§° Tools & Tech Requirements</strong></summary>
All tools are free, open source, or have free tiers. We'll support you with setup.
| Tool | Purpose |
|---|---|
| TypeScript MCP SDK | Core server logic |
| Node.js v18+ | Runtime |
| MCP client of choice | AI model backend |
| Cloudflare Workers / | Live deployment platform |
You’ll need:
- A personal GitHub account
- A working Node.js v18+ environment
- An account with Claude or mcp client of choice
- A Cloudflare account (free tier is fine)
👉🏾Full set-up instructions are here
</details>
<details> <summary><strong>đź› What You'll Build</strong></summary>
- A fully working AI backend with:
- Custom tools (functions) that your AI can call
- Memory for storing state or chat history
- Prompt logic that guides Claude’s behavior
- A live, working Cloudflare-hosted MCP server accessible from the web
</details>
<details> <summary><strong>📦 You’ll Walk Away With</strong></summary>
- A GitHub repo of your custom, live-deployed MCP server
- Experience building modern AI infrastructure with open source tools
- A clearer understanding of AI backend architecture and edge deployments
- Confidence to keep building LLM-powered assistants, agents, or copilots
- Real experience with Cloudflare’s developer platform (Workers, Pages, etc.)
</details>
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.