HTTP Server with MCP Support

by jhgaylor

157 downloads Not rated yet

About

It is an HTTP server built with Express and TypeScript that serves both a webpage and a Model Context Protocol (MCP) endpoint. It implements a stateless MCP server with modern Streamable HTTP transport, designed for developers who want to integrate MCP capabilities alongside a web interface.

Explore

- HTTP server with both web and MCP functionality
- Stateless MCP server implementation with modern Streamable HTTP transport
- TypeScript for type safety
- Express.js for HTTP handling

- Node.js 18+
- npm or yarn

npm install
``

Send a POST request to /mcp with a JSON-RPC payload:

The token was made with:

fly tokens create deploy --name gh-jakegaylor-com-mcp-server --expiry 2160h`

curl -X POST http://localhost:3000/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Accept: text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "method": "tools/call",
    "params": {
      "name": "echo",
      "arguments": {
        "message": "Hello, World!"
      }
    },
    "id": 1
  }'

An HTTP server built with Express and TypeScript that serves both a webpage and a Model Context Protocol (MCP) endpoint.

Features

- HTTP server with both web and MCP functionality
- Stateless MCP server implementation with modern Streamable HTTP transport
- TypeScript for type safety
- Express.js for HTTP handling

Requirements

- Node.js 18+
- npm or yarn

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.