mcp-server-basic-examples

estebancordoba/mcp-server-basic-examples

3.1

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.

Tools
1
Resources
0
Prompts
0

@francoecp/test-mcp-server

npm

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:

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build

License

MIT

Author

Esteban Córdoba