Skip to main content
Glama

http-4-mcp

Mulan Permissive Software License, Version 2
6
  • Linux
  • Apple

🚀 HTTP-4-MCP ミドルウェアサーバー

バージョンパイソンライセンス

英語|中文

🌟 はじめに

HTTP-4-MCPは、通常のHTTPインターフェースをMCP(モデル制御プロトコル)インターフェースに魔法のように変換する強力なミドルウェアサーバーです。簡単な設定で、HTTP APIを瞬時にMCPツールにすることができます。

✨ 主な特徴

  • 🔄 HTTP to MCP : HTTP API を MCP インターフェースにワンクリックで変換
  • 📝 JSON設定:シンプルで直感的な設定
  • 🌊 SSEサポート:リアルタイムデータストリーミング
  • 🎨ビジュアル構成: API 構成用のドラッグアンドドロップ インターフェース
  • 🔥ホットリロード: 再起動なしで即座に構成を更新
  • 📊完全な監視:詳細なログ記録とエラー追跡
  • 🛡️安全で信頼性が高い: エラー処理とパラメータ検証が組み込まれています

👨‍💻著者情報

📸 システムデモ

🖥️ 直感的なビジュアル設定インターフェース

ビジュアル構成インターフェース

🔄強力なAPI変換

API変換

📊 cURL インポートのサポート

cURL インポートのサポート

🚀 ツールの説明

ツールの説明

🚀 クイックスタート

📦 インストール

# Clone repository git clone https://gitee.com/tght1211/http-for-mcp-server.git # or git clone https://github.com/tght1211/http-for-mcp-server.git cd http-for-mcp-server # Install dependencies (recommended using uv package manager) uv venv uv pip install -r requirements.txt

🎮 サービスを開始

# Activate virtual environment .venv/Scripts/activate # Windows source .venv/bin/activate # Linux/Mac # Start main server uv run run.py # Start configuration UI (optional) uv run run_config_ui.py

🎯 使用ガイド

1️⃣ APIを設定する

方法 1: 🎨 ビジュアル構成(推奨)
  1. http://localhost:8002にアクセスしてください
  2. 「新しいインターフェースを追加」をクリックします
  3. 設定パラメータを入力する
  4. 保存してすぐに適用しましょう!
方法2: 📝 JSON構成
{ "tools": [ { "name": "weather_api", "description": "Get real-time weather information for a specified city, including temperature, humidity, weather conditions, wind direction, and wind speed.\n \n This tool uses a two-step query process:\n 1. First, get the precise location ID through city name\n 2. Then, query real-time weather data using the location ID\n \n Example usage:\n - Get weather information for \"Beijing\"\n - Get real-time weather conditions for \"Shanghai\"\n - Query temperature and humidity for \"Guangzhou\"\n \n Returns formatted weather information text, including city name, weather conditions, temperature, humidity, wind direction, and wind speed.", "url": "https://devapi.qweather.com/v7/weather/now", "method": "GET", "params": { "location": { "type": "string", "desc": "City name or ID", "required": true, "default": "101010100" }, "key": { "type": "string", "desc": "API key", "required": true, "default": "05a3e2c04b65416e912088b76a7a487e" }, "lang": { "type": "string", "desc": "Language", "required": false, "default": "zh" }, "unit": { "type": "string", "desc": "Unit system", "required": false, "default": "m" } }, "headers": { "User-Agent": "weather-app/1.0" }, "response": { "code": { "path": "code", "desc": "Response status code" }, "updateTime": { "path": "updateTime", "desc": "Data update time" }, "fxLink": { "path": "fxLink", "desc": "Detailed weather information link" }, "now": { "path": "now", "desc": "Real-time weather data object" }, "now_obsTime": { "path": "now.obsTime", "desc": "Actual observation time" }, "now_temp": { "path": "now.temp", "desc": "Current temperature (Celsius)" }, "now_feelsLike": { "path": "now.feelsLike", "desc": "Feels like temperature (Celsius)" }, "now_icon": { "path": "now.icon", "desc": "Weather icon code" }, "now_text": { "path": "now.text", "desc": "Weather phenomenon text description" }, "now_wind360": { "path": "now.wind360", "desc": "Wind direction 360-degree angle" }, "now_windDir": { "path": "now.windDir", "desc": "Wind direction description" }, "now_windScale": { "path": "now.windScale", "desc": "Wind scale" }, "now_windSpeed": { "path": "now.windSpeed", "desc": "Wind speed (km/h)" }, "now_humidity": { "path": "now.humidity", "desc": "Relative humidity percentage" }, "now_precip": { "path": "now.precip", "desc": "Precipitation (mm)" }, "now_pressure": { "path": "now.pressure", "desc": "Atmospheric pressure (hPa)" }, "now_vis": { "path": "now.vis", "desc": "Visibility (km)" }, "now_cloud": { "path": "now.cloud", "desc": "Cloud coverage percentage" }, "now_dew": { "path": "now.dew", "desc": "Dew point temperature (Celsius)" } }, "response_mode": "metadata" } ] }

