Skip to main content
Glama

MCP Server Starter

by GreatAuk

Iniciador del servidor MCP

Una plantilla de inicio lista para producción para crear servidores de Protocolo de contexto de modelo (MCP) con TypeScript.

🚀 Inicio rápido

  1. Clonar el repositorio
  2. Instalar dependencias:
    bun install

✨ Características principales

  • Bun para pruebas y desarrollo rápidos
  • Bioma para el linting y el formateo
  • Gestión automatizada de versiones con versión estándar
  • Estructura de proyecto limpia y mantenible

📂 Estructura del proyecto

mcp-starter/ ├── src/ │ ├── tools/ # MCP tools implementation │ ├── utils/ # Shared utilities │ ├── main.ts # Server entry point │ └── types.ts # Shared type definitions ├── tests/ # Test files ├── biome.json # Linting configuration ├── tsconfig.json # TypeScript configuration └── package.json # Project dependencies

⚙️ Configuración

Creando nuevas herramientas

El proyecto incluye un script para ayudar a crear nuevas herramientas MCP:

bun run scripts/create-tool.ts <tool-name>

Esto hará lo siguiente:

  1. Cree un nuevo directorio de herramientas en src/tools/<tool-name>
  2. Genere la estructura básica de la herramienta incluyendo:
    • index.ts (implementación principal)
    • schema.ts (esquema JSON para parámetros de herramientas)
    • test.ts (archivo de prueba)
  3. Actualice el archivo de índice de herramientas para exportar la nueva herramienta

Ejemplo:

bun run scripts/create-tool.ts weather

🛠️ Desarrollo

  • Ejecutar pruebas : bun test
  • Código de formato : bun run format
  • Código de pelusa : bun run lint
  • Proyecto de construcción : bun run build

Para agregar su servidor MCP de desarrollo a Claude Desktop:

  1. Construir el proyecto:
    bun run build
  2. Añade a tu configuración de Claude Desktop:
    // You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "node", "args": ["/path/to/your/project/dist/main.js", "some_argument"] } } }

📜 Gestión de versiones

Este proyecto utiliza la versión estándar para la gestión automatizada de versiones. Ejecute bun run release para crear una nueva versión.

Formato del mensaje de confirmación

  • feat : Nueva característica (mejora versión menor)
  • fix : Corrección de errores (versión del parche de mejoras)
  • BREAKING CHANGE : Cambio radical (incrementa la versión principal)

📦 Publicación en npm

  1. Asegúrese de haber iniciado sesión en npm:
    npm login
  2. Construir el proyecto:
    bun run build
  3. Publicar el paquete:
    npm publish

Recuerde actualizar el número de versión utilizando bun run release antes de publicar nuevas versiones.

Instalación mediante herrería

Para instalar Weather MCP Server Starter para Claude Desktop automáticamente a través de Smithery :

npx -y @smithery/cli install @GreatAuk/mcp-weather --client claude

Instalación desde npm (después de publicar)

Añade a tu configuración de Claude Desktop:

// You only need the argument if you need to pass arguments to your server { "mcpServers": { "your-server-name": { "command": "npx", "args": ["-y", "your-package-name", "some_argument"] } } }

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Una plantilla basada en TypeScript para crear servidores de Protocolo de Contexto de Modelo, con pruebas rápidas, gestión de versiones automatizada y una estructura limpia para implementaciones de herramientas MCP.

  1. 🚀 Inicio rápido
    1. ✨ Características principales
      1. 📂 Estructura del proyecto
        1. ⚙️ Configuración
          1. Creando nuevas herramientas
        2. 🛠️ Desarrollo
          1. 📜 Gestión de versiones
            1. Formato del mensaje de confirmación
          2. 📦 Publicación en npm
            1. Instalación mediante herrería
              1. Instalación desde npm (después de publicar)

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for creating Model Context Protocol servers with TypeScript, providing tools for efficient testing, development, and deployment.
                  Last updated -
                  1
                  1
                  12
                  JavaScript
                  MIT License
                • A
                  security
                  A
                  license
                  A
                  quality
                  A production-ready template for building Model Context Protocol servers in TypeScript, offering fast development with Bun, Biome linting, and automated version management.
                  Last updated -
                  1
                  1
                  JavaScript
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  A template for creating Model Context Protocol (MCP) servers in TypeScript, offering features like container-based dependency injection, a service-based architecture, and integration with the LLM CLI for architectural design feedback through natural language.
                  Last updated -
                  1
                  5
                  TypeScript
                • -
                  security
                  F
                  license
                  -
                  quality
                  A TypeScript framework for building Model Context Protocol (MCP) servers with automatic discovery and loading of tools, resources, and prompts.
                  Last updated -
                  67
                  TypeScript
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/GreatAuk/mcp-weather'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server