{"repo":"lucianoayres/mcp-server-node","free":true,"listed":false,"github":"https://github.com/lucianoayres/mcp-server-node","clone":"git clone https://github.com/lucianoayres/mcp-server-node.git","description":"MCP Server implemented in JavaScript using Node.js that demonstrates how to build an MCP server with a custom prompt and custom tools, including one that loads an environment variable from a configuration file, to integrate seamlessly with AI-assisted environments like Cursor IDE.","language":"JavaScript","stars":75,"topics":["ai","cursor","mcp-server","nodejs"],"license":"MIT","category":"mcp-servers","readme_excerpt":"🟢 MCP Server in Node.js Build and run a custom MCP Server in Node.js in just 2 minutes ⏱️ Overview · Features · Installation · Testing with MCP Inspector · Setting Environment Variables for Testing · Integrating with Cursor AI · Using the MCP Tool in Cursor (Agent Mode) · Code Overview · References & Resources · License Overview MCP (Model Context Protocol) is a framework that allows you to integrate custom tools into AI-assisted development environments—such as Cursor AI. MCP servers expose functionality (like data retrieval or code analysis) so that an LLM-based IDE can call these tools on demand. Learn more about MCP in the Model Context Protocol Introduction. This project demonstrates an MCP server implemented in JavaScript using Node.js. It defines two tools: add , which takes two numeric inputs and returns their sum, and getApiKey , which retrieves the API key from the API KEY environment variable. It also provides a predefined prompt add numbers that allows AI models to infer the usage of the addition tool. Requirements - Node.js: Version 20 or higher is required. Features - MCP Integration: Exposes tool functionality to LLM-based IDEs. - Addition Tool: Accepts two numeric parameters and returns their sum. - MCP Prompt: Provides a predefined prompt (\"add numbers\") that allow AI models to infer tool usage. - Env Var Retrieval: Demonstrates how to load an example environment variable from the configuration file. - Input Validation: Uses Zod for schema validation. - Stan","default_branch":null,"files":null,"tree":[],"storefront":"/r/lucianoayres","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lucianoayres/mcp-server-node/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}