πŸš€ HTTP-4-MCP Middleware Server

by Tght1211

16 233 downloads Not rated yet MulanPSL-2.0
GitHub

About

HTTP-4-MCP configuration tool allows you to easily convert HTTP API to MCP tool without writing code. With simple interface operations, you can quickly configure an mcp-server.

Details

License
MulanPSL-2.0

Explore

- πŸ”„ HTTP to MCP: One-click conversion of HTTP APIs to MCP interfaces
- πŸ“ JSON Configuration: Simple and intuitive configuration
- 🌊 SSE Support: Real-time data streaming
- 🎨 Visual Configuration: Drag-and-drop interface for API configuration
- πŸ”₯ Hot Reload: Instant configuration updates without restart
- πŸ“Š Complete Monitoring: Detailed logging and error tracking
- πŸ›‘οΈ Secure & Reliable: Built-in error handling and parameter validation

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name πŸš€ HTTP-4-MCP Middleware Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Visual Configuration Interface


uv venv
uv pip install -r requirements.txt

.venv/Scripts/activate # Windows
source .venv/bin/activate # Linux/Mac

uv run run_config_ui.py


1. Visit http://localhost:8002
2. Click "Add New Interface"
3. Fill in configuration parameters
4. Save and apply instantly!

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"
}
]
}
```

| Configuration | Description | Default |
|---------------|-------------|---------|
| 🌐 host | Server address | "0.0.0.0" |
| πŸ”Œ port | Server port | 8000 |
| πŸ› debug | Debug mode | false |
| πŸ“ log_level | Log level | "info" |

Tool Description

</div>

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "\ud83d\ude80 http-4-mcp middleware server": {
            "http-4-mcp": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "http-4-mcp": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

<div align="center">

Version
Python
License

English | δΈ­ζ–‡

</div>

🌟 Introduction

HTTP-4-MCP is a powerful middleware server that magically transforms regular HTTP interfaces into MCP (Model Control Protocol) interfaces. With simple configuration, your HTTP API becomes an MCP tool instantly!

✨ Key Features

- πŸ”„ HTTP to MCP: One-click conversion of HTTP APIs to MCP interfaces
- πŸ“ JSON Configuration: Simple and intuitive configuration
- 🌊 SSE Support: Real-time data streaming
- 🎨 Visual Configuration: Drag-and-drop interface for API configuration
- πŸ”₯ Hot Reload: Instant configuration updates without restart
- πŸ“Š Complete Monitoring: Detailed logging and error tracking
- πŸ›‘οΈ Secure & Reliable: Built-in error handling and parameter validation

πŸ‘¨β€πŸ’» Author Information

<div align="center">

GitHub
Gitee

</div>

πŸ“Έ System Demo

<div align="center">

πŸ–₯️ Intuitive Visual Configuration Interface

Visual Configuration Interface

πŸ”„ Powerful API Conversion

API Conversion

πŸ“Š cURL Import Support

cURL Import Support

πŸš€ Tool Description

Tool Description

</div>

πŸš€ Quick Start

πŸ“¦ Installation

```bash

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.