nestjs-mcp-server-langchainjs-demo
If you are the rightful owner of nestjs-mcp-server-langchainjs-demo and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository demonstrates a NestJS implementation of the Model Context Protocol (MCP) with a microservice architecture.
The NestJS MCP Server is a microservice architecture implementation that demonstrates the Model Context Protocol (MCP) using NestJS. It consists of two main services: the mcp-server, which provides functions to get the current time context for Language Learning Models (LLMs), and the mcp-backend, a client that uses LangChain.js and integrates with the MCP client SDK to connect to the MCP server. The system allows for the retrieval of time context information, which can be used by LLMs to process user queries. The architecture supports connecting to multiple MCP servers simultaneously, enhancing its scalability and flexibility. The project is built using technologies such as NestJS, LangChain.js, and the Model Context Protocol, with specific MCP client adapters and server implementations for seamless integration.
Features
- Microservice Architecture: Consists of mcp-server and mcp-backend services.
- Time Context Functionality: Provides current time context for LLMs.
- Multiple Server Connections: Supports connecting to multiple MCP servers simultaneously.
- Integration with LangChain.js: Uses LangChain.js for processing user queries.
- Scalable and Flexible: Easily extendable to include additional MCP servers.