Logo: Korea Tourism API MCP Server

Korea Tourism API MCP Server

Communautéit
harimkang

Model Context Protocol (MCP) server that provides tools for accessing the Korea Tourism API

Editeurharimkang
Repositorymcp-korea-tourism-api
SproochPython
Forks
6
Stären
9
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Korea Tourism API MCP Server bitt MCP-Funktiounen un, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • Disponibel Tools: 0

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an deem MCP-Client ze konfiguréieren, deen Dir am léifste benotzt.

  • Interessi vun der Communautéit um Open-Source-Projet

    Zuele vum verlinkte Repository – Stären: 9, Forks: 6.

Korea Tourism API MCP Server ✈️

smithery badge Verified on MseeP PyPI version License: MIT CI Tests

Unlock the wonders of South Korean tourism directly within your AI assistant! This project provides a Model Context Protocol (MCP) server powered by the official Korea Tourism Organization (KTO) API. Equip your AI with the ability to discover vibrant festivals, serene temples, delicious restaurants, comfortable accommodations, and much more across Korea.

Links:

✨ Features

  • Comprehensive Search: Find tourist spots, cultural sites, events, food, lodging, and shopping via keywords, area, or location.
  • Rich Details: Access descriptions, operating hours, admission fees, photos, addresses, and contact information.
  • Location-Aware: Discover attractions near specific GPS coordinates.
  • Timely Information: Find festivals and events based on date ranges.
  • Multilingual Support: Get information in various languages supported by the KTO API (including English).
    • Supported Languages: English, Japanese, Simplified Chinese, Traditional Chinese, Russian, Spanese, German, French
  • Efficient & Resilient:
    • Response Caching: Uses time-to-live (TTL) caching to store results and reduce redundant API calls, improving speed.
    • Rate Limiting: Respects API usage limits to prevent errors.
    • Automatic Retries: Automatically retries requests in case of temporary network or server issues.
  • MCP Standard: Seamlessly integrates with AI assistants supporting the Model Context Protocol.

⚠️ Prerequisites

Before you begin, you must obtain an API key from the Korea Tourism Organization (KTO) Data Portal.

  1. Visit the KTO Data Portal (or the specific portal for the tourism API if available).
  2. Register and request an API key for the "TourAPI" services (you might need to look for services providing information like areaBasedList, searchKeyword, detailCommon, etc.).
  3. Keep your Service Key (API Key) safe. It will be required during installation or runtime.

You need to apply for the API below to make a request for each language.

🚀 Installation & Running

You can run this MCP server using either uv (a fast Python package installer and runner) or Docker.

Installing via Smithery

To install Korea Tourism API MCP Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @harimkang/mcp-korea-tourism-api --client claude

Option 1: Using uv (Recommended for local development)

  1. Clone the repository:

    bash
    git clone https://github.com/harimkang/mcp-korea-tourism-api.git
    cd mcp-korea-tourism-api
  2. Set the API Key Environment Variable: Replace "YOUR_KTO_API_KEY" with the actual key you obtained.

    bash
    # On macOS/Linux
    export KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY"
    
    # On Windows (Command Prompt)
    # set KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY"
    
    # On Windows (PowerShell)
    # $env:KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY"

    Note: For persistent storage, add this line to your shell's configuration file (e.g., .zshrc, .bashrc, or use system environment variable settings).

  3. Install dependencies and run the server: This command uses uv to install dependencies based on uv.lock (if available) or pyproject.toml and then runs the server module.

    bash
    # Install Dependency with uv
    uv sync
    
    # Default: stdio transport (for MCP clients)
    uv run -m mcp_tourism.server
    
    # HTTP transport for web applications
    uv run -m mcp_tourism.server --transport streamable-http --host 127.0.0.1 --port 8000
    
    # SSE transport for real-time applications
    uv run -m mcp_tourism.server --transport sse --host 127.0.0.1 --port 8080
    
    # Using environment variables
    export MCP_TRANSPORT=streamable-http
    export MCP_HOST=0.0.0.0
    export MCP_PORT=3000
    uv run -m mcp_tourism.server

    The server will start and listen for MCP requests via the specified transport protocol.

