- MCP Server with Claude Cursor & Weather API Integration
MCP Server with Claude Cursor & Weather API Integration
Sure! Below is a basic template for your README document, which you can edit further based on your specific project needs. It explains the integration of your MCP (Minecraft) server with Claude Cursor, CMD commands, and Weather API.
MCP Server with Claude Cursor & Weather API Integration
This project is a custom Minecraft Server (MCP) designed to integrate with Claude Cursor for enhanced interaction through the command line interface (CLI), and it also utilizes a Weather API to provide real-time weather updates in the server.
Features
- MCP Server: A fully functional Minecraft server setup.
- Claude Cursor Integration: Allows users to interact with the server through CLI commands, enhancing the server's user experience.
- Weather API Integration: Get real-time weather updates directly through the server’s command line.
Setup Instructions
1. Install weather Server
- Download the Minecraft server from the https://www.weather.gov/documentation/services-web-api.
- Extract the downloaded file to your desired directory.
- Run the server:
java -jar minecraft_server.jar
2. Integrating Claude Cursor
- Install Claude Cursor: Follow the installation instructions provided on Claude Cursor's GitHub page.
- Set up the connection: Ensure the server is linked to Claude Cursor by editing the configuration file.
3. Setup Weather API
- Create an account on any Weather API provider like OpenWeatherMap and get your API key.
- Add the API Key: In your server config file, add your API key for weather data fetching.
Example config snippet:
weather_api_key="YOUR_API_KEY"
4. Run the Server
-
Once everything is configured, start the Minecraft server.
java -jar minecraft_server.jar -
Execute Commands via CLI:
-
To check the weather, use:
/weather <city_name> -
Claude Cursor will fetch the data from the Weather API and return the current weather information to the Minecraft server.
-
Usage
-
Weather Command: Type
/weather <city_name>to get real-time weather data in your Minecraft chat. -
Custom Commands: You can extend the functionality by adding more commands via Claude Cursor integration.
Example Commands:
-
Get Weather:
Command:/weather New York
Output:Current weather in New York: 72°F, Partly Cloudy -
Send Custom Message via Claude Cursor:
Command:/sendmessage "Hello from Claude Cursor!"
Troubleshooting
- MCP Server Crashes: Ensure that you have the correct version of Java installed.
- Weather API Not Responding: Verify your API key is correctly placed and is still active.
Contributing
Feel free to fork this repository and submit pull requests with improvements or additional features. Please ensure any new code is well-documented and tested.
Reporting Issues
If you run into any bugs or issues, please open an issue on this repository, and I'll be happy to help resolve it.
License
This project is licensed under the MIT License – see the LICENSE file for details.
This README should give users clear instructions on setting up the project, using the integration, and troubleshooting common issues. You can expand this with more specific details regarding your setup. Let me know if you need further modifications!