Ejemplo de servidor MCP
Este proyecto es un servidor MCP muy básico listo para ser consumido por Cursor u otras herramientas.
Modifique index.ts y agregue las herramientas que desee o mantenga las predeterminadas.
Luego construye el proyecto:
Y ejecutarlo:
Ahora agregue un archivo .cursor/mcp.json en su proyecto y pegue lo siguiente;
Reemplace [ruta] con la ruta absoluta de este proyecto. Ejecute pwd en la carpeta del proyecto para ello. Por ejemplo, en mi caso es:
Ahora ve a "Configuración" en el cursor. Deberías poder ver el servidor MCP allí. Habilítalo (haz clic en la esquina superior derecha).
Ahora ve al chat, cambia al modo Agente y selecciona claude-3.7-sonnet como tu modelo.
Escriba lo siguiente:
Utilizará el MCP para obtener primero las alertas meteorológicas y luego el pronóstico. Aquí hay un ejemplo de cómo se ve la interfaz de chat al consultar el clima en Texas:
Una plantilla de servidor MCP básica que se puede integrar con Cursor para habilitar herramientas de IA como la recuperación de información meteorológica utilizando el modelo Claude-3.7-sonnet.
Related MCP Servers
- -securityFlicense-qualityA simple MCP service that allows users to query weather conditions for cities worldwide through the Cursor AI assistant.Last updated -JavaScript
- -securityFlicense-qualityAn MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.Last updated -Python
- -securityFlicense-qualityAn MCP-based project that integrates Zhipu AI and Tencent Map APIs to provide weather queries, geocoding, and web search functionality through both command-line and web interfaces.Last updated -2Python
- AsecurityAlicenseAqualityAn MCP server that allows retrieving meteorological and climate data from Spain's State Meteorological Agency (AEMET) API directly from Claude AI and other MCP-compatible clients.Last updated -72PythonMIT License