Skip to main content
Glama
MCP Server Starter

MCP Server Starter

by coinselor

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

Related MCP server: MCP Server Starter

✨ 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 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"]
    }
  }
}

Available Tools

1 tool
hello_toolD

Hello tool

Inputs: name (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.3/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The single tool's purpose is clearly distinct by default, eliminating any risk of misselection.

    Naming Consistency5/5

    The tool name 'hello_tool' follows a consistent snake_case pattern, and with only one tool, there is no inconsistency in naming conventions. The naming is straightforward and predictable within this minimal set.

    Tool Count2/5

    A single tool is generally too few for a server's purpose, as it suggests a very limited or trivial scope that may not support meaningful agent workflows. This is borderline for appropriateness, leaning toward insufficient coverage for typical MCP server use cases.

    Completeness1/5

    With only one tool named 'hello_tool', the server's domain is unclear, making it impossible to assess coverage meaningfully. There are likely significant gaps for any inferred purpose, as a single tool cannot provide CRUD/lifecycle operations or a coherent workflow, leading to severe incompleteness.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A modern, lightning-fast starter template for building Model Context Protocol applications with Bun, enabling developers to create MCP servers with TypeScript support, validation, and environment configuration.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A template repository for building Model Context Protocol (MCP) servers with TypeScript, featuring full TypeScript support, testing setup, CI/CD pipelines, and modular architecture for easy extension.
      Creative Commons Attribution Non Commercial Share Alike 4.0 International