estebancordoba/mcp-server-basic-examples
If you are the rightful owner of mcp-server-basic-examples 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.
A sample Model Context Protocol (MCP) server implementation that provides a simple weather service.
@francoecp/test-mcp-server
A sample Model Context Protocol (MCP) server implementation that provides a simple weather service.
Description
This is a test package that demonstrates how to create a basic MCP server using the @modelcontextprotocol/sdk
. The server implements a simple weather service that returns mock weather data for any given city.
Installation
You can run this package directly using npx:
npx -y @francoecp/test-mcp-server@latest
Features
- Simple MCP server implementation
- Mock weather service endpoint
- Built with TypeScript
- Uses Express.js and Zod for type validation
Available Tools
getWeather
Returns mock weather information for a specified city.
Parameters:
city
(string): The name of the city to get weather information for
Response:
- Returns a message indicating sunny weather for the specified city
Development
To set up the development environment:
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
License
MIT
Author
Esteban Córdoba