basic-mcp
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 ReactRelated MCP server: Weather MCP
Voraussetzungen
Node.js >= 18
npm >= 9
Installation
npm install
cd client && npm installStart
Nur Server (stdio)
npm run startHTTP-Server (Port 3001)
npm run start:httpHTTP-Server + React-Oberfläche
npm run start:uiDie Oberfläche ist unter http://localhost:5173 erreichbar.
Der MCP-HTTP-Server lauscht unter http://localhost:3001/mcp.
Verfügbare MCP-Tools
Tool | Beschreibung |
| Überprüft, ob der Server antwortet |
| Gibt Informationen eines GitHub-Benutzers zurück |
| Gibt das Wetter für einen Breitengrad/Längengrad zurück |
Verfügbare MCP-Ressourcen
URI | Beschreibung |
| GitHub-Profil eines Benutzers |
| 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
This server cannot be deployed
Maintenance
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A MCP server built for developers enabling Git based project management with project and personal…
Model Context Protocol server for Studex tools, notifications, and profile integrations
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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 npmMIT
- FlicenseNot gradedqualityDmaintenanceA 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-
- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that interfaces with OpenWeatherMap API to provide real-time weather information and forecasts for cities worldwide.-
- AlicenseNot gradedqualityDmaintenanceA 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