Option 2: Using Docker (Recommended for isolated environment/deployment)

  1. Clone the repository:

    bash
    git clone https://github.com/harimkang/mcp-korea-tourism-api.git
    cd mcp-korea-tourism-api
  2. Build the Docker Image: You can build the image with different transport configurations:

    bash
    # Default build (stdio transport)
    docker build -t mcp-korea-tourism-api .
    
    # Build with HTTP transport configuration
    docker build -t mcp-korea-tourism-api \
      --build-arg MCP_TRANSPORT=streamable-http \
      --build-arg MCP_HOST=0.0.0.0 \
      --build-arg MCP_PORT=8000 \
      --build-arg MCP_PATH=/mcp \
      --build-arg MCP_LOG_LEVEL=INFO \
      .
    
    # Build with SSE transport configuration
    docker build -t mcp-korea-tourism-api \
      --build-arg MCP_TRANSPORT=sse \
      --build-arg MCP_HOST=0.0.0.0 \
      --build-arg MCP_PORT=8080 \
      .
  3. Run the Docker Container: You can run the container with different transport configurations:

    • Stdio Transport (Default - for MCP clients):

      bash
      docker run --rm -it \
        -e KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY" \
        mcp-korea-tourism-api
    • HTTP Transport (for web applications):

      bash
      # Using runtime environment variables
      docker run --rm -p 8000:8000 \
        -e KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY" \
        -e MCP_TRANSPORT=streamable-http \
        -e MCP_HOST=0.0.0.0 \
        -e MCP_PORT=8000 \
        mcp-korea-tourism-api
      
      # Check health: curl http://localhost:8000/health
    • SSE Transport (for real-time applications):

      bash
      docker run --rm -p 8080:8080 \
        -e KOREA_TOURISM_API_KEY="YOUR_KTO_API_KEY" \
        -e MCP_TRANSPORT=sse \
        -e MCP_HOST=0.0.0.0 \
        -e MCP_PORT=8080 \
        mcp-korea-tourism-api
    • Using Docker Compose (Recommended):

      bash
      # Copy and configure environment variables
      cp docker.env.example .env
      # Edit .env file with your API key and preferred settings
      
      # Run with HTTP transport (default profile)
      docker-compose up mcp-tourism-http
      
      # Run with SSE transport
      docker-compose --profile sse up mcp-tourism-sse
      
      # Run development setup with debug logging
      docker-compose --profile dev up mcp-tourism-dev

🔧 Transport Configuration

The Korea Tourism API MCP Server supports multiple transport protocols to accommodate different use cases:

Available Transports

  1. stdio (Default): Standard input/output transport for direct MCP client integration

    • Best for: Claude Desktop, Cursor, and other MCP-compatible AI assistants
    • Configuration: No additional setup required
  2. streamable-http: HTTP-based transport for web applications

    • Best for: Web applications, REST API integration, load balancers
    • Features: HTTP endpoints, health checks, JSON responses
    • Default endpoint: http://localhost:8000/mcp
  3. sse: Server-Sent Events transport for real-time applications

    • Best for: Real-time web applications, event-driven architectures
    • Features: Real-time streaming, persistent connections
    • Default endpoint: http://localhost:8080/mcp

Configuration Options

You can configure the server using command line arguments or environment variables:

SettingCLI ArgumentEnvironment VariableDefaultDescription
Transport--transportMCP_TRANSPORTstdioTransport protocol to use
Host--hostMCP_HOST127.0.0.1Host address for HTTP transports
Port--portMCP_PORT8000Port for HTTP transports
Path--pathMCP_PATH/mcpPath for HTTP endpoints
Log Level--log-levelMCP_LOG_LEVELINFOLogging level

Command Line Examples

bash
# Get help for all available options
python -m mcp_tourism.server --help

# Run with HTTP transport on custom port
python -m mcp_tourism.server --transport streamable-http --port 3000 --log-level DEBUG

# Run with SSE transport
python -m mcp_tourism.server --transport sse --host 0.0.0.0 --port 8080

Environment Variable Examples

bash
# Set environment variables
export MCP_TRANSPORT=streamable-http
export MCP_HOST=0.0.0.0
export MCP_PORT=8000
export MCP_LOG_LEVEL=INFO
export KOREA_TOURISM_API_KEY="your_api_key_here"

# Run the server
python -m mcp_tourism.server

Health Check

For HTTP and SSE transports, a health check endpoint is available at /health:

bash
# Check server health
curl http://localhost:8000/health

# Example response
{
  "status": "healthy",
  "service": "Korea Tourism API MCP Server",
  "transport": "streamable-http",
  "timestamp": 1640995200.0
}

🛠️ Integrating with Cursor

