공공 API 연동 MCP 샘플
Integrates the Korea Meteorological Administration's public weather API to provide climate data.
공공 API 연동 MCP 샘플
- 공공 API를 연동시켜 응답을 받는 MCP(Model Context Protocol)의 샘플 프로젝트이다.
사용된 공공 API
-
기상청 국가기후 데이터센터에서 제공하는 관광코스별 관광지 상세 날씨 조회서비스 를 사용하였다. API 관련 사항은 해당 페이지의 문서를 참조하도록 한다.
-
도시 코드와 날짜로 관광지 TCI 지수를 반환하도록 되어 있다
-
도시 코드는
getCityInfo에서 반환하도록 되어 있지만, 전부를 다 넣지는 않았다. -
모든 도시 코드는
지역코드.txt에 있으므로 참고하도록 한다. -
api 키는 공공데이터 포털에서 신청하여 받아
application.properties에 추가하여 사용하도록 한다.
설정 추가 (커서 기준)
- Cursor Setting 의
mcp.json에 다음과 같이 추가해 준다.
{
"mcpServers": {
"weather-api": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.transport=STDIO",
"-jar",
"jar 파일의 경로로 설정"
]
}
}
}
- 질의 테스트는 다음과 같이 수행하였다. 예)
weather-api를 사용해서 제주도의 25년 7월 1일부터 5일간의 날씨를 알려 줘
참고
- 코드를 수정하였으면 다음 절차를 거쳐야 한다.
- 커서 등의 클라이언트 종료
mvn clean package로 빌드 재수행 (만약, 프로세스 점유 중이라면 종료한다. 디폴트 포트는 8090이다.)- 클라이언트를 재시작해서 툴을 정상적으로 불러오나 확인
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
webrtcperf
WebRtcPerf is an open-source tool designed for testing WebRTC services with multiple concurrent client connections, measuring the most important RTC statistics and collecting them in an easy way.
Lanhu MCP
⚡ Boost Requirement Analysis Efficiency by 200%! The World's First Team Collaboration MCP Server Designed for the AI Coding Era. Automatically analyzes requirements, generates full-stack code, and downloads design assets.
Honeybadger
Interact with the Honeybadger API for error monitoring and reporting using LLMs.
MCP Startup Framework
A framework for building MCP servers on Cloudflare Workers with OAuth, PostgreSQL, and Stripe.
pyATS
Interact with network devices using Cisco's pyATS and Genie libraries for model-driven automation.
Unified MCP & A2A Server
A Google Apps Script server that unifies Model Context Protocol (MCP) and Agent2Agent (A2A) for Google Workspace users.
Zeplin
Official Zeplin server for AI-assisted UI development.
Galley MCP Server
Integrates Galley's GraphQL API with MCP clients. It automatically introspects the GraphQL schema for seamless use with tools like Claude and VS Code.
fal.ai Recraft v3
Advanced text-to-image generation using the fal.ai Recraft v3 API.
QA Sphere
Integration with QA Sphere test management system, enabling LLMs to discover, summarize, and interact with test cases directly from AI-powered IDEs