Node.js Stateful Server Template icon

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.

主要功能

  • Stateful MCP server with Streamable-http transport
  • Modular architecture for tools and resources
  • In-memory state management using Node-Cache
  • Pre-built example tools (e.g., MongoDB, Pokemon API) and resources included
  • Simplified extension for custom functionalities
  • 1 GitHub stars

使用案例

  • Developing custom stateful MCP servers with Node.js.
  • Extending existing applications with robust MCP capabilities.
  • Enabling AI agents like GitHub Copilot to interact with custom tools and data.
Advertisement

Advertisement