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
- AsecurityFlicenseAqualityA starter template for building Model Context Protocol servers that can be integrated with Cursor or Claude Desktop, allowing developers to create custom tools and extensions for AI assistants.Last updated -1313TypeScript
- -securityFlicense-qualityA simple MCP service that allows users to query weather conditions for cities worldwide through the Cursor AI assistant.Last updated -1JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables users to fetch weather forecasts through Cursor AI by using natural language queries.Last updated -PythonMIT License
- AsecurityFlicenseAqualityA starter template for building Model Context Protocol servers that integrate with AI assistants like Claude and Cursor, providing custom tools, resource providers, and prompt templates.Last updated -2JavaScript