Hello MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Server (createMcpHandler)
The simplest way to run a stateless MCP server on Cloudflare Workers. Uses createMcpHandler from the Agents SDK to handle all MCP protocol details in one line.
What it demonstrates
createMcpHandler— the Agents SDK helper that turns anMcpServerfactory into a Worker-compatible fetch handlerMinimal setup — define tools in a factory, pass the factory to
createMcpHandler, doneStateless — no Durable Objects, no persistent state, each request is independent
Related MCP server: sentiment-analyzer
Running
pnpm install
pnpm startOpen the browser to see the built-in tool tester, or connect with the MCP Inspector at http://localhost:5173/mcp.
How it works
import { McpServer } from "@modelcontextprotocol/server";
import { createMcpHandler } from "agents/mcp/server";
import { z } from "zod";
function createServer() {
const server = new McpServer({ name: "Hello MCP Server", version: "1.0.0" });
server.registerTool(
"hello",
{
description: "Returns a greeting",
inputSchema: { name: z.string().optional() }
},
async ({ name }) => ({
content: [{ type: "text", text: `Hello, ${name ?? "World"}!` }]
})
);
return server;
}
export default {
fetch(request, env, ctx) {
return createMcpHandler(createServer)(request, env, ctx);
}
} satisfies ExportedHandler;Related examples
mcp— stateful MCP server withMcpAgentand Durable Objectsmcp-worker-authenticated— adding OAuth authenticationmcp-client— connecting to MCP servers as a client
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Related MCP Connectors
Anonymous public tools for ZacharyR0th. See the published agent boundary before use.
Secure gift, flower, occasion, reminder, approval, and growth tools for personal AI agents.
Access Pollinations models and API capabilities through agent tools.
Current weather and forecast lookup as an agent tool.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to greet users in 7 different languages including English, Spanish, French, German, Japanese, Chinese, and Korean. A lightweight multilingual greeting tool for the Model Context Protocol.MIT
- AlicenseNot gradedqualityDmaintenanceProvides a hello and echo tool for basic interaction.22 npm1MIT
- AlicenseNot gradedqualityDmaintenanceExposes a greet tool that takes a name and returns a greeting message.ISC
- AlicenseAqualityCmaintenanceEnables MCP clients to call a simple greeting tool that takes a name and returns personalized text and structured messages via stdio.1ISC