VOOZH about

URL: https://glama.ai/mcp/servers/Tght1211/http-4-mcp?locale=ko-KR

โ‡ฑ http-4-mcp by Tght1211 | Glama


๐Ÿš€ HTTP-4-MCP ๋ฏธ๋“ค์›จ์–ด ์„œ๋ฒ„

๐Ÿ‘ ๋ฒ„์ „
๐Ÿ‘ ํŒŒ์ด์ฌ
๐Ÿ‘ ํŠนํ—ˆ

์˜์–ด | ์ค‘๋ฌธ

๐ŸŒŸ ์†Œ๊ฐœ

HTTP-4-MCP๋Š” ์ผ๋ฐ˜ HTTP ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ MCP(๋ชจ๋ธ ์ œ์–ด ํ”„๋กœํ† ์ฝœ) ์ธํ„ฐํŽ˜์ด์Šค๋กœ ๋งˆ๋ฒ•์ฒ˜๋Ÿผ ๋ณ€ํ™˜ํ•ด ์ฃผ๋Š” ๊ฐ•๋ ฅํ•œ ๋ฏธ๋“ค์›จ์–ด ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค. ๊ฐ„๋‹จํ•œ ์„ค์ •๋งŒ์œผ๋กœ HTTP API๋ฅผ ์ฆ‰์‹œ MCP ๋„๊ตฌ๋กœ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!

โœจ ์ฃผ์š” ํŠน์ง•

  • ๐Ÿ”„ HTTP์—์„œ MCP๋กœ : HTTP API๋ฅผ MCP ์ธํ„ฐํŽ˜์ด์Šค๋กœ ํ•œ ๋ฒˆ์˜ ํด๋ฆญ์œผ๋กœ ๋ณ€ํ™˜

  • ๐Ÿ“ JSON ๊ตฌ์„ฑ : ๊ฐ„๋‹จํ•˜๊ณ  ์ง๊ด€์ ์ธ ๊ตฌ์„ฑ

  • ๐ŸŒŠ SSE ์ง€์› : ์‹ค์‹œ๊ฐ„ ๋ฐ์ดํ„ฐ ์ŠคํŠธ๋ฆฌ๋ฐ

  • ๐ŸŽจ ์‹œ๊ฐ์  ๊ตฌ์„ฑ : API ๊ตฌ์„ฑ์„ ์œ„ํ•œ ๋“œ๋ž˜๊ทธ ์•ค ๋“œ๋กญ ์ธํ„ฐํŽ˜์ด์Šค

  • ๐Ÿ”ฅ ํ•ซ ๋ฆฌ๋กœ๋“œ : ์žฌ์‹œ์ž‘ ์—†์ด ์ฆ‰์‹œ ๊ตฌ์„ฑ ์—…๋ฐ์ดํŠธ

  • ๐Ÿ“Š ์™„๋ฒฝํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง : ์ž์„ธํ•œ ๋กœ๊น… ๋ฐ ์˜ค๋ฅ˜ ์ถ”์ 

  • ๐Ÿ›ก๏ธ ์•ˆ์ „ํ•˜๊ณ  ์•ˆ์ •์  : ๋‚ด์žฅ๋œ ์˜ค๋ฅ˜ ์ฒ˜๋ฆฌ ๋ฐ ๋งค๊ฐœ๋ณ€์ˆ˜ ๊ฒ€์ฆ

Related MCP server: MCP Swagger Server

๐Ÿ‘จโ€๐Ÿ’ป ์ €์ž ์ •๋ณด

๐Ÿ‘ ๊นƒํ—ˆ๋ธŒ
๐Ÿ‘ ๊ธฐํ‹ฐ

๐Ÿ“ธ ์‹œ์Šคํ…œ ๋ฐ๋ชจ

๐Ÿ–ฅ๏ธ ์ง๊ด€์ ์ธ ์‹œ๊ฐ์  ๊ตฌ์„ฑ ์ธํ„ฐํŽ˜์ด์Šค

๐Ÿ‘ ์‹œ๊ฐ์  ๊ตฌ์„ฑ ์ธํ„ฐํŽ˜์ด์Šค

๐Ÿ”„ ๊ฐ•๋ ฅํ•œ API ๋ณ€ํ™˜

๐Ÿ‘ API ๋ณ€ํ™˜

๐Ÿ“Š cURL ๊ฐ€์ ธ์˜ค๊ธฐ ์ง€์›

๐Ÿ‘ cURL ๊ฐ€์ ธ์˜ค๊ธฐ ์ง€์›

๐Ÿš€ ๋„๊ตฌ ์„ค๋ช…

๐Ÿ‘ ๋„๊ตฌ ์„ค๋ช…

๐Ÿš€ ๋น ๋ฅธ ์‹œ์ž‘

๐Ÿ“ฆ ์„ค์น˜

์ง€์—‘์Šคํ”ผ1

๐ŸŽฎ ์„œ๋น„์Šค ์‹œ์ž‘

# 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 ๋ผ์ด์„ ์Šค๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ๋ผ์ด์„ ์Šค ํŒŒ์ผ์„ ์ฐธ์กฐํ•˜์„ธ์š”.


A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

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

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