mcp-server-node
If you are the rightful owner of mcp-server-node 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.
MCP (Model Context Protocol) is a framework that allows you to integrate custom tools into AI-assisted development environments.
The MCP Server in Node.js is a demonstration project that showcases how to build an MCP server using Node.js. It provides two basic tools: an addition tool that sums two numbers and a tool to retrieve an API key from the environment. The server is designed to integrate with LLM-based IDEs, such as Cursor AI, allowing these environments to call the server's tools on demand. The project requires Node.js version 20 or higher and uses Zod for input validation. It connects via standard I/O transport, making it compatible with various development environments. The project includes a configuration file for easy integration with Cursor AI, and scripts are provided to automate configuration setup.
Features
- MCP Integration: Exposes tool functionality to LLM-based IDEs.
- Addition Tool: Accepts two numeric parameters and returns their sum.
- Env Var Retrieval: Demonstrates how to load an example environment variable from the configuration file.
- Input Validation: Uses Zod for schema validation.
- Standard I/O Transport: Connects via StdioServerTransport for integration with development environments.