2️⃣ MCPに接続する

# SSE connection URL ws_url = "http://localhost:8000/mcp/sse"

🛠️ プロジェクト構造

📦 http-for-mcp-server ┣ 📂 config/ # Configuration files ┣ 📂 demo/ # Example code ┣ 📂 static/ # Static resources ┣ 📜 mcp_server.py # Main server ┣ 📜 config_ui.py # Configuration UI ┣ 📜 run.py # Startup script ┗ 📜 requirements.txt # Dependencies

📚 設定リファレンス

🔧 グローバル設定

構成説明デフォルト
🌐 ホストサーバーアドレス「0.0.0.0」
🔌 ポートサーバーポート8000
🐛 デバッグデバッグモード間違い
📝 ログレベルログレベル"情報"

🎉 特別な機能

🔄 cURL インポート

cURL コマンドを直接貼り付けると、構成が自動的に生成されます。

curl -X GET 'https://api.example.com/weather?city=beijing'

🎨 ピクセルアートインターフェース

  • 🎮 ゲームのような設定体験
  • 🎯 ドラッグアンドドロップによるパラメータ設定
  • 📊 リアルタイムリクエストテスト
  • 🔄 構成を自動生成

🤝 貢献ガイド

  1. 🍴 このリポジトリをフォークする
  2. 🔧 機能ブランチを作成する
  3. 📝 変更を送信する
  4. 🚀 ブランチをプッシュする
  5. 📬 プルリクエストを送信する

📞 ヘルプを受ける

  • 📧 問題を提出する
  • 💬 ディスカッショングループに参加する
  • 📚 ウィキを見る

📄オープンソースライセンス

このプロジェクトはMITライセンスを使用しています - LICENSEファイルを参照してください


-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

HTTP-4-MCP設定ツールを使えば、HTTP APIをMCPツールに簡単に変換し、必要なコードを記述できます。シンプルなインターフェース操作で、MCPサーバーを素早く設定できます。

  1. 🌟 はじめに
    1. ✨ 主な特徴
  2. 👨‍💻著者情報
    1. 📸 システムデモ
      1. 🖥️ 直感的なビジュアル設定インターフェース
      2. 🔄強力なAPI変換
      3. 📊 cURL インポートのサポート
      4. 🚀 ツールの説明
    2. 🚀 クイックスタート
      1. 📦 インストール
      2. 🎮 サービスを開始
    3. 🎯 使用ガイド
      1. 1️⃣ APIを設定する
      2. 2️⃣ MCPに接続する
    4. 🛠️ プロジェクト構造
      1. 📚 設定リファレンス
        1. 🔧 グローバル設定
      2. 🎉 特別な機能
        1. 🔄 cURL インポート
        2. 🎨 ピクセルアートインターフェース
      3. 🤝 貢献ガイド
        1. 📞 ヘルプを受ける
          1. 📄オープンソースライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              An MCP server that exposes HTTP methods defined in an OpenAPI specification as tools, enabling interaction with APIs via the Model Context Protocol.
              Last updated -
              2
              Python
              MIT License
            • A
              security
              F
              license
              A
              quality
              An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
              Last updated -
              39
              28
              • Apple
            • -
              security
              A
              license
              -
              quality
              A server that translates Model Context Protocol (MCP) tool callings to traditional HTTP API requests, allowing existing HTTP APIs to be integrated into MCP territory through configurable mappings.
              Last updated -
              Python
              Apache 2.0

            View all related MCP servers

            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/Tght1211/http-4-mcp'

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