**Model Context Protocol (MCP)**를 활용하여 날씨 예보 서버(weather forecast server)를 구축하는 과정에서 사용할 수 있는 단계별 프롬프트를 아래에 정리하겠습니다. 이 프롬프트는 MCP 서버 개발 가이드와 Claude Desktop 클라이언트를 기반으로 하며, 실제로 사용 가능한 형태로 작성되었습니다. MCP 서버를 통해 날씨 경보(get_alerts)와 예보(get_forecast) 기능을 구현하고, 이를 Claude Desktop에서 테스트하는 과정을 포함합니다. 각 단계는 서버 구축부터 테스트까지의 흐름을 반영하며, 개발자와 Claude Desktop 간의 상호작용을 고려했습니다.
MCP 날씨 예보 서버 구축을 위한 단계별 프롬프트 리스트
1단계: 개발 환경 준비
프롬프트:
"Check if Python is installed on my system and guide me to install it if it’s not."
(시스템에 Python이 설치되어 있는지 확인하고, 없으면 설치 가이드를 제공하도록 요청합니다.)
"Check if Python is installed on my system and guide me to install it if it’s not."
(시스템에 Python이 설치되어 있는지 확인하고, 없으면 설치 가이드를 제공하도록 요청합니다.)
2단계: MCP Python SDK 설치
프롬프트:
"Install the MCP Python SDK on my system using pip."
(MCP Python SDK를 설치하기 위해 pip 명령어를 실행하도록 요청합니다.)
"Install the MCP Python SDK on my system using pip."
(MCP Python SDK를 설치하기 위해 pip 명령어를 실행하도록 요청합니다.)
3단계: 프로젝트 디렉토리 생성
프롬프트:
"Create a new directory named 'mcp-weather-server' for my MCP weather server project and navigate into it."
(새로운 프로젝트 디렉토리를 생성하고 해당 디렉토리로 이동하도록 요청합니다.)
"Create a new directory named 'mcp-weather-server' for my MCP weather server project and navigate into it."
(새로운 프로젝트 디렉토리를 생성하고 해당 디렉토리로 이동하도록 요청합니다.)
4단계: 코드 에디터 열기
프롬프트:
"Open the 'mcp-weather-server' directory in VSCode."
(VSCode에서 프로젝트 디렉토리를 열도록 요청합니다.)
"Open the 'mcp-weather-server' directory in VSCode."
(VSCode에서 프로젝트 디렉토리를 열도록 요청합니다.)
5단계: 새 파일 생성
프롬프트:
"Create a new file named 'server.py' in the 'mcp-weather-server' directory."
(server.py 파일을 생성하도록 요청합니다.)
"Create a new file named 'server.py' in the 'mcp-weather-server' directory."
(server.py 파일을 생성하도록 요청합니다.)
6단계: 기본 MCP 서버 코드 작성
프롬프트:
"Write a basic MCP server code in 'server.py' that includes two functions: 'get_alerts' and 'get_forecast', and runs the server."
(기본 MCP 서버 코드를 작성하도록 요청합니다. get_alerts와 get_forecast 함수를 포함합니다.)
"Write a basic MCP server code in 'server.py' that includes two functions: 'get_alerts' and 'get_forecast', and runs the server."
(기본 MCP 서버 코드를 작성하도록 요청합니다. get_alerts와 get_forecast 함수를 포함합니다.)
7단계: OpenWeatherMap API 키 발급
프롬프트:
"Guide me to sign up for OpenWeatherMap and obtain an API key."
(OpenWeatherMap에 가입하고 API 키를 발급받는 과정을 안내하도록 요청합니다.)
"Guide me to sign up for OpenWeatherMap and obtain an API key."
(OpenWeatherMap에 가입하고 API 키를 발급받는 과정을 안내하도록 요청합니다.)
8단계: API 키를 환경 변수로 설정
프롬프트:
"Set my OpenWeatherMap API key as an environment variable named 'WEATHER_API_KEY' on my system."
(API 키를 환경 변수로 설정하도록 요청합니다.)
"Set my OpenWeatherMap API key as an environment variable named 'WEATHER_API_KEY' on my system."
(API 키를 환경 변수로 설정하도록 요청합니다.)
9단계: 날씨 데이터 가져오기 코드 추가
프롬프트:
"Add code to 'server.py' to fetch weather data from OpenWeatherMap API for a given city using the 'WEATHER_API_KEY' environment variable."
(OpenWeatherMap API를 호출하여 날씨 데이터를 가져오는 코드를 추가하도록 요청합니다.)
"Add code to 'server.py' to fetch weather data from OpenWeatherMap API for a given city using the 'WEATHER_API_KEY' environment variable."
(OpenWeatherMap API를 호출하여 날씨 데이터를 가져오는 코드를 추가하도록 요청합니다.)
10단계: get_alerts 기능 구현
프롬프트:
"Modify the 'get_alerts' function in 'server.py' to fetch weather alerts for a given city using OpenWeatherMap API and return the alerts in a formatted string."
(get_alerts 함수를 수정하여 날씨 경보를 가져오고 포맷된 문자열로 반환하도록 요청합니다.)
"Modify the 'get_alerts' function in 'server.py' to fetch weather alerts for a given city using OpenWeatherMap API and return the alerts in a formatted string."
(get_alerts 함수를 수정하여 날씨 경보를 가져오고 포맷된 문자열로 반환하도록 요청합니다.)
11단계: get_forecast 기능 구현
프롬프트:
"Modify the 'get_forecast' function in 'server.py' to fetch the weather forecast for a given city using OpenWeatherMap API and return the forecast in a formatted string with temperature in Celsius and weather conditions."
(get_forecast 함수를 수정하여 날씨 예보를 가져오고 섭씨 온도와 날씨 조건을 포함한 포맷된 문자열로 반환하도록 요청합니다.)
"Modify the 'get_forecast' function in 'server.py' to fetch the weather forecast for a given city using OpenWeatherMap API and return the forecast in a formatted string with temperature in Celsius and weather conditions."
(get_forecast 함수를 수정하여 날씨 예보를 가져오고 섭씨 온도와 날씨 조건을 포함한 포맷된 문자열로 반환하도록 요청합니다.)
12단계: 서버 실행
프롬프트:
"Run the MCP server by executing 'server.py' and confirm that it starts without errors."
(server.py를 실행하여 서버를 시작하고 오류 없이 실행되는지 확인하도록 요청합니다.)
"Run the MCP server by executing 'server.py' and confirm that it starts without errors."
(server.py를 실행하여 서버를 시작하고 오류 없이 실행되는지 확인하도록 요청합니다.)
13단계: Claude Desktop 설치
프롬프트:
"Guide me to download and install Claude Desktop on my computer."
(Claude Desktop을 다운로드하고 설치하는 과정을 안내하도록 요청합니다.)
"Guide me to download and install Claude Desktop on my computer."
(Claude Desktop을 다운로드하고 설치하는 과정을 안내하도록 요청합니다.)
14단계: Claude Desktop 실행
프롬프트:
"Open Claude Desktop and log in with my credentials."
(Claude Desktop을 실행하고 로그인하도록 요청합니다.)
"Open Claude Desktop and log in with my credentials."
(Claude Desktop을 실행하고 로그인하도록 요청합니다.)
15단계: Claude Desktop 설정 파일 열기
프롬프트:
"Open the Claude Desktop configuration file 'claude_desktop_config.json' in a text editor."
(Claude Desktop 설정 파일을 텍스트 에디터로 열도록 요청합니다.)
"Open the Claude Desktop configuration file 'claude_desktop_config.json' in a text editor."
(Claude Desktop 설정 파일을 텍스트 에디터로 열도록 요청합니다.)
16단계: MCP 서버 설정 추가
프롬프트:
"Add my MCP weather server to the 'claude_desktop_config.json' file with the server name 'weather' and the command to run 'server.py' from the 'mcp-weather-server' directory."
(MCP 날씨 서버를 설정 파일에 추가하도록 요청합니다.)
"Add my MCP weather server to the 'claude_desktop_config.json' file with the server name 'weather' and the command to run 'server.py' from the 'mcp-weather-server' directory."
(MCP 날씨 서버를 설정 파일에 추가하도록 요청합니다.)
17단계: 설정 파일 저장
프롬프트:
"Save the changes to 'claude_desktop_config.json'."
(설정 파일 변경 사항을 저장하도록 요청합니다.)
"Save the changes to 'claude_desktop_config.json'."
(설정 파일 변경 사항을 저장하도록 요청합니다.)
18단계: Claude Desktop 재시작
프롬프트:
"Restart Claude Desktop to apply the new configuration."
(Claude Desktop을 재시작하여 새 설정을 적용하도록 요청합니다.)
"Restart Claude Desktop to apply the new configuration."
(Claude Desktop을 재시작하여 새 설정을 적용하도록 요청합니다.)
19단계: MCP 도구 확인
프롬프트:
"Check if Claude Desktop has successfully loaded the MCP weather server by looking for the hammer icon and listing the available tools."
(Claude Desktop에서 MCP 서버가 로드되었는지 확인하고 사용 가능한 도구를 나열하도록 요청합니다.)
"Check if Claude Desktop has successfully loaded the MCP weather server by looking for the hammer icon and listing the available tools."
(Claude Desktop에서 MCP 서버가 로드되었는지 확인하고 사용 가능한 도구를 나열하도록 요청합니다.)
20단계: 날씨 경보 테스트 (뉴욕)
프롬프트:
"Let me check the current weather alerts for New York."
(뉴욕의 현재 날씨 경보를 확인하도록 요청합니다.)
"Let me check the current weather alerts for New York."
(뉴욕의 현재 날씨 경보를 확인하도록 요청합니다.)
21단계: 날씨 경보 테스트 (캘리포니아)
프롬프트:
"Let me check the current weather alerts for California."
(캘리포니아의 현재 날씨 경보를 확인하도록 요청합니다.)
"Let me check the current weather alerts for California."
(캘리포니아의 현재 날씨 경보를 확인하도록 요청합니다.)
22단계: 날씨 예보 테스트 (뉴욕)
프롬프트:
"What is the weather forecast for New York?"
(뉴욕의 날씨 예보를 확인하도록 요청합니다.)
"What is the weather forecast for New York?"
(뉴욕의 날씨 예보를 확인하도록 요청합니다.)
23단계: 날씨 예보 테스트 (런던)
프롬프트:
"What is the weather forecast for London?"
(런던의 날씨 예보를 확인하도록 요청합니다.)
"What is the weather forecast for London?"
(런던의 날씨 예보를 확인하도록 요청합니다.)
24단계: 로그 확인
프롬프트:
"Check the Claude Desktop logs for any errors related to the MCP weather server and show the last 20 lines of the log file."
(Claude Desktop 로그를 확인하여 MCP 서버 관련 오류를 찾고 마지막 20줄을 표시하도록 요청합니다.)
"Check the Claude Desktop logs for any errors related to the MCP weather server and show the last 20 lines of the log file."
(Claude Desktop 로그를 확인하여 MCP 서버 관련 오류를 찾고 마지막 20줄을 표시하도록 요청합니다.)
25단계: 디버깅 가이드 확인
프롬프트:
"If there are errors in the MCP weather server, guide me to the debugging section of the MCP documentation for troubleshooting tips."
(MCP 서버에 오류가 있을 경우 디버깅 섹션을 안내하도록 요청합니다.)
"If there are errors in the MCP weather server, guide me to the debugging section of the MCP documentation for troubleshooting tips."
(MCP 서버에 오류가 있을 경우 디버깅 섹션을 안내하도록 요청합니다.)
26단계: 추가 기능 제안
프롬프트:
"Suggest additional features for my MCP weather server, such as multi-day forecasts or historical weather data."
(MCP 날씨 서버에 추가할 수 있는 기능을 제안하도록 요청합니다.)
"Suggest additional features for my MCP weather server, such as multi-day forecasts or historical weather data."
(MCP 날씨 서버에 추가할 수 있는 기능을 제안하도록 요청합니다.)
27단계: 서버 확장
프롬프트:
"Add a new function to 'server.py' to fetch a 5-day weather forecast for a given city and return it in a formatted string."
(5일 예보를 가져오는 새 함수를 추가하도록 요청합니다.)
"Add a new function to 'server.py' to fetch a 5-day weather forecast for a given city and return it in a formatted string."
(5일 예보를 가져오는 새 함수를 추가하도록 요청합니다.)
28단계: 확장된 기능 테스트
프롬프트:
"What is the 5-day weather forecast for Tokyo?"
(도쿄의 5일 예보를 확인하도록 요청합니다.)
"What is the 5-day weather forecast for Tokyo?"
(도쿄의 5일 예보를 확인하도록 요청합니다.)
29단계: 서버 배포 준비
프롬프트:
"Guide me to package my MCP weather server as an npm package for distribution."
(MCP 서버를 npm 패키지로 패키징하는 과정을 안내하도록 요청합니다.)
"Guide me to package my MCP weather server as an npm package for distribution."
(MCP 서버를 npm 패키지로 패키징하는 과정을 안내하도록 요청합니다.)
30단계: 문서 작성
프롬프트:
"Write documentation for my MCP weather server, including setup instructions, available tools, and example prompts."
(MCP 날씨 서버에 대한 문서를 작성하도록 요청합니다.)
"Write documentation for my MCP weather server, including setup instructions, available tools, and example prompts."
(MCP 날씨 서버에 대한 문서를 작성하도록 요청합니다.)
추가 정보
MacBook Pro에서 Cursor AI와 **Model Context Protocol (MCP)**를 활용하여 날씨 예보 서버(weather forecast server)를 구축하는 과정에서 사용할 수 있는 단계별 프롬프트를 아래에 정리하겠습니다. 이 프롬프트는 실제로 사용 가능한 형태로 작성되었으며, MCP 서버를 통해 날씨 경보(get_alerts)와 예보(get_forecast) 기능을 구현하고, 이를 Cursor AI와 Claude Desktop에서 테스트하는 과정을 포함합니다. 각 단계는 개발 환경 설정부터 서버 구축, 테스트, 배포까지의 흐름을 반영하며, MacBook Pro 환경과 Cursor AI의 특성을 고려했습니다.
MacBook Pro에서 Cursor AI를 사용한 MCP 날씨 예보 서버 구축을 위한 단계별 프롬프트 리스트
1단계: MacBook Pro에서 Python 설치 확인
프롬프트:
"Check if Python 3.10 or higher is installed on my MacBook Pro, and if not, guide me to install it using Homebrew."
(MacBook Pro에 Python 3.10 이상이 설치되어 있는지 확인하고, 없으면 Homebrew를 통해 설치하도록 안내합니다.)
"Check if Python 3.10 or higher is installed on my MacBook Pro, and if not, guide me to install it using Homebrew."
(MacBook Pro에 Python 3.10 이상이 설치되어 있는지 확인하고, 없으면 Homebrew를 통해 설치하도록 안내합니다.)
2단계: Node.js 설치 확인
프롬프트:
"Verify if Node.js version 20 or higher is installed on my MacBook Pro, and if not, guide me to install it using Homebrew."
(Node.js 20 이상이 설치되어 있는지 확인하고, 없으면 Homebrew를 통해 설치하도록 안내합니다.)
"Verify if Node.js version 20 or higher is installed on my MacBook Pro, and if not, guide me to install it using Homebrew."
(Node.js 20 이상이 설치되어 있는지 확인하고, 없으면 Homebrew를 통해 설치하도록 안내합니다.)
3단계: MCP Framework 설치
프롬프트:
"Install the MCP Framework globally on my MacBook Pro using npm to enable MCP server development."
(MCP Framework를 npm을 통해 글로벌로 설치하여 MCP 서버 개발을 준비합니다.)
"Install the MCP Framework globally on my MacBook Pro using npm to enable MCP server development."
(MCP Framework를 npm을 통해 글로벌로 설치하여 MCP 서버 개발을 준비합니다.)
4단계: Cursor AI 설치 확인
프롬프트:
"Check if Cursor AI is installed on my MacBook Pro, and if not, guide me to download and install it from the official website."
(Cursor AI가 설치되어 있는지 확인하고, 없으면 공식 웹사이트에서 다운로드 및 설치하도록 안내합니다.)
"Check if Cursor AI is installed on my MacBook Pro, and if not, guide me to download and install it from the official website."
(Cursor AI가 설치되어 있는지 확인하고, 없으면 공식 웹사이트에서 다운로드 및 설치하도록 안내합니다.)
5단계: 프로젝트 디렉토리 생성
프롬프트:
"Create a new directory named 'mcp-weather-server' in my home directory on my MacBook Pro and navigate into it using the terminal."
(홈 디렉토리에 새로운 프로젝트 디렉토리를 생성하고 터미널에서 해당 디렉토리로 이동합니다.)
"Create a new directory named 'mcp-weather-server' in my home directory on my MacBook Pro and navigate into it using the terminal."
(홈 디렉토리에 새로운 프로젝트 디렉토리를 생성하고 터미널에서 해당 디렉토리로 이동합니다.)
6단계: Cursor AI에서 프로젝트 열기
프롬프트:
"Open the 'mcp-weather-server' directory in Cursor AI on my MacBook Pro."
(Cursor AI에서 프로젝트 디렉토리를 엽니다.)
"Open the 'mcp-weather-server' directory in Cursor AI on my MacBook Pro."
(Cursor AI에서 프로젝트 디렉토리를 엽니다.)
7단계: 새 Python 파일 생성
프롬프트:
"Create a new file named 'weather_server.py' in the 'mcp-weather-server' directory using Cursor AI."
(Cursor AI에서 weather_server.py 파일을 생성합니다.)
"Create a new file named 'weather_server.py' in the 'mcp-weather-server' directory using Cursor AI."
(Cursor AI에서 weather_server.py 파일을 생성합니다.)
8단계: 기본 MCP 서버 코드 작성
프롬프트:
"Write a basic MCP server in 'weather_server.py' using Python that includes two tools: 'get_alerts' and 'get_forecast', and sets up the server to run via stdio."
(weather_server.py에 기본 MCP 서버 코드를 작성하여 get_alerts와 get_forecast 도구를 포함하고, stdio를 통해 실행되도록 설정합니다.)
"Write a basic MCP server in 'weather_server.py' using Python that includes two tools: 'get_alerts' and 'get_forecast', and sets up the server to run via stdio."
(weather_server.py에 기본 MCP 서버 코드를 작성하여 get_alerts와 get_forecast 도구를 포함하고, stdio를 통해 실행되도록 설정합니다.)
9단계: OpenWeatherMap API 키 발급
프롬프트:
"Guide me to sign up for OpenWeatherMap and obtain a free API key for accessing weather data."
(OpenWeatherMap에 가입하고 무료 API 키를 발급받는 과정을 안내합니다.)
"Guide me to sign up for OpenWeatherMap and obtain a free API key for accessing weather data."
(OpenWeatherMap에 가입하고 무료 API 키를 발급받는 과정을 안내합니다.)
10단계: API 키를 환경 변수로 설정
프롬프트:
"Set my OpenWeatherMap API key as an environment variable named 'WEATHER_API_KEY' in my MacBook Pro terminal and ensure it persists across sessions by adding it to my shell configuration file."
(API 키를 환경 변수로 설정하고, 셸 설정 파일에 추가하여 세션 간 유지되도록 합니다.)
"Set my OpenWeatherMap API key as an environment variable named 'WEATHER_API_KEY' in my MacBook Pro terminal and ensure it persists across sessions by adding it to my shell configuration file."
(API 키를 환경 변수로 설정하고, 셸 설정 파일에 추가하여 세션 간 유지되도록 합니다.)
11단계: 날씨 데이터 가져오기 코드 추가
프롬프트:
"Add a function to 'weather_server.py' that fetches weather data from OpenWeatherMap API for a given city using the 'WEATHER_API_KEY' environment variable and returns the data in JSON format."
(OpenWeatherMap API를 호출하여 날씨 데이터를 가져오는 함수를 추가합니다.)
"Add a function to 'weather_server.py' that fetches weather data from OpenWeatherMap API for a given city using the 'WEATHER_API_KEY' environment variable and returns the data in JSON format."
(OpenWeatherMap API를 호출하여 날씨 데이터를 가져오는 함수를 추가합니다.)
12단계: get_alerts 기능 구현
프롬프트:
"Implement the 'get_alerts' tool in 'weather_server.py' to fetch weather alerts for a given city using OpenWeatherMap API and return a formatted string with any active alerts or a message if there are none."
(get_alerts 도구를 구현하여 날씨 경보를 가져오고 포맷된 문자열로 반환합니다.)
"Implement the 'get_alerts' tool in 'weather_server.py' to fetch weather alerts for a given city using OpenWeatherMap API and return a formatted string with any active alerts or a message if there are none."
(get_alerts 도구를 구현하여 날씨 경보를 가져오고 포맷된 문자열로 반환합니다.)
13단계: get_forecast 기능 구현
프롬프트:
"Implement the 'get_forecast' tool in 'weather_server.py' to fetch the current weather forecast for a given city using OpenWeatherMap API and return a formatted string with temperature in Celsius and weather conditions."
(get_forecast 도구를 구현하여 현재 날씨 예보를 가져오고 섭씨 온도와 날씨 조건을 포함한 포맷된 문자열로 반환합니다.)
"Implement the 'get_forecast' tool in 'weather_server.py' to fetch the current weather forecast for a given city using OpenWeatherMap API and return a formatted string with temperature in Celsius and weather conditions."
(get_forecast 도구를 구현하여 현재 날씨 예보를 가져오고 섭씨 온도와 날씨 조건을 포함한 포맷된 문자열로 반환합니다.)
14단계: MCP 서버 실행 테스트
프롬프트:
"Run the MCP server by executing 'weather_server.py' on my MacBook Pro and confirm that it starts without errors, listening on localhost:8000."
(weather_server.py를 실행하여 서버가 오류 없이 시작되고 localhost:8000에서 수신 중인지 확인합니다.)
"Run the MCP server by executing 'weather_server.py' on my MacBook Pro and confirm that it starts without errors, listening on localhost:8000."
(weather_server.py를 실행하여 서버가 오류 없이 시작되고 localhost:8000에서 수신 중인지 확인합니다.)
15단계: Cursor AI에서 MCP 서버 설정 파일 생성
프롬프트:
"Create a '.cursor/mcp.json' file in the 'mcp-weather-server' directory on my MacBook Pro to configure the MCP weather server for use in Cursor AI."
(Cursor AI에서 MCP 서버를 사용하기 위해 프로젝트 디렉토리에 .cursor/mcp.json 파일을 생성합니다.)
"Create a '.cursor/mcp.json' file in the 'mcp-weather-server' directory on my MacBook Pro to configure the MCP weather server for use in Cursor AI."
(Cursor AI에서 MCP 서버를 사용하기 위해 프로젝트 디렉토리에 .cursor/mcp.json 파일을 생성합니다.)
16단계: MCP 서버 설정 추가
프롬프트:
"Add my MCP weather server to the '.cursor/mcp.json' file with the server name 'weather-server' and the command to run 'python3 weather_server.py' from the 'mcp-weather-server' directory."
(MCP 날씨 서버를 .cursor/mcp.json 파일에 추가하여 Cursor AI에서 실행되도록 설정합니다.)
"Add my MCP weather server to the '.cursor/mcp.json' file with the server name 'weather-server' and the command to run 'python3 weather_server.py' from the 'mcp-weather-server' directory."
(MCP 날씨 서버를 .cursor/mcp.json 파일에 추가하여 Cursor AI에서 실행되도록 설정합니다.)
17단계: Cursor AI 재시작
프롬프트:
"Restart Cursor AI on my MacBook Pro to apply the new MCP server configuration."
(Cursor AI를 재시작하여 새로운 MCP 서버 설정을 적용합니다.)
"Restart Cursor AI on my MacBook Pro to apply the new MCP server configuration."
(Cursor AI를 재시작하여 새로운 MCP 서버 설정을 적용합니다.)
18단계: MCP 도구 확인
프롬프트:
"In Cursor AI, navigate to the MCP settings page and confirm that the 'weather-server' is listed with the tools 'get_alerts' and 'get_forecast' available."
(Cursor AI의 MCP 설정 페이지에서 서버와 도구가 제대로 로드되었는지 확인합니다.)
"In Cursor AI, navigate to the MCP settings page and confirm that the 'weather-server' is listed with the tools 'get_alerts' and 'get_forecast' available."
(Cursor AI의 MCP 설정 페이지에서 서버와 도구가 제대로 로드되었는지 확인합니다.)
19단계: Claude Desktop 설치
프롬프트:
"Guide me to download and install Claude Desktop on my MacBook Pro from the Anthropic website."
(Claude Desktop을 Anthropic 웹사이트에서 다운로드하고 설치하도록 안내합니다.)
"Guide me to download and install Claude Desktop on my MacBook Pro from the Anthropic website."
(Claude Desktop을 Anthropic 웹사이트에서 다운로드하고 설치하도록 안내합니다.)
20단계: Claude Desktop에서 MCP 서버 설정
프롬프트:
"In Claude Desktop on my MacBook Pro, configure the MCP weather server by adding a new server entry with the command 'python3 weather_server.py' and the working directory set to '~/mcp-weather-server'."
(Claude Desktop에서 MCP 날씨 서버를 설정합니다.)
"In Claude Desktop on my MacBook Pro, configure the MCP weather server by adding a new server entry with the command 'python3 weather_server.py' and the working directory set to '~/mcp-weather-server'."
(Claude Desktop에서 MCP 날씨 서버를 설정합니다.)
21단계: 날씨 경보 테스트 (뉴욕)
프롬프트:
"In Cursor AI, use the 'get_alerts' tool to check the current weather alerts for New York by passing the city name as an argument."
(Cursor AI에서 get_alerts 도구를 사용하여 뉴욕의 날씨 경보를 확인합니다.)
"In Cursor AI, use the 'get_alerts' tool to check the current weather alerts for New York by passing the city name as an argument."
(Cursor AI에서 get_alerts 도구를 사용하여 뉴욕의 날씨 경보를 확인합니다.)
22단계: 날씨 경보 테스트 (샌프란시스코)
프롬프트:
"In Claude Desktop, ask: 'Let me check the current weather alerts for San Francisco' to test the 'get_alerts' tool."
(Claude Desktop에서 get_alerts 도구를 테스트합니다.)
"In Claude Desktop, ask: 'Let me check the current weather alerts for San Francisco' to test the 'get_alerts' tool."
(Claude Desktop에서 get_alerts 도구를 테스트합니다.)
23단계: 날씨 예보 테스트 (런던)
프롬프트:
"In Cursor AI, use the 'get_forecast' tool to get the current weather forecast for London by passing the city name as an argument."
(Cursor AI에서 get_forecast 도구를 사용하여 런던의 날씨 예보를 확인합니다.)
"In Cursor AI, use the 'get_forecast' tool to get the current weather forecast for London by passing the city name as an argument."
(Cursor AI에서 get_forecast 도구를 사용하여 런던의 날씨 예보를 확인합니다.)
24단계: 날씨 예보 테스트 (도쿄)
프롬프트:
"In Claude Desktop, ask: 'What is the weather forecast for Tokyo?' to test the 'get_forecast' tool."
(Claude Desktop에서 get_forecast 도구를 테스트합니다.)
"In Claude Desktop, ask: 'What is the weather forecast for Tokyo?' to test the 'get_forecast' tool."
(Claude Desktop에서 get_forecast 도구를 테스트합니다.)
25단계: 서버 로그 확인
프롬프트:
"Check the server logs for my MCP weather server on my MacBook Pro to identify any errors or issues during the test requests, and display the last 20 lines of the log."
(MCP 서버 로그를 확인하여 테스트 중 발생한 오류를 식별합니다.)
"Check the server logs for my MCP weather server on my MacBook Pro to identify any errors or issues during the test requests, and display the last 20 lines of the log."
(MCP 서버 로그를 확인하여 테스트 중 발생한 오류를 식별합니다.)
26단계: 디버깅 가이드 요청
프롬프트:
"If there are errors in the MCP weather server logs, guide me to the debugging section of the MCP documentation for troubleshooting tips."
(로그에 오류가 있을 경우 MCP 문서의 디버깅 섹션을 안내합니다.)
"If there are errors in the MCP weather server logs, guide me to the debugging section of the MCP documentation for troubleshooting tips."
(로그에 오류가 있을 경우 MCP 문서의 디버깅 섹션을 안내합니다.)
27단계: 추가 기능 제안
프롬프트:
"Suggest additional features for my MCP weather server, such as a 5-day forecast tool or historical weather data retrieval."
(MCP 날씨 서버에 추가할 수 있는 기능을 제안합니다.)
"Suggest additional features for my MCP weather server, such as a 5-day forecast tool or historical weather data retrieval."
(MCP 날씨 서버에 추가할 수 있는 기능을 제안합니다.)
28단계: 5일 예보 기능 추가
프롬프트:
"Add a new tool named 'get_5day_forecast' to 'weather_server.py' that fetches a 5-day weather forecast for a given city using OpenWeatherMap API and returns the data in a formatted string."
(5일 예보를 가져오는 get_5day_forecast 도구를 추가합니다.)
"Add a new tool named 'get_5day_forecast' to 'weather_server.py' that fetches a 5-day weather forecast for a given city using OpenWeatherMap API and returns the data in a formatted string."
(5일 예보를 가져오는 get_5day_forecast 도구를 추가합니다.)
29단계: 5일 예보 테스트
프롬프트:
"In Claude Desktop, ask: 'What is the 5-day weather forecast for Paris?' to test the 'get_5day_forecast' tool."
(Claude Desktop에서 get_5day_forecast 도구를 테스트합니다.)
"In Claude Desktop, ask: 'What is the 5-day weather forecast for Paris?' to test the 'get_5day_forecast' tool."
(Claude Desktop에서 get_5day_forecast 도구를 테스트합니다.)
30단계: 서버 문서 작성
프롬프트:
"Write documentation for my MCP weather server, including setup instructions, available tools ('get_alerts', 'get_forecast', 'get_5day_forecast'), and example prompts for testing in Cursor AI and Claude Desktop."
(MCP 날씨 서버에 대한 문서를 작성합니다.)
"Write documentation for my MCP weather server, including setup instructions, available tools ('get_alerts', 'get_forecast', 'get_5day_forecast'), and example prompts for testing in Cursor AI and Claude Desktop."
(MCP 날씨 서버에 대한 문서를 작성합니다.)
추가 정보
-
운영 환경: 이 프롬프트는 MacBook Pro에서 Cursor AI와 Claude Desktop을 사용하는 환경을 기준으로 작성되었습니다. Cursor AI는 MCP 서버와의 통신을 stdio 또는 SSE를 통해 지원하며, MacBook Pro에서는 stdio 방식이 더 간단하게 동작합니다.
-
API 선택: OpenWeatherMap API를 사용했으며, 무료 플랜으로도 충분히 테스트 가능합니다. 필요 시 Open-Meteo와 같은 대체 API를 사용할 수도 있습니다.
-
확장 가능성: 위 프롬프트는 기본적인 날씨 예보 서버 구축을 다루지만, 추가 기능(예: 시간별 예보, 과거 데이터 조회)으로 확장할 수 있습니다.
이상으로 MacBook Pro에서 Cursor AI를 사용한 MCP 날씨 예보 서버 구축을 위한 단계별 프롬프트를 정리했습니다. 위 프롬프트는 MCP 서버 개발 가이드와 Claude Desktop을 기반으로 작성되었습니다. 각 프롬프트는 실제로 Claude Desktop에서 실행 가능한 형태로 설계되었으며, 개발 환경 설정부터 서버 테스트, 확장, 배포까지의 전 과정을 커버합니다. OpenWeatherMap API를 사용했지만, 다른 날씨 API(예: National Weather Service API)로 대체할 수도 있습니다.
< MacBook Pro, Cursor, MCP >
< MacBook Pro, Cursor, MCP >
'IT' 카테고리의 다른 글
인공지능의 발전과 미래 (0) | 2025.03.27 |
---|---|
eBook_Publishing.ai (0) | 2025.03.27 |
MCP pulsemcp_ (0) | 2025.03.27 |
MCP Smithery_"Smithey GitHub API 도구" 사용 방법 및 상세 설명 (0) | 2025.03.27 |
GenAI App Dev_Imformatica as iPaaS (0) | 2025.03.27 |