Skip to main content
Glama
MCP Server Template for Cursor IDE

MCP Server Template for Cursor IDE

by jankowtf

Plantilla de servidor MCP para Cursor IDE

Una plantilla sencilla para crear herramientas personalizadas para Cursor IDE mediante el Protocolo de Contexto de Modelo (MCP). Cree su propio repositorio a partir de esta plantilla, modifique las herramientas y conéctelas a su Cursor IDE.

Respuesta del estado de ánimo del servidor

Inicio rápido

  1. Haga clic en el botón "Implementar en Heroku".

    Implementar en Heroku

  2. Después de la implementación, configure Cursor:

    • Abrir Configuración del cursor → Características

    • Agregar nuevo servidor MCP

    • Utilice su URL de Heroku con la ruta /sse (por ejemplo, https://<your-app-name>.herokuapp.com/sse )

  3. Pon a prueba el estado de ánimo de tu agente en Cursor:

    • Pregúntele a su agente: "Por favor, pregunte sobre el estado de ánimo de nuestro servidor y déjeme saber cómo está".

    • El servidor responderá con un mensaje alegre y un corazón ❤️

Related MCP server: MCP Server Template for Cursor IDE

Métodos de configuración alternativos

Puede ejecutar el servidor de tres maneras: usando Docker, la configuración tradicional de Python o directamente en Cursor IDE.

Configuración de Docker

El proyecto incluye soporte para Docker para una fácil implementación:

  1. Configuración inicial:

# Clone the repository
git clone https://github.com/kirill-markin/weaviate-mcp-server.git
cd weaviate-mcp-server

# Create environment file
cp .env.example .env
  1. Construya y ejecute usando 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. El servidor estará disponible en:

  2. Prueba rápida:

# Test the server endpoint
curl -i http://localhost:8000/sse
  1. Conectarse a Cursor IDE:

    • Abrir Configuración del cursor → Características

    • Agregar nuevo servidor MCP

    • Tipo: Seleccione "sse"

    • URL: Ingrese http://localhost:8000/sse

Configuración tradicional

Primero, instale el administrador de paquetes uv:

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

Inicie el servidor utilizando stdio (predeterminado) o el transporte 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

Después de la instalación, puede conectar el servidor directamente a Cursor IDE:

  1. Haga clic derecho en el archivo cursor-run-mcp-server.sh en Cursor

  2. Seleccione "Copiar ruta" para copiar la ruta absoluta

  3. Abrir la configuración del cursor (icono de engranaje)

  4. Vaya a la pestaña Características

  5. Desplácese hacia abajo hasta "Servidores MCP"

  6. Haga clic en "Agregar nuevo servidor MCP"

  7. Rellene el formulario:

    • Nombre: Elija cualquier nombre (por ejemplo, "mi-servidor-mcp-1")

    • Tipo: Seleccione "stdio" (no "sse" porque ejecutamos el servidor localmente)

    • Comando: Pegue la ruta absoluta de cursor-run-mcp-server.sh que copió anteriormente. Por ejemplo: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh

Variables de entorno

Variables de entorno disponibles (se pueden configurar en .env ):

  • MCP_SERVER_PORT (predeterminado: 8000): puerto donde se ejecutará el servidor

  • MCP_SERVER_HOST (predeterminado: 0.0.0.0): host al que vincular el servidor

  • DEBUG (predeterminado: falso): habilita el modo de depuración

  • MCP_USER_AGENT - Agente de usuario personalizado para la obtención de sitios web

Opciones adicionales

Instalación mediante herrería

insignia de herrería

Para instalar automáticamente la plantilla de servidor MCP para Cursor IDE para Claude Desktop a través de Smithery :

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

Análisis del servidor 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