MCP 서버 예제
이 프로젝트는 Cursor나 다른 도구에서 사용할 수 있는 매우 기본적인 MCP 서버입니다.
index.ts를 수정하여 원하는 도구를 추가하거나 기본 도구를 그대로 사용합니다.
그런 다음 프로젝트를 빌드합니다.
지엑스피1
그리고 실행해보세요:
이제 프로젝트에 .cursor/mcp.json 파일을 추가하고 다음을 붙여넣습니다.
[path]를 이 프로젝트의 절대 경로로 바꾸세요. 프로젝트 폴더에서 pwd를 실행하세요. 예를 들어, 제 경우에는 다음과 같습니다.
이제 커서에서 "설정"으로 이동하세요. MCP 서버가 보일 겁니다. 오른쪽 상단을 클릭하여 활성화하세요.
이제 채팅으로 가서 에이전트 모드로 전환하고 모델로 claude-3.7-sonnet을 선택하세요.
다음을 입력하세요.
MCP를 사용하여 먼저 날씨 알림을 받고, 그 다음에 예보를 받습니다. 텍사스의 날씨를 쿼리할 때 채팅 인터페이스가 어떻게 보이는지에 대한 예는 다음과 같습니다.
Claude-3.7-sonnet 모델을 사용하여 날씨 정보 검색과 같은 AI 도구를 활성화하기 위해 Cursor와 통합할 수 있는 기본 MCP 서버 템플릿입니다.
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