HTTP Server with MCP Support
by jhgaylor
This is 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 server implementation with modern Streamable HTTP transport.
Last updated: N/A
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 implements a stateless MCP server with streamable HTTP transport.
How to use HTTP Server with MCP Support?
- Clone the repository. 2. Install dependencies using
npm install
. 3. Start the HTTP transport withnpm run start:web
or the stdio transport withnpm run start
. 4. Customize candidate data by setting environment variables or updatingsrc/config.ts
. 5. Restart the server after making changes.
Key features of HTTP Server with MCP Support
HTTP and MCP functionality
Stateless MCP server implementation
Streamable HTTP transport
TypeScript for type safety
Express.js for HTTP handling
Use cases of HTTP Server with MCP Support
Serving candidate information via MCP
Providing a web interface alongside MCP
Demonstrating MCP server implementation
Building a type-safe HTTP server
Customizing candidate data through environment variables
FAQ from HTTP Server with MCP Support
What is MCP?
What is MCP?
Model Context Protocol (MCP) is a protocol for exchanging data.
What are the requirements to run this server?
What are the requirements to run this server?
Node.js 18+ and npm or yarn.
How do I customize the candidate data?
How do I customize the candidate data?
You can set environment variables like CONTACT_EMAIL, CANDIDATE_NAME, RESUME_URL, etc., or update them directly in src/config.ts
.
How do I start the HTTP transport?
How do I start the HTTP transport?
Run npm run start:web
.
How do I start the stdio transport?
How do I start the stdio transport?
Run npm run start
.