概要
What is HTTP Server with MCP Support?
An HTTP server built with Express and TypeScript that serves both a webpage and a Model Context Protocol (MCP) endpoint. It provides a stateless MCP implementation using modern Streamable HTTP transport.
How to use HTTP Server with MCP Support?
Install Node.js 18+ and npm, clone the repository, run npm install and npm run build. Start in development mode with npm run dev. Send JSON‑RPC requests via curl to POST /mcp — for example, initialize or tools/call with the echo tool.
Key features of HTTP Server with MCP Support
- Express and TypeScript HTTP server
- Stateless MCP with Streamable HTTP transport
- Webpage at
GET /and MCP endpoint atPOST /mcp - Echo resource (
echo://{message}), tool, and prompt - TypeScript type safety
Use cases of HTTP Server with MCP Support
- Integrating LLMs with external functionality via the MCP protocol
- Testing MCP interactions (initialize, tool calls) locally
- Serving a basic webpage alongside a standards‑based MCP endpoint
- Demonstrating a stateless, streamable HTTP MCP server
FAQ from HTTP Server with MCP Support
What are the runtime requirements?
Node.js 18+ and npm or yarn.
What MCP endpoint does the server expose?
The MCP endpoint is at POST /mcp on the running server.
What MCP components are implemented?
A resource (echo://{message}), a tool (echo), and a prompt (echo) — all echo the provided message back.
Is the MCP server stateful or stateless?
It is stateless and uses the modern Streamable HTTP transport.
How can I test the MCP endpoint?
Use the curl commands shown in the README, for example an initialize request or a tools/call request with the echo tool and a message argument.