The my-mcp-server
is a Node.js server implementing the Model Context Protocol (MCP) that provides three tools for AI-powered interactions:
Greet: Generate personalized greeting messages by providing a name
Calculate: Evaluate basic mathematical expressions (e.g.,
2 + 2
)Weather Info: Retrieve mock weather data for a specified city
Enables access to a GitHub repository containing the MCP server implementation, allowing users to clone the project and use the provided tools.
Provides a simple MCP server implementation in Node.js with three tools: greet for personalized messages, calculate for basic math operations, and weather_info for retrieving mock weather data for cities.
my-mcp-server
A simple Model Context Protocol (MCP) server implementation in Node.js. This server exposes three tools via MCP:
- greet: Greet someone with a personalized message.
- calculate: Perform basic math calculations.
- weather_info: Get mock weather information for a city.
Above ones are implemented in the server1.js
in server2 there is an agent that requires selenium web driver that launches the html provided in prompt in a browser and tests and returns if any console errors are thrown.
All these agents can be used in not just copilot but with other AI extensions too for example refer this video for Amazon Q --> https://www.youtube.com/watch?v=sF6KkaV102M
Features
- MCP server using
@modelcontextprotocol/sdk
- Stdio transport for easy integration
- Extensible tool definitions
Steps
- Clone the repo and install dependencies
- Open the my-mcp folder in vscode
- Open copilot chat
- In the chat click on "Configure Tools"
- Add more tools
- Add MCP Server
- This creates an mcp.json file with minimal configuration of the command your mcp server will run, in our case the repo already has that so step #4 to #7 is not needed
- Just go to that file and click "Restart"
- The server.js has three tools greet, calculate and weather_info
- You can interact with these now using prompts like:
local-only server
The server can only run on the client's local machine because it depends on local resources.
A simple Node.js MCP server that exposes three tools: greet for personalized messages, calculate for basic math operations, and weather_info for mock weather data retrieval.
Related MCP Servers
- AsecurityFlicenseAqualityA simple MCP server that provides a tool to fetch current weather information for cities using the Open-Meteo API, communicating through stdin/stdout.Last updated -12
- AsecurityAlicenseAqualityA TypeScript-based MCP server that provides simulated weather data including current conditions, forecasts, alerts, and location search functionality through both MCP protocol and HTTP API endpoints.Last updated -5111MIT License
- AsecurityAlicenseAqualityA simple educational MCP server implemented in Node.js that allows users to fetch weather information for cities using the Open-Meteo API.Last updated -11MIT License
- -securityFlicense-qualityA TypeScript-based MCP server that provides weather information through resources and tools, allowing users to access current weather data and forecast predictions for different cities.Last updated -3