mcp-server-node
The project showcases an MCP server implemented in Node.js to expose tools like addition and environment variable retrieval within AI-assisted development environments. It focuses on enhancing developer productivity by enabling easy tool integration.
Overview
MCP (Model Context Protocol) is a framework for integrating custom tools into AI-assisted development environments, like Cursor AI. This project demonstrates an MCP server in Node.js, providing tools such as addition and API key retrieval from environment variables. Features include MCP integration, addition tool, environment variable retrieval, input validation using Zod, and standard I/O transport for integration with development environments. It allows you to define tools that automatically execute based on context, improving developer productivity.
Features
- MCP Integration with LLM-based IDEs
- Addition Tool: Sum two numbers
- Environment Variable Retrieval: Load example environment variables
- Input Validation: Uses Zod
Installation
- Clone the repository.
- Install dependencies.
Integration with Cursor AI
Includes an mcp.json
file for server configuration, allowing Cursor AI to discover and launch the MCP server.