Skip to main content
Glama
legotec73

MCP Server Example

by legotec73

MCP Server Example

Servidor MCP (Model Context Protocol) basado en Node.js / Express / TypeScript

Cómo ejecutar

Ejecución local

npm install
npm run build
npm start

# 인증 토큰과 함께 실행
TOKEN=your_token npm start

Ejecución con Docker

docker build -t mcp-server-node .
docker run -p 3000:3000 -e TOKEN=your-secret-token mcp-server-node

Related MCP server: CloudTypeJ MCP Server

Despliegue

클라우드타입

  1. Seleccionar plantilla : MCP Server - Node.js

  1. Desplegar

  • Node v22

  • Variables de entorno TOKEN : establece el token a usar para autenticación (token usado al autenticar)

  • Comando de compilación npm run build

  • Comando de inicio npm start

  1. Verificar información de conexión

    Dirección de conexión MCP - https://<dirección del dominio de vista previa desplegada>/mcp

  1. Actualización Después de hacer commit y push del código, despliega con el botón 배포하기 en la pestaña 설정.

Guía de YouTube

Automatización de despliegue

Autenticación

Se utiliza autenticación con token Bearer:

  • Variables de entorno: TOKEN

  • Encabezado: Authorization: Bearer your-token

Herramientas compatibles

  • user_list - Consultar lista de usuarios

  • user_statistics - Consultar métricas de usuarios

  • calculator - Ejemplo de calculadora

  • create_task : Crear tarea

  • complete_task : Completar tarea

  • list_tasks : Consultar lista de tareas

Variables de entorno

  • TOKEN : Token Bearer (obligatorio)

Cómo usar

Porter AI

Solución de problemas

Licencia

MIT License

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Node.js MCP server providing user management, task management, and calculator tools with Bearer token authentication, deployable on Cloudtype.
    17 npm
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server providing calculator, user list, and statistics tools with Bearer Token authentication.
    304 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Node.js MCP server example with user management, task management, and calculator tools. Supports authentication via bearer token and can be deployed locally or via Docker.
    17 npm
    MIT