Skip to main content
Glama

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 React

前提条件

  • Node.js >= 18

  • npm >= 9

インストール

npm install
cd client && npm install

起動

サーバーのみ (stdio)

npm run start

HTTPサーバー (ポート 3001)

npm run start:http

HTTPサーバー + Reactインターフェース

npm run start:ui

インターフェースは http://localhost:5173 からアクセス可能です。 MCP HTTPサーバーは http://localhost:3001/mcp でリッスンします。

利用可能なMCPツール

ツール

説明

ping

サーバーの応答を確認する

get-github-user

GitHubユーザーの情報を取得する

get-weather

指定した緯度・経度の天気を取得する

利用可能なMCPリソース

URI

説明

github-user://{username}

ユーザーのGitHubプロファイル

weather://{lat},{lon}

GPS座標の天気

アーキテクチャ

本プロジェクトはクリーンアーキテクチャの原則に従っています:

  • Domain — エンティティおよびポートインターフェース(外部依存なし)

  • Application — ビジネスロジックを調整するユースケース

  • Infrastructure — 外部API(GitHub、Open-Meteo)へのHTTP呼び出し

  • Interface — MCPプロトコルを介した公開

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