Skip to main content
Glama

basic-mcp

Un servidor MCP (Model Context Protocol) con una interfaz de React, que expone herramientas y recursos sobre usuarios de GitHub y el clima.

Estructura del proyecto

basic-mcp/
├── server/          # Serveur MCP (Node.js / TypeScript)
│   ├── main.ts      # Point d'entrée — transport stdio
│   ├── server-http.ts # Point d'entrée — transport HTTP (Streamable HTTP)
│   └── src/
│       ├── application/   # Cas d'usage (GetGitHubUser, GetWeather)
│       ├── domain/        # Entités et ports (interfaces)
│       ├── infrastructure/ # Implémentations des repositories
│       └── interface/mcp/ # Outils et ressources MCP exposés
└── client/          # Interface React + Vite
    └── src/
        ├── application/hooks/  # useMcpTool, useMcpResource
        ├── domain/             # Entités côté client
        ├── infrastructure/mcp/ # Adaptateur MCP client
        └── presentation/       # Composants React

Related MCP server: Weather MCP

Requisitos previos

  • Node.js >= 18

  • npm >= 9

Instalación

npm install
cd client && npm install

Inicio

Solo servidor (stdio)

npm run start

Servidor HTTP (puerto 3001)

npm run start:http

Servidor HTTP + Interfaz React

npm run start:ui

La interfaz es accesible en http://localhost:5173. El servidor MCP HTTP escucha en http://localhost:3001/mcp.

Herramientas MCP disponibles

Herramienta

Descripción

ping

Verifica que el servidor responda

get-github-user

Devuelve la información de un usuario de GitHub

get-weather

Devuelve el clima para una latitud/longitud

Recursos MCP disponibles

URI

Descripción

github-user://{username}

Perfil de GitHub de un usuario

weather://{lat},{lon}

Clima para coordenadas GPS

Arquitectura

El proyecto sigue los principios de la Arquitectura Limpia (Clean Architecture):

  • Dominio — entidades e interfaces de puertos (sin dependencias externas)

  • Aplicación — casos de uso que orquestan la lógica de negocio

  • Infraestructura — llamadas HTTP a APIs externas (GitHub, Open-Meteo)

  • Interfaz — exposición a través del protocolo MCP

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Node.js/TypeScript server implementing the Model Context Protocol that provides integrations with GitHub and Notion, allowing automated workflow between these platforms via API endpoints.
    1,020 npm
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables natural language weather queries for global cities, integrating with OpenWeather API to provide real-time weather information in an easy-to-read format.
    1
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    A Model Context Protocol server that interfaces with OpenWeatherMap API to provide real-time weather information and forecasts for cities worldwide.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that provides weather information using the Open-Meteo API, allowing users to get current weather for specific cities and retrieve weather data for date ranges.
    Apache 2.0