Skip to main content
Glama

basic-mcp

A Model Context Protocol (MCP) server with a React interface, exposing tools and resources related to GitHub users and weather.

Project structure

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

Prerequisites

  • Node.js >= 18

  • npm >= 9

Installation

npm install
cd client && npm install

Getting started

Server only (stdio)

npm run start

HTTP server (port 3001)

npm run start:http

HTTP server + React interface

npm run start:ui

The interface is accessible at http://localhost:5173. The HTTP MCP server listens at http://localhost:3001/mcp.

Available MCP tools

Tool

Description

ping

Checks that the server is responding

get-github-user

Returns information for a GitHub user

get-weather

Returns the weather for a latitude/longitude

Available MCP resources

URI

Description

github-user://{username}

GitHub profile of a user

weather://{lat},{lon}

Weather for GPS coordinates

Architecture

The project follows the principles of Clean Architecture:

  • Domain — entities and port interfaces (no external dependencies)

  • Application — use cases orchestrating business logic

  • Infrastructure — HTTP calls to external APIs (GitHub, Open-Meteo)

  • Interface — exposure via the MCP protocol

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.
    681 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