Skip to main content
Glama

basic-mcp

Ein MCP-Server (Model Context Protocol) mit einer React-Oberfläche, der Tools und Ressourcen rund um GitHub-Benutzer und das Wetter bereitstellt.

Projektstruktur

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

Voraussetzungen

  • Node.js >= 18

  • npm >= 9

Installation

npm install
cd client && npm install

Start

Nur Server (stdio)

npm run start

HTTP-Server (Port 3001)

npm run start:http

HTTP-Server + React-Oberfläche

npm run start:ui

Die Oberfläche ist unter http://localhost:5173 erreichbar. Der MCP-HTTP-Server lauscht unter http://localhost:3001/mcp.

Verfügbare MCP-Tools

Tool

Beschreibung

ping

Überprüft, ob der Server antwortet

get-github-user

Gibt Informationen eines GitHub-Benutzers zurück

get-weather

Gibt das Wetter für einen Breitengrad/Längengrad zurück

Verfügbare MCP-Ressourcen

URI

Beschreibung

github-user://{username}

GitHub-Profil eines Benutzers

weather://{lat},{lon}

Wetter für GPS-Koordinaten

Architektur

Das Projekt folgt den Prinzipien der Clean Architecture:

  • Domain — Entitäten und Port-Schnittstellen (keine externen Abhängigkeiten)

  • Application — Anwendungsfälle, die die Geschäftslogik orchestrieren

  • Infrastructure — HTTP-Aufrufe an externe APIs (GitHub, Open-Meteo)

  • Interface — Bereitstellung über das MCP-Protokoll

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/tchoupoGuy/basic-mcp'

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