basic-mcp
basic-mcp
GitHubユーザーと天気に関するツールおよびリソースを公開する、Reactインターフェースを備えたMCP(Model Context Protocol)サーバーです。
プロジェクト構造
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
前提条件
Node.js >= 18
npm >= 9
インストール
npm install
cd client && npm install起動
サーバーのみ (stdio)
npm run startHTTPサーバー (ポート 3001)
npm run start:httpHTTPサーバー + Reactインターフェース
npm run start:uiインターフェースは http://localhost:5173 からアクセス可能です。
MCP HTTPサーバーは http://localhost:3001/mcp でリッスンします。
利用可能なMCPツール
ツール | 説明 |
| サーバーの応答を確認する |
| GitHubユーザーの情報を取得する |
| 指定した緯度・経度の天気を取得する |
利用可能なMCPリソース
URI | 説明 |
| ユーザーのGitHubプロファイル |
| GPS座標の天気 |
アーキテクチャ
本プロジェクトはクリーンアーキテクチャの原則に従っています:
Domain — エンティティおよびポートインターフェース(外部依存なし)
Application — ビジネスロジックを調整するユースケース
Infrastructure — 外部API(GitHub、Open-Meteo)へのHTTP呼び出し
Interface — MCPプロトコルを介した公開
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