Skip to main content
Glama
MCP Server Template for Cursor IDE

MCP Server Template for Cursor IDE

by jankowtf

커서 IDE용 MCP 서버 템플릿

모델 컨텍스트 프로토콜(MCP)을 사용하여 Cursor IDE용 사용자 지정 도구를 만드는 간단한 템플릿입니다. 이 템플릿을 사용하여 자체 저장소를 만들고, 도구를 수정한 후 Cursor IDE에 연결하세요.

서버 기분 반응

빠른 시작

  1. "Heroku에 배포" 버튼을 클릭하세요

    Heroku에 배포

  2. 배포 후 커서를 구성합니다.

    • 커서 설정 → 기능 열기

    • 새로운 MCP 서버 추가

    • /sse 경로와 함께 Heroku URL을 사용하세요(예: https://<your-app-name>.herokuapp.com/sse )

  3. 커서에서 에이전트의 기분을 테스트하세요:

    • 담당 직원에게 "저희 서버분 기분이 어떤지 물어보시고 알려주세요."라고 물어보세요.

    • 서버는 즐거운 메시지와 하트로 응답할 것입니다 ❤️

Related MCP server: MCP Server Template for Cursor IDE

대체 설정 방법

Docker, 기존 Python 설정 또는 Cursor IDE에서 직접 사용하는 세 가지 방법으로 서버를 실행할 수 있습니다.

도커 설정

이 프로젝트에는 쉬운 배포를 위한 Docker 지원이 포함되어 있습니다.

  1. 초기 설정:

지엑스피1

  1. Docker Compose를 사용하여 빌드하고 실행하세요.

# Build and start the server
docker compose up --build -d

# View logs
docker compose logs -f

# Check server status
docker compose ps

# Stop the server
docker compose down
  1. 서버는 다음 위치에서 사용할 수 있습니다.

  2. 빠른 테스트:

# Test the server endpoint
curl -i http://localhost:8000/sse
  1. 커서 IDE에 연결:

    • 커서 설정 열기 → 기능

    • 새로운 MCP 서버 추가

    • 유형: "sse"를 선택하세요

    • URL: http://localhost:8000/sse 입력하세요

전통적인 설정

먼저, uv 패키지 관리자를 설치하세요.

# Install uv on macOS
brew install uv
# Or install via pip (any OS)
pip install uv

stdio(기본값) 또는 SSE 전송을 사용하여 서버를 시작합니다.

# Install the package with development dependencies
uv pip install -e ".[dev]"

# Using stdio transport (default)
uv run mcp-hitchcode

# Using SSE transport on custom port
uv run mcp-hitchcode --transport sse --port 8000

# Run tests
uv run pytest -v

설치 후 서버를 Cursor IDE에 직접 연결할 수 있습니다.

  1. Cursor에서 cursor-run-mcp-server.sh 파일을 마우스 오른쪽 버튼으로 클릭합니다.

  2. 절대 경로를 복사하려면 "경로 복사"를 선택하세요.

  3. 커서 설정 열기(기어 아이콘)

  4. 기능 탭으로 이동

  5. "MCP 서버"까지 아래로 스크롤하세요.

  6. "새 MCP 서버 추가"를 클릭하세요.

  7. 양식을 작성하세요:

    • 이름: 원하는 이름을 선택하세요(예: "my-mcp-server-1")

    • 유형: "stdio"를 선택하세요(서버를 로컬로 실행하므로 "sse"가 아닙니다)

    • 명령어: 앞서 복사한 cursor-run-mcp-server.sh 파일의 절대 경로를 붙여넣습니다. 예: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh

환경 변수

사용 가능한 환경 변수( .env 에서 설정 가능):

  • MCP_SERVER_PORT (기본값: 8000) - 서버를 실행할 포트

  • MCP_SERVER_HOST (기본값: 0.0.0.0) - 서버를 바인딩할 호스트

  • DEBUG (기본값: false) - 디버그 모드 활성화

  • MCP_USER_AGENT - 웹사이트 가져오기를 위한 사용자 정의 사용자 에이전트

추가 옵션

Smithery를 통해 설치

대장간 배지

Smithery를 통해 Claude Desktop용 Cursor IDE용 MCP 서버 템플릿을 자동으로 설치하려면:

npx -y @smithery/cli install @kirill-markin/example-mcp-server --client claude

Glama 서버 리뷰

Available Tools

12 tools
apply_prompt_changeC

Provides a prompt for systematically handling change requests

Inputs: change_request (required), specific_instructions, version.

apply_prompt_dockerC

Provides a prompt template for Docker container configurations and orchestration

Inputs: containerization_objective (required), specific_instructions, version.

apply_prompt_fixC

Provides a prompt for performing root cause analysis and fixing issues

Inputs: issue (required), specific_instructions, version.

apply_prompt_fix_linterB

Provides a prompt for analyzing and fixing linter errors

Inputs: issue (required), specific_instructions, version.

apply_prompt_infraC

Provides a prompt template for laying out system infrastructure and tool stack information

Inputs: infrastructure_info (required), specific_instructions, version.

apply_prompt_initialC

Provides an initial prompt template for starting a new project

Inputs: objective (required), specific_instructions, version.

apply_prompt_proceedC

Provides a prompt template for proceeding with a task or project

Inputs: task (required), specific_instructions, version.

apply_prompt_unit_testsC

Provides a prompt for generating unit tests for code

Inputs: code_to_test (required), specific_instructions, version.

fetch_railway_docsC

Fetches the most recent Railway CLI documentation. Optionally, provide a custom URL.

Inputs: url.

fetch_railway_docs_optimizedB

Fetches the most recent Railway CLI documentation. Optionally, provide a custom URL.

Inputs: url.

mcp_fetchC

Fetches a website and returns its content

Inputs: url (required).

moodA

Ask the server about its mood - it's always happy!

Inputs: question (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 12 tools

    Disambiguation2/5

    The tool set has significant ambiguity, particularly between the 'apply_prompt_*' tools which all provide prompt templates for different contexts but could easily be confused by an agent due to overlapping purposes (e.g., 'apply_prompt_fix' vs 'apply_prompt_fix_linter' for fixing issues). Additionally, 'fetch_railway_docs' and 'fetch_railway_docs_optimized' appear to do the same thing with unclear distinctions, leading to potential misselection.

    Naming Consistency4/5

    Most tools follow a consistent snake_case pattern with clear verb_noun structures (e.g., 'apply_prompt_change', 'fetch_railway_docs'), which aids readability. However, there are minor deviations: 'mood' breaks the pattern by being a single noun without a verb, and the duplication in 'fetch_railway_docs' vs 'fetch_railway_docs_optimized' introduces inconsistency in naming for similar functions.

    Tool Count3/5

    With 12 tools, the count is borderline but reasonable for a template server aimed at Cursor IDE, which might cover various development tasks. However, the set feels slightly heavy due to redundant tools like the two Railway docs fetchers and multiple similar prompt tools, suggesting some consolidation could improve coherence without losing functionality.

    Completeness2/5

    The server's domain appears to be development assistance with prompt templates and documentation fetching, but there are significant gaps. For example, it lacks tools for code generation, debugging, or version control integration, which are common in IDE contexts. The inclusion of a trivial 'mood' tool further detracts from covering essential workflows, making the surface incomplete for practical agent use in development tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers