
MCP Server
MCP-Mirror
public
Tght1211_http 4 mcp
Mirror of https://github.com/Tght1211/http-4-mcp
Repository Info
0
Stars
0
Forks
0
Watchers
0
Issues
JavaScript
Language
Mulan Permissive Software License, Version 2
License
About This Server
Mirror of https://github.com/Tght1211/http-4-mcp
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
# š HTTP-4-MCP Middleware Server
<div align="center">



[English](README.md) | [äøę](README_CN.md)
</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">
[](https://github.com/tght1211)
[](https://gitee.com/tght1211)
</div>
## šø System Demo
<div align="center">
### š„ļø Intuitive Visual Configuration Interface

### š Powerful API Conversion

### š cURL Import Support

### š Tool Description

</div>
## š Quick Start
### š¦ Installation
```bash
# 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
```
### š® Start Service
```bash
# 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
```
## šÆ Usage Guide
### 1ļøā£ Configure API
#### Method 1: šØ Visual Configuration (Recommended)
1. Visit `http://localhost:8002`
2. Click "Add New Interface"
3. Fill in configuration parameters
4. Save and apply instantly!
#### Method 2: š JSON Configuration
```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ļøā£ Connect to MCP
```python
# SSE connection URL
ws_url = "http://localhost:8000/mcp/sse"
```
## š ļø Project Structure
```
š¦ 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
```
## š Configuration Reference
### š§ Global Configuration
| Configuration | Description | Default |
|---------------|-------------|---------|
| š host | Server address | "0.0.0.0" |
| š port | Server port | 8000 |
| š debug | Debug mode | false |
| š log_level | Log level | "info" |
## š Special Features
### š cURL Import
Paste cURL command directly, automatically generate configuration:
```bash
curl -X GET 'https://api.example.com/weather?city=beijing'
```
### šØ Pixel Art Interface
- š® Game-like configuration experience
- šÆ Drag-and-drop parameter setting
- š Real-time request test
- š Automatically generate configuration
## š¤ Contribution Guide
1. š“ Fork this repository
2. š§ Create feature branch
3. š Submit changes
4. š Push branch
5. š¬ Submit Pull Request
## š Get Help
- š§ Submit Issue
- š¬ Join Discussion Group
- š View Wiki
## š Open Source License
This project uses the MIT license - see [LICENSE](LICENSE) file
---
<div align="center">
āļø If this project helps you, please give a star!āļø
</div>
Quick Start
1
Clone the repository
git clone https://github.com/MCP-Mirror/Tght1211_http-4-mcp2
Install dependencies
cd Tght1211_http-4-mcp
npm install3
Follow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
OwnerMCP-Mirror
RepoTght1211_http-4-mcp
Language
JavaScript
LicenseMulan Permissive Software License, Version 2
Last fetched8/8/2025
Recommended MCP Servers
š¬
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
integrationsdiscordchat
š
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
integrationsautomationsaas
š·ļø
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
apifycrawlerdata
š
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
testingqabrowsers
ā”
Zapier MCP
A Zapier server that provides automation capabilities for various apps.
zapierautomation