what is MCP-Server?
MCP-Server is a server application that utilizes the Meteostat API to fetch and provide meteorological data from around the world.
how to use MCP-Server?
To use MCP-Server, install the necessary dependencies using npm, build the project, and start the server. You can then make POST requests to retrieve weather data for specific locations.
key features of MCP-Server?
- Fetches global meteorological data using the Meteostat API.
- Built with Express.js for easy server management.
- Supports POST requests to retrieve data based on geographical coordinates.
use cases of MCP-Server?
- Retrieving weather data for specific locations.
- Integrating weather data into applications for analysis or display.
- Supporting research projects that require historical weather data.
FAQ from MCP-Server?
- What technologies does MCP-Server use?
MCP-Server is built using Node.js and TypeScript, leveraging the Express.js framework.
- How can I retrieve weather data?
You can make a POST request to the server with the latitude and longitude of the desired location.
- Is there any documentation available?
Yes, you can find the documentation and source code on the project's GitHub page: MCP-Server GitHub.
MCP-Server
This is an MCP-Server that uses the Meteostat API to get meteorological data worldwide.
Description
This server fetches data from the Meteostat API to provide information on weather conditions globally.
Prerequisites
- Node.js
- npm
Installation
Install the dependencies:
npm install
Usage
To start the server, run:
npm run start
Express.js Server
This project includes an Express.js server. To run the server, follow these steps:
- Build the project:
npm run build
- Start the server:
node build/server.js
Making POST Requests
You can make POST requests to the server using Postman or any other HTTP client.
Example request:
- URL:
http://localhost:4000/get_nearby_stations
- Body:
{ "lat": 39.7492, "lon": -8.8103 }
This request will retrieve the meteorological data for the specified location and date.