Node.js Stateful Server Template
Provides an easy-to-extend and robust template for creating and hosting stateful servers with Streamable-http transport using Node.js.
This project offers a robust and easy-to-extend template for building stateful Model Context Protocol (MCP) servers using Node.js and Streamable-http transport. Unlike many stateless or stdio-based MCP server tutorials, this template provides a fully-functional foundation with a modular structure for tools, resources, and server logic. It incorporates an in-memory database (`Node-Cache`) to manage stateful transport objects, enhancing performance and simplifying the creation of custom workflows through easy integration of new tools and resources.
Características Principales
01Stateful MCP server with Streamable-http transport
02Modular architecture for tools and resources
03In-memory state management using Node-Cache
04Pre-built example tools (e.g., MongoDB, Pokemon API) and resources included
05Simplified extension for custom functionalities
061 GitHub stars
Casos de Uso
01Developing custom stateful MCP servers with Node.js.
02Extending existing applications with robust MCP capabilities.
03Enabling AI agents like GitHub Copilot to interact with custom tools and data.