Skip to main content
Glama
isramate22-create

Hello MCP Server

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 an McpServer factory into a Worker-compatible fetch handler

  • Minimal setup — define tools in a factory, pass the factory to createMcpHandler, done

  • Stateless — no Durable Objects, no persistent state, each request is independent

Related MCP server: Hello MCP Server

Running

pnpm install
pnpm start

Open 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;

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    A minimal stateless MCP server for Cloudflare Workers that provides a greeting tool, demonstrating the use of createMcpHandler from the Agents SDK.
    225
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A stateless MCP server for Cloudflare Workers that uses createMcpHandler to expose a simple greeting tool, requiring no persistent state.
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables running a stateless MCP server on Cloudflare Workers with minimal setup, exposing tools like a greeting tool and supporting inspection through the MCP Inspector.
    -

Latest Blog Posts

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/isramate22-create/mcp-worker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server