首尔数据MCP

@pinnaclesoft-ko/seoul_data_mcp
0 Stars 28 次浏览 pinnaclesoft-ko 更新于 2026-08-23

通过模型上下文协议服务器提供对首尔公共数据的访问,包括地铁乘客统计数据和文化活动信息。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "KoreaSeoulData": {
      "args": [
        "{빌드된 경로}/seoul_korea/dist/index.js"
      ],
      "command": "node"
    }
  }
}

服务介绍

首尔公共数据MCP服务器示例

这是一个使用首尔公共数据API提供首尔市各种公共数据的MCP服务器示例。

示例列表

  • 按首尔地铁线路及车站划分的上下车人数信息
  • 首尔文化活动信息

设置方法

设置首尔公共数据API密钥

按首尔地铁线路及车站划分的上下车人数信息

在文件 modules/KoreaSeoulCulturalEventInfo.ts 中添加以下{API密钥}。

import {
    Tool,
} from "@modelcontextprotocol/sdk/types.js";

const API_URL = "http://openapi.seoul.go.kr:8088/{authKey}/json/culturalEventInfo/{StartIndex}/{EndIndex}";
const API_KEY = "{API 키}";

首尔文化活动信息

在文件 modules/KoreaSeoulSubwayStatus.ts 中添加以下{API密钥}。

import {
    Tool,
} from "@modelcontextprotocol/sdk/types.js";

const API_URL = "http://openapi.seoul.go.kr:8088/{authKey}/json/culturalEventInfo/{StartIndex}/{EndIndex}";
const API_KEY = "{API 키}";

构建

npm i; npm run build

向Claude Desktop添加MCP设置

claude_desktop_config.json文件中添加以下内容。
{构建路径}需要根据个人情况进行调整。

{
  "mcpServers": {
    "KoreaSeoulData": {
      "command": "node",
      "args": [
        "{빌드된 경로}/seoul_korea/dist/index.js"
      ]
    }
  }
}

使用示例

按首尔地铁线路及车站划分的上下车人数信息

image

首尔文化活动信息

image