To use this MCP server within Cursor:

  1. Ensure the Docker container is runnable: Follow the Docker installation steps above to build the image (mcp-korea-tourism-api). You don't need to manually run the container; Cursor will do that.

  2. Locate your mcp.json file: This file configures MCP tools for Cursor. You can usually find it via Cursor's settings or potentially in a path like ~/.cursor/mcp.json or similar.

  3. Add or Update the MCP Configuration: Add the following JSON object to the list within your mcp.json file. If you already have an entry for this tool, update its command. Replace "YOUR_KTO_API_KEY" with your actual key. cursor_integrations

    json
    {
      "mcpServers": {
        "korea-tourism": {
          "command": "docker",
          "args": [
            "run",
            "--rm",
            "-i",
            "-e",
            "KOREA_TOURISM_API_KEY=YOUR_KTO_API_KEY",
            "mcp-korea-tourism-api"
          ]
        }
      }
    }

    OR Use uv [local directory]

    json
    {
      "mcpServers": {
        "korea-tourism": {
          "command": "uv",
          "args": [
            "--directory",
            "{LOCAL_PATH}/mcp-korea-tourism-api",
            "run",
            "-m",
            "mcp_tourism.server"
          ],
          "env": {
            "KOREA_TOURISM_API_KEY": "YOUR_KTO_API_KEY"
          }
        }
      }
    }
  4. Save mcp.json.

  5. Restart Cursor or Reload MCP Tools: Cursor should now detect the tool and use Docker to run it when needed.

🛠️ MCP Tools Provided

This server exposes the following tools for AI assistants:

  1. search_tourism_by_keyword: Search for tourism information using keywords (e.g., "Gyeongbokgung", "Bibimbap"). Filter by content type, area code. search_tourism_by_keyword
  2. get_tourism_by_area: Browse tourism information by geographic area codes (e.g., Seoul='1'). Filter by content type, district code. get_tourism_by_area
  3. find_nearby_attractions: Discover tourism spots near specific GPS coordinates (longitude, latitude). Filter by radius and content type. find_nearby_attractions
  4. search_festivals_by_date: Find festivals occurring within a specified date range (YYYYMMDD). Filter by area code. search_festivals_by_date
  5. find_accommodations: Search for hotels, guesthouses, etc. Filter by area and district code. find_accommodations
  6. get_detailed_information: Retrieve comprehensive details (overview, usage time, parking, etc.) for a specific item using its Content ID. Filter by content type. get_detailed_information
  7. get_tourism_images: Get image URLs associated with a specific tourism item using its Content ID. get_tourism_images
  8. get_area_codes: Retrieve area codes (for cities/provinces) and optionally sub-area (district) codes. get_area_codes

⚙️ Requirements (for uv method)

  • Python 3.12+
  • uv installed (pip install uv)

Example Usage

An AI assistant integrated with this MCP could handle queries like:

  • "Find restaurants near Myeongdong station."
  • "Show me pictures of Bulguksa Temple."
  • "Are there any festivals in Busan next month?"
  • "Tell me more about Gyeongbokgung Palace, content ID 264337."

MseeP.ai Security Assessment Badge

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "harimkang-mcp-korea-tourism-api": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-korea-tourism-api"
      ]
    }
  }
}

Korea Tourism API MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Korea Tourism API MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung, fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector: D'Optioun „Dësen Apparat“ ass ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Setzt de kopéierte Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Korea Tourism API MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a setzt d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Setzt d'MCP-Serverkonfiguratioun fir Korea Tourism API MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert d'Säit, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "harimkang-mcp-korea-tourism-api": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-korea-tourism-api"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vun der Integratioun Korea Tourism API MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vun der Integratioun Korea Tourism API MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierten MCP-Tools an engem ausgewielte KI-Modell
Kënnt Dir mir mat Korea Tourism API MCP Server bei dëser Aufgab hëllefen?
Korea Tourism API MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat Korea Tourism API MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt den MCP-Server Korea Tourism API MCP Server benotzt?

Korea Tourism API MCP Server ass en MCP-Server, deen et kompatibele KI-Clienten erlaabt, op extern Tools a Kontextinformatioune zouzegräifen. An TypingMind kënnt Dir dësen MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Korea Tourism API MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Korea Tourism API MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni den MCP-Server fir all Modell separat anzeriichten.

Firwat Korea Tourism API MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Korea Tourism API MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Ären Aarbechtsoflaf beim Chatten an TypingMind organiséieren.

Wéi verbannen ech Korea Tourism API MCP Server MCP mat TypingMind?

Korea Tourism API MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann den MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Korea Tourism API MCP Server MCP an TypingMind zur Verfügung?

Korea Tourism API MCP Server stellt MCP-Funktioune zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agente zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Korea Tourism API MCP Server MCP ze benotzen?

Nee. TypingMind ass nom Local-first-Prinzip opgebaut a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Korea Tourism API MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir deen